Commit 96325348 authored by Benjamin Jakimow's avatar Benjamin Jakimow
Browse files
parent c4407cfa
Pipeline #18162 failed with stage
in 6 seconds
......@@ -1428,8 +1428,8 @@ class DateTimeViewBox(pg.ViewBox):
self.mCurrentDate = np.datetime64('today')
self.mXAxisUnit = 'date'
xAction = [a for a in self.menu.actions() if a.text() == 'X Axis'][0]
yAction = [a for a in self.menu.actions() if a.text() == 'Y Axis'][0]
xAction = [a for a in self.menu.actions() if re.search('X Axis', a.text(), re.IGNORECASE)][0]
#yAction = [a for a in self.menu.actions() if re.search('Y Axis', a.text(), re.IGNORECASE)][0]
menuXAxis = self.menu.addMenu('X Axis')
# define the widget to set X-Axis options
......@@ -1459,7 +1459,7 @@ class DateTimeViewBox(pg.ViewBox):
l.addWidget(self.dateEditX1, 0, 2)
l.addWidget(self.rbXAutoRange, 1, 0)
l.setMargin(1)
l.setContentsMargins(1, 1, 1, 1)
l.setSpacing(1)
frame.setMinimumSize(l.sizeHint())
wa = QWidgetAction(menuXAxis)
......@@ -1561,7 +1561,7 @@ class ProfileViewDock(QgsDockWidget):
self.pxViewModel2D = None
self.tableView2DProfiles.horizontalHeader().setResizeMode(QHeaderView.Interactive)
self.tableView2DProfiles.horizontalHeader().setSectionResizeMode(QHeaderView.Interactive)
self.mTasks = dict()
......@@ -1611,7 +1611,7 @@ class ProfileViewDock(QgsDockWidget):
self.tableView2DProfiles.setModel(self.plotSettingsModel2DProxy)
self.tableView2DProfiles.setSortingEnabled(True)
self.tableView2DProfiles.selectionModel().selectionChanged.connect(self.onPlot2DSelectionChanged)
self.tableView2DProfiles.horizontalHeader().setResizeMode(QHeaderView.Interactive)
self.tableView2DProfiles.horizontalHeader().setSectionResizeMode(QHeaderView.Interactive)
self.delegateTableView2D = PlotSettingsTableViewWidgetDelegate(self.tableView2DProfiles)
......
......@@ -47,7 +47,7 @@ class SensorDockUI(QgsDockWidget):
self.mSensorModel = SensorTableModel(self.TS)
self.mSortedModel.setSourceModel(self.mSensorModel)
self.sensorView.setModel(self.mSortedModel)
self.sensorView.horizontalHeader().setResizeMode(QHeaderView.ResizeToContents)
self.sensorView.horizontalHeader().setSectionResizeMode(QHeaderView.ResizeToContents)
class SensorTableModel(QAbstractTableModel):
......
......@@ -219,7 +219,7 @@ def rst2html(pathMD: pathlib.Path) -> str:
}
buffer = io.StringIO()
html = docutils.core.publish_file(source_path=pathMD, writer_name='html5', settings_overrides=overrides, destination=buffer)
html = docutils.core.publish_file(source_path=pathMD.as_posix(), writer_name='html5', settings_overrides=overrides, destination=buffer)
xml = minidom.parseString(html)
# remove headline
......
......@@ -43,8 +43,12 @@ class TestMain(EOTSVTestCase):
def tearDown(self):
eotsv = EOTimeSeriesViewer.instance()
if isinstance(eotsv, EOTimeSeriesViewer):
eotsv.close()
try:
eotsv.close()
except Exception as ex:
pass
QApplication.processEvents()
super().tearDown()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment