Skip to content
Snippets Groups Projects
Commit 1d3b33ae authored by graeser's avatar graeser Committed by graeser@PCPOOL.MI.FU-BERLIN.DE
Browse files

Get rid of warning

QMainWindow has a QLayout. We have to create the centralWidget
and set our custom QLayout for this.

[[Imported from SVN: r2917]]
parent ca3b07ea
Branches
Tags
No related merge requests found
......@@ -76,15 +76,17 @@ class MainWindow(qt.QMainWindow):
self.timeout = timeout
self.autoAppend = autoAppend
self.layout = qt.QVBoxLayout(self)
self.controlBoxLayout = qt.QHBoxLayout(self.layout)
self.content = qt.QFrame(self)
self.setCentralWidget(self.content)
self.contentlayout = qt.QVBoxLayout(self.content)
self.controlBoxLayout = qt.QHBoxLayout(self.contentlayout)
self.controlBoxLayout.setSpacing(20)
self.controlBoxLayout.setMargin(10)
self.maxLevelControl = qt.QSpinBox(0,10,1,self)
self.followControl = qt.QCheckBox ('follow', self)
self.autoAppendControl = qt.QCheckBox ('auto append', self)
self.hview = HListView(follow, self)
self.maxLevelControl = qt.QSpinBox(0,10,1,self.content)
self.followControl = qt.QCheckBox ('follow', self.content)
self.autoAppendControl = qt.QCheckBox ('auto append', self.content)
self.hview = HListView(follow, self.content)
self.followControl.setOn(self.hview.follow)
self.autoAppendControl.setOn(self.autoAppend)
......@@ -92,7 +94,7 @@ class MainWindow(qt.QMainWindow):
self.controlBoxLayout.addWidget(self.maxLevelControl)
self.controlBoxLayout.addWidget(self.followControl)
self.controlBoxLayout.addWidget(self.autoAppendControl)
self.layout.addWidget(self.hview)
self.contentlayout.addWidget(self.hview)
self.controlBoxLayout.insertStretch(-1)
self.connect(self.maxLevelControl, qt.SIGNAL('valueChanged(int)'), self.hview.setMaxLevel)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment