From d6dad7eb666d458f5d0df9bcf9b7dac1b109eb85 Mon Sep 17 00:00:00 2001 From: duplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Wed, 22 Apr 2009 11:10:11 +0000 Subject: [PATCH] Use scroll area for the openable ides git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2622 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/BFinalPage.py | 16 ++++++++++++---- wizard/ui/final_page.ui | 16 +++++++++++++--- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/wizard/BFinalPage.py b/wizard/BFinalPage.py index 9fd481d3..254068c4 100644 --- a/wizard/BFinalPage.py +++ b/wizard/BFinalPage.py @@ -37,17 +37,25 @@ class BFinalPage(BWizardPage): bertos_utils.createBertosProject(self.project()) QApplication.instance().restoreOverrideCursor() if os.name == "nt": + self.pageContent.setVisible(True) output = self.projectInfo("OUTPUT") import winreg_importer command_lines = winreg_importer.getCommandLines() - if "codelite" in output and "codelite" in command_lines: - self.pageContent.codeliteCheck.setVisible(True) - + layout = QVBoxLayout() + self._plugin_dict = {} + for plugin in output: + if plugin in command_lines: + check = QCheckBox(plugin) + layout.addWidget(check) + self._plugin_dict[check] = plugin + widget = QWidget() + widget.setLayout(layout) + self.pageContent.scrollArea.setWidget(widget) def setupUi(self): """ Overload of the BWizardPage setupUi method. """ - self.pageContent.codeliteCheck.setVisible(False) + self.pageContent.scrollArea.setVisible(False) #### \ No newline at end of file diff --git a/wizard/ui/final_page.ui b/wizard/ui/final_page.ui index 202de2c6..d1543eae 100644 --- a/wizard/ui/final_page.ui +++ b/wizard/ui/final_page.ui @@ -48,10 +48,20 @@ </layout> </item> <item> - <widget class="QCheckBox" name="codeliteCheck"> - <property name="text"> - <string>Start CodeLite automatically</string> + <widget class="QScrollArea" name="scrollArea"> + <property name="widgetResizable"> + <bool>true</bool> </property> + <widget class="QWidget" name="scrollAreaWidgetContents"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>455</width> + <height>76</height> + </rect> + </property> + </widget> </widget> </item> </layout> -- 2.34.1