Remove _ from method names
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 1 Apr 2009 07:57:20 +0000 (07:57 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 1 Apr 2009 07:57:20 +0000 (07:57 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2454 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/BStartPage.py
wizard/BWizard.py

index cc6f1c9ea75a04b4bd28800b5f49c29adf01ea3a..f66b5e278639665be9ea328a494a25514e626640 100644 (file)
@@ -19,22 +19,22 @@ class BStartPage(QDialog):
     
     def __init__(self):
         QDialog.__init__(self)
-        self._setupUi()
-        self._connectSignals()
+        self.setupUi()
+        self.connectSignals()
         self.setWindowTitle(self.tr("Create or edit a BeRTOS project"))
-        self._initializeButtons()
+        self.initializeButtons()
     
-    def _setupUi(self):
+    def setupUi(self):
         self.content = uic.loadUi(UI_LOCATION + "/start.ui", None)
         layout = QVBoxLayout()
         layout.addWidget(self.content)
         self.setLayout(layout)
     
-    def _connectSignals(self):
+    def connectSignals(self):
         self.connect(self.content.newButton, SIGNAL("clicked()"), self.newProject)
         self.connect(self.content.editButton, SIGNAL("clicked()"), self.editProject)
     
-    def _initializeButtons(self):
+    def initializeButtons(self):
         self.button_group = QButtonGroup()
         self.button_group.addButton(self.content.newButton)
         self.button_group.addButton(self.content.editButton)
index 004fdf3e534c450796719f663670e522d8c7da1a..3ea2dac67a195fa68fecd88bfeb8192a153a6816 100644 (file)
@@ -32,10 +32,10 @@ class BWizard(QWizard):
         QWizard.__init__(self)
         self.setWindowTitle(self.tr("Create a BeRTOS project"))
         self.setOption(QWizard.DisabledBackButtonOnLastPage, True)
-        self._addPages()
-        self._connectSignals()
+        self.addPages()
+        self.connectSignals()
     
-    def _addPages(self):
+    def addPages(self):
         """
         Method used by the constructor in order to add the pages in the wizard.
         """
@@ -48,13 +48,13 @@ class BWizard(QWizard):
         self.addPage(BCreationPage.BCreationPage())
         self.addPage(BFinalPage.BFinalPage())
     
-    def _connectSignals(self):
+    def connectSignals(self):
         """
         Connects the signals with the related slots.
         """
-        self.connect(self, SIGNAL("currentIdChanged(int)"), self._pageChanged)
+        self.connect(self, SIGNAL("currentIdChanged(int)"), self.pageChanged)
     
-    def _pageChanged(self, pageId):
+    def pageChanged(self, pageId):
         """
         Slot called when the user change the current page. It calls the reloadData
         method of the next page.