summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2009-11-25 11:32:54 (GMT)
committerck <qt-info@nokia.com>2009-11-25 11:32:54 (GMT)
commiteaf355c488070a36eed6b99c794d4b055c788e15 (patch)
tree45f25a25d3640b620b2db3b9a9eeaceadfe09784
parent447576ef99f57c6a03850a7ed5bf598f33a64802 (diff)
downloadQt-eaf355c488070a36eed6b99c794d4b055c788e15.zip
Qt-eaf355c488070a36eed6b99c794d4b055c788e15.tar.gz
Qt-eaf355c488070a36eed6b99c794d4b055c788e15.tar.bz2
Assistant: Move tab widget allocation up.
We follow the controversial RABU ("Resource Acquisition Before Usage") pattern here. Patch is actually by con. Reviewed-by: con
-rw-r--r--tools/assistant/tools/assistant/centralwidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/assistant/tools/assistant/centralwidget.cpp b/tools/assistant/tools/assistant/centralwidget.cpp
index 6f6875f..7488662 100644
--- a/tools/assistant/tools/assistant/centralwidget.cpp
+++ b/tools/assistant/tools/assistant/centralwidget.cpp
@@ -223,6 +223,7 @@ CentralWidget::CentralWidget(QHelpEngine *engine, MainWindow *parent)
QString resourcePath = QLatin1String(":/trolltech/assistant/images/");
vboxLayout->setMargin(0);
+ tabWidget = new QTabWidget(this);
#ifndef Q_OS_MAC
resourcePath.append(QLatin1String("win"));
#else
@@ -230,7 +231,6 @@ CentralWidget::CentralWidget(QHelpEngine *engine, MainWindow *parent)
tabWidget->setDocumentMode(true);
#endif
- tabWidget = new QTabWidget(this);
connect(tabWidget, SIGNAL(currentChanged(int)), this,
SLOT(currentPageChanged(int)));