summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-09-25 15:05:54 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-09-25 15:05:54 +0200
commit884f27b7cb53f9876e1fad1026b5bac145d7ae9b (patch)
treede24d7c75f68e399c21b5ff9fd2e191e8115cce6 /module
parentAdded tag v0.4.2 for changeset a6056a60450a (diff)
downloadpyload-884f27b7cb53f9876e1fad1026b5bac145d7ae9b.tar.xz
better settings tab
Diffstat (limited to 'module')
-rw-r--r--module/gui/MainWindow.py8
-rw-r--r--module/gui/SettingsWidget.py22
2 files changed, 23 insertions, 7 deletions
diff --git a/module/gui/MainWindow.py b/module/gui/MainWindow.py
index e457c984f..12f883287 100644
--- a/module/gui/MainWindow.py
+++ b/module/gui/MainWindow.py
@@ -101,15 +101,15 @@ class MainWindow(QMainWindow):
self.tabs["collector"] = {"w":QWidget()}
self.tabs["accounts"] = {"w":QWidget()}
self.tabs["settings"] = {}
- self.tabs["settings"]["s"] = QScrollArea()
+ #self.tabs["settings"]["s"] = QScrollArea()
self.tabs["settings"]["w"] = SettingsWidget()
- self.tabs["settings"]["s"].setWidgetResizable(True)
- self.tabs["settings"]["s"].setWidget(self.tabs["settings"]["w"])
+ #self.tabs["settings"]["s"].setWidgetResizable(True)
+ #self.tabs["settings"]["s"].setWidget(self.tabs["settings"]["w"])
self.tabs["log"] = {"w":QWidget()}
self.tabw.addTab(self.tabs["queue"]["w"], _("Queue"))
self.tabw.addTab(self.tabs["collector"]["w"], _("Collector"))
self.tabw.addTab(self.tabs["accounts"]["w"], _("Accounts"))
- self.tabw.addTab(self.tabs["settings"]["s"], _("Settings"))
+ self.tabw.addTab(self.tabs["settings"]["w"], _("Settings"))
self.tabw.addTab(self.tabs["log"]["w"], _("Log"))
#init tabs
diff --git a/module/gui/SettingsWidget.py b/module/gui/SettingsWidget.py
index ddfb45994..31d1acca8 100644
--- a/module/gui/SettingsWidget.py
+++ b/module/gui/SettingsWidget.py
@@ -63,8 +63,15 @@ class SettingsWidget(QWidget):
tab = QTabWidget()
self.tab = tab
- tab.addTab(general, _("General"))
- tab.addTab(plugins, _("Plugins"))
+
+ gw = QWidget()
+ gw.setLayout(QVBoxLayout())
+ gw.layout().addWidget(self.general)
+ pw = QWidget()
+ pw.setLayout(QVBoxLayout())
+ pw.layout().addWidget(self.plugins)
+ tab.addTab(gw, _("General"))
+ tab.addTab(pw, _("Plugins"))
layout.addWidget(tab)
@@ -155,7 +162,16 @@ class Section(QGroupBox):
self.ctype = ctype
layout = QGridLayout(self)
self.setLayout(layout)
- parent.addTab(self, data["desc"])
+
+ sw = QWidget()
+ sw.setLayout(QVBoxLayout())
+ sw.layout().addWidget(self)
+
+ sa = QScrollArea()
+ sa.setWidgetResizable(True)
+ sa.setWidget(sw)
+
+ parent.addTab(sa, data["desc"])
row = 0
for k, option in self.data.iteritems():