summaryrefslogtreecommitdiff
path: root/qt-recordmydesktop/src
diff options
context:
space:
mode:
authoriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-02 00:47:55 +0000
committeriovar <iovar@f606c939-3180-4ac9-a4b8-4b8779d57d0a>2007-12-02 00:47:55 +0000
commit22ee15e51f6d72560af37fad744662161e284eb9 (patch)
treee2ecc50b1a62456a72030482ca40196e64762c30 /qt-recordmydesktop/src
parentbe37e1c0f6e2e7ac834bcef036f133de5458c665 (diff)
rmdPrefsWidget.py: fixed layout of advanced window
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@451 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'qt-recordmydesktop/src')
-rw-r--r--qt-recordmydesktop/src/rmdPrefsWidget.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/qt-recordmydesktop/src/rmdPrefsWidget.py b/qt-recordmydesktop/src/rmdPrefsWidget.py
index 6c3ed78..44d5ae2 100644
--- a/qt-recordmydesktop/src/rmdPrefsWidget.py
+++ b/qt-recordmydesktop/src/rmdPrefsWidget.py
@@ -108,9 +108,17 @@ class prefsWidget(object):
self.labelbox={}
self.tabWidgets={}
self.notebook = QtGui.QTabWidget(self.window)
+ self.baseLayout=QtGui.QVBoxLayout(self.window)
+ self.baseLayout.setSpacing(0)
+ try:
+ self.baseLayout.setContentsMargins(0,9,0,0)
+ except:
+ self.baseLayout.setMargin(0)
+ self.window.setLayout(self.baseLayout)
+
for i in range(4):
- self.labelbox[i]=QtGui.QVBoxLayout()
- self.tabWidgets[i]=QtGui.QWidget()
+ self.tabWidgets[i]=QtGui.QWidget(self.notebook)
+ self.labelbox[i]=QtGui.QVBoxLayout(self.tabWidgets[i])
#Files page
for i in range(2):
self.labels[i]=QtGui.QLabel(prefLabelStrings[i],self.tabWidgets[0])
@@ -267,7 +275,8 @@ class prefsWidget(object):
for i in range(4):
self.tabWidgets[i].setLayout(self.labelbox[i])
self.notebook.insertTab(-1,self.tabWidgets[i],prefTabStrings[i])
- self.notebook.show()
+
+ self.baseLayout.addWidget(self.notebook)
return
def addPort(self,lwi):
© All Rights Reserved