Hardcoded initial geometry: 200, 200, 800, 600
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 12 Nov 2010 15:22:13 +0000 (15:22 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 12 Nov 2010 15:22:13 +0000 (15:22 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4553 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BWizard.py

index cd81960efbca69c87b7a1ff5d451ffa1f5409fd8..b2bec3fff29c2e15cb92b154987a3bb395fed8f2 100644 (file)
@@ -50,7 +50,8 @@ class BWizard(QWizard):
     def __init__(self, page_list):
         self._current = None
         QWizard.__init__(self)
-        geometry = QApplication.instance().settings.value("geometry", None)
+        # Hardcoded default position (to avoid (0,0) origin)
+        geometry = QApplication.instance().settings.value("geometry", QVariant(QRect(QPoint(200, 200), QSize(800, 600))))
         if geometry:
             geometry = geometry.toRect()
             self.setGeometry(geometry)