summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/platforms/blackberry/qbbwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/platforms/blackberry/qbbwindow.cpp b/src/plugins/platforms/blackberry/qbbwindow.cpp
index 515b6c2..c57c556 100644
--- a/src/plugins/platforms/blackberry/qbbwindow.cpp
+++ b/src/plugins/platforms/blackberry/qbbwindow.cpp
@@ -121,6 +121,13 @@ QBBWindow::QBBWindow(QWidget *window, screen_context_t context, QBBScreen *scree
// Set the screen to the primary display (this is the default specified by screen).
setScreen(screen);
+
+ // Qt somtimes doesn't call these setters after creating the window, so we need to do that
+ // ourselves here
+ if (window->parentWidget())
+ setParent(window->parentWidget()->platformWindow());
+ setGeometry(window->geometry());
+ setVisible(window->isVisible());
}
QBBWindow::~QBBWindow()