Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/tools/uic3/main.cpp

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 20 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    7979    const char* projectName = 0;
    8080    const char* trmacro = 0;
    81     bool nofwd = false;
    8281    bool fix = false;
    8382    bool deps = false;
    84     bool implicitIncludes = true;
     83    ;
    8584    QByteArray pchFile;
    86 
    8785
    8886    QApplication app(argc, argv, false);
     
    147145                deps = true;
    148146            } else if (opt == "no-implicit-includes") {
    149                 implicitIncludes = false;
     147                ;
    150148            } else if (opt == "nofwd") {
    151                 nofwd = true;
     149                readerOptions &= ~Ui3Reader::CustomWidgetForwardDeclarations;
     150            } else if (opt == "layout-names") {
     151                readerOptions |= Ui3Reader::PreserveLayoutNames;
    152152            } else if (opt == "nounload") {
    153153                // skip
     
    254254                 "\t-pch file          Add #include \"file\" as the first statement in implementation\n"
    255255                 "\t-nofwd             Omit forward declarations of custom classes\n"
     256
    256257                 "\t-no-implicit-includes Do not generate #include-directives for custom classes\n"
    257258                 "\t-nounload          Do not unload plugins after processing\n"
     
    290291    QTextStream out(&fileOut);
    291292
    292     Ui3Reader ui3(out);
     293    Ui3Reader ui3(out);
    293294    ui3.setExtractImages(extract, qrcOutputFile);
    294 
    295295    if (projectName && imagecollection) {
    296296        out.setEncoding(QTextStream::Latin1);
     
    350350        return 0;
    351351    } else if (convert) {
    352         ui3.generateUi4(QFile::decodeName(fileName), QFile::decodeName(outputFile), doc, implicitIncludes);
     352        ui3.generateUi4(QFile::decodeName(fileName), QFile::decodeName(outputFile), doc);
    353353        return 0;
    354354    }
     
    389389        QString::fromUtf8(trmacro),
    390390        QString::fromUtf8(className),
    391         nofwd,
    392         implicitIncludes,
    393391        convertedUi);
    394392
Note: See TracChangeset for help on using the changeset viewer.