[bugfix] AutoPickLog is now directly attached to the MainWindow on the LeftDockWidgetArea and autoscrolls to the bottom

This commit is contained in:
Sebastian Wehling-Benatelli 2015-11-30 09:55:33 +01:00
parent 5f8569c7d9
commit d29c57ab4b

View File

@ -664,11 +664,11 @@ class MainWindow(QMainWindow):
def autoPick(self): def autoPick(self):
self.listWidget = QListWidget() self.listWidget = QListWidget()
self.setDirty(True) self.setDirty(True)
logDockWidget = QDockWidget("AutoPickLog", self) self.logDockWidget = QDockWidget("AutoPickLog", self)
logDockWidget.setObjectName("LogDockWidget") self.logDockWidget.setObjectName("LogDockWidget")
logDockWidget.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea) self.logDockWidget.setAllowedAreas(Qt.LeftDockWidgetArea | Qt.RightDockWidgetArea)
logDockWidget.setWidget(self.listWidget) self.logDockWidget.setWidget(self.listWidget)
self.addDockWidget(Qt.LeftDockWidgetArea, logDockWidget) self.addDockWidget(Qt.LeftDockWidgetArea, self.logDockWidget)
self.addListItem('loading default values for local data ...') self.addListItem('loading default values for local data ...')
autopick_parameter = AutoPickParameter('autoPyLoT_local.in') autopick_parameter = AutoPickParameter('autoPyLoT_local.in')
self.addListItem(str(autopick_parameter)) self.addListItem(str(autopick_parameter))