summaryrefslogtreecommitdiffstats
path: root/src/tools/uic3/form.cpp
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-01-21 12:47:41 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-01-21 12:47:41 (GMT)
commit2ae6b44e4242c60bd882661e104bb53fa6670556 (patch)
tree024f8e72fcafda1698d5929de52b92f6f4d94279 /src/tools/uic3/form.cpp
parentbd4cbc57ee6b3d2721a51932f4eaea8d8b07f04f (diff)
parentaf30aeb6a1ebb7307f06c122c0c93d152f4d958c (diff)
downloadQt-2ae6b44e4242c60bd882661e104bb53fa6670556.zip
Qt-2ae6b44e4242c60bd882661e104bb53fa6670556.tar.gz
Qt-2ae6b44e4242c60bd882661e104bb53fa6670556.tar.bz2
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/berlin-staging-1 into 4.6-integration
* '4.6' of scm.dev.nokia.troll.no:qt/berlin-staging-1: QtHelp: Enable dynamic translation. Designer: Fixed a crash when previewing in a non-existent style. uic3: Introduced option to preserve layout object names of Designer 3.
Diffstat (limited to 'src/tools/uic3/form.cpp')
-rw-r--r--src/tools/uic3/form.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/uic3/form.cpp b/src/tools/uic3/form.cpp
index ac2668b..df1314f 100644
--- a/src/tools/uic3/form.cpp
+++ b/src/tools/uic3/form.cpp
@@ -100,7 +100,7 @@ QByteArray combinePath(const char *infile, const char *outfile)
\sa createFormImpl()
*/
-void Ui3Reader::createFormDecl(const QDomElement &e, bool implicitIncludes)
+void Ui3Reader::createFormDecl(const QDomElement &e)
{
QDomElement body = e;
@@ -138,7 +138,7 @@ void Ui3Reader::createFormDecl(const QDomElement &e, bool implicitIncludes)
QString tagName = n3.tagName().toLower();
if (tagName == QLatin1String("class")) {
cl = n3.firstChild().toText().data();
- if (!nofwd)
+ if (m_options & CustomWidgetForwardDeclarations)
forwardDecl << cl;
customWidgets.insert(cl, 0);
} else if (tagName == QLatin1String("header")) {
@@ -257,10 +257,10 @@ void Ui3Reader::createFormDecl(const QDomElement &e, bool implicitIncludes)
d.option().copyrightHeader = false;
d.option().extractImages = m_extractImages;
d.option().qrcOutputFile = m_qrcOutputFile;
- d.option().implicitIncludes = implicitIncludes;
+ d.option().implicitIncludes = (m_options & ImplicitIncludes) ? 1 : 0;
if (trmacro.size())
d.option().translateFunction = trmacro;
- DomUI *ui = generateUi4(e, implicitIncludes);
+ DomUI *ui = generateUi4(e);
d.uic(fileName, ui, &out);
delete ui;