diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 06:45:00 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-02-05 06:45:00 (GMT) |
commit | 30bc5cb0d559bbab87e2d8c4ecf2a25d8e748649 (patch) | |
tree | 0ff6846448a29f17f1e0fc02515efe60464689ae | |
parent | 8ca95cbc98a97a8208120e4aa76bfd5c16b01df9 (diff) | |
parent | 2fb1b31384e60b166078d051042331be5797f578 (diff) | |
download | Qt-30bc5cb0d559bbab87e2d8c4ecf2a25d8e748649.zip Qt-30bc5cb0d559bbab87e2d8c4ecf2a25d8e748649.tar.gz Qt-30bc5cb0d559bbab87e2d8c4ecf2a25d8e748649.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:
uic: Fixed code generating setCentralWidget()-calls of QMainWindow.
-rw-r--r-- | src/tools/uic/cpp/cppwriteinitialization.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tools/uic/cpp/cppwriteinitialization.cpp b/src/tools/uic/cpp/cppwriteinitialization.cpp index 8099ffa..dc1d181 100644 --- a/src/tools/uic/cpp/cppwriteinitialization.cpp +++ b/src/tools/uic/cpp/cppwriteinitialization.cpp @@ -721,8 +721,9 @@ void WriteInitialization::acceptWidget(DomWidget *node) m_output << m_indent << parentWidget << "->addDockWidget(" << area << varName << ");\n"; } else if (m_uic->customWidgetsInfo()->extends(className, QLatin1String("QStatusBar"))) { m_output << m_indent << parentWidget << "->setStatusBar(" << varName << ");\n"; - } else { - m_output << m_indent << parentWidget << "->setCentralWidget(" << varName << ");\n"; + } else if (!m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3DockWindow")) + && !m_uic->customWidgetsInfo()->extends(className, QLatin1String("Q3ToolBar"))) { + m_output << m_indent << parentWidget << "->setCentralWidget(" << varName << ");\n"; } } |