projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remember the previously selected toolchain when coming back from the module page.
[bertos.git]
/
wizard
/
BWizard.py
diff --git
a/wizard/BWizard.py
b/wizard/BWizard.py
index 4fd560354d3a7b2ab86bd1a68782823169727682..a22e603c4037e1c46d462fbd9e357b552cf49aef 100644
(file)
--- a/
wizard/BWizard.py
+++ b/
wizard/BWizard.py
@@
-50,7
+50,8
@@
class BWizard(QWizard):
def __init__(self, page_list):
QWizard.__init__(self)
def __init__(self, page_list):
QWizard.__init__(self)
- self.setFixedSize(800, 500)
+ geometry = QApplication.instance().settings.value("geometry", QVariant()).toRect()
+ self.setGeometry(geometry)
self.setWindowTitle(self.tr("Create a BeRTOS project - rev.%1").arg(wizard_version))
self.setWindowIcon(QIcon(":/images/appicon.png"))
self.setOption(QWizard.DisabledBackButtonOnLastPage, True)
self.setWindowTitle(self.tr("Create a BeRTOS project - rev.%1").arg(wizard_version))
self.setWindowIcon(QIcon(":/images/appicon.png"))
self.setOption(QWizard.DisabledBackButtonOnLastPage, True)
@@
-89,3
+90,8
@@
class BWizard(QWizard):
Returns the BProject associated with the wizard.
"""
return copy.deepcopy(QApplication.instance().project)
Returns the BProject associated with the wizard.
"""
return copy.deepcopy(QApplication.instance().project)
+
+ def done(self, result):
+ geometry = self.geometry()
+ QApplication.instance().settings.setValue("geometry", QVariant(geometry))
+ QWizard.done(self, result)