Use QDoubleSpinBox instead of QSpinBox for the long variables
[bertos.git] / wizard / BWizardPage.py
index f7b60c37309599b25a3afd6ae4d30e8784a968cd..dd1ccc95466b3fbf37f20c4c0b90e82ecd9bcdf0 100644 (file)
@@ -13,10 +13,7 @@ from PyQt4.QtCore import *
 from PyQt4.QtGui import *
 from PyQt4 import uic
 
-if PYQT_VERSION_STR > "4.4.3":
-    import qvariant_converter_new as qvariant_converter
-else:
-    import qvariant_converter_old as qvariant_converter
+import qvariant_converter
 
 class BWizardPage(QWizardPage):
     
@@ -27,6 +24,9 @@ class BWizardPage(QWizardPage):
         layout.addWidget(self.pageContent)
         self.setLayout(layout)
     
+    def _exceptionOccurred(self, message):
+        QMessageBox.critical(self, self.tr("Error occurred"), message, QMessageBox.Ok, QMessageBox.NoButton)
+    
     def _settingsStore(self, key, value):
         QApplication.instance().settings.setValue(QString(key), value)
     
@@ -64,4 +64,7 @@ class BWizardPage(QWizardPage):
         self._settingsStore("toolchains", qvariant_converter.convertBoolDict(toolchains))
     
     def reloadData(self):
+        pass
+    
+    def saveData(self):
         pass
\ No newline at end of file