summaryrefslogtreecommitdiff
path: root/tools/testcon
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2012-08-14 15:45:26 +0300
committerQt by Nokia <qt-info@nokia.com>2012-08-14 15:54:55 +0200
commit885025ab3204fa146461f982a71f05f796d0fbd2 (patch)
tree2996024288e21c8cb5bfea055d0ce82bfd653f5b /tools/testcon
parentf1d18a2ede78a97c152dd50c3899df51829c4260 (diff)
downloadqtactiveqt-885025ab3204fa146461f982a71f05f796d0fbd2.tar.gz
Fix initial subwindow size in testcon tool
If QAxWidget is added as a subwindow before the control is set to it, the client area size of the subwindow will be zero, as it cannot determine the preferred size yet. Change-Id: Ia144aa06029dd8d949b1848a36d975a098b18113 Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'tools/testcon')
-rw-r--r--tools/testcon/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testcon/mainwindow.cpp b/tools/testcon/mainwindow.cpp
index 079085d..f0b65f8 100644
--- a/tools/testcon/mainwindow.cpp
+++ b/tools/testcon/mainwindow.cpp
@@ -117,9 +117,9 @@ void MainWindow::on_actionFileNew_triggered()
QAxSelect select(this);
if (select.exec()) {
QAxWidget *container = new QAxWidget;
- mdiArea->addSubWindow(container);
container->setControl(select.clsid());
container->setObjectName(container->windowTitle());
+ mdiArea->addSubWindow(container);
container->show();
}
updateGUI();