summaryrefslogtreecommitdiffstats
path: root/src/tools/uic/cpp/cppwriteinitialization.cpp
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2010-02-10 15:50:55 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2010-02-10 15:50:55 (GMT)
commit1b0c7a43624f378619ba4b5cc33fa3bfe4f531ed (patch)
treec22f6a63c2911d52ecc11aec8662d2f682d6afda /src/tools/uic/cpp/cppwriteinitialization.cpp
parent492f1f4267074525e33fb8571c12d520e92163a6 (diff)
parentb7af368e86874d71ffc9071c9ef009814d6a3467 (diff)
downloadQt-1b0c7a43624f378619ba4b5cc33fa3bfe4f531ed.zip
Qt-1b0c7a43624f378619ba4b5cc33fa3bfe4f531ed.tar.gz
Qt-1b0c7a43624f378619ba4b5cc33fa3bfe4f531ed.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
-rw-r--r--src/tools/uic/cpp/cppwriteinitialization.cpp5
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";
}
}