diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2012-08-14 15:45:26 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-14 15:54:55 +0200 |
commit | 885025ab3204fa146461f982a71f05f796d0fbd2 (patch) | |
tree | 2996024288e21c8cb5bfea055d0ce82bfd653f5b /tools/testcon | |
parent | f1d18a2ede78a97c152dd50c3899df51829c4260 (diff) | |
download | qtactiveqt-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.cpp | 2 |
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(); |