Fixed widegraph width issues on larger monitors by centering the widegraph and extending the controls panel

This commit is contained in:
Jordan Sherer 2019-12-23 15:29:12 -05:00
parent 8699ec2129
commit fb727ccfc7
2 changed files with 9 additions and 3 deletions

View File

@ -37,7 +37,6 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) :
setWindowTitle (QApplication::applicationName () + " - " + tr ("Wide Graph")); setWindowTitle (QApplication::applicationName () + " - " + tr ("Wide Graph"));
setWindowFlags (Qt::WindowCloseButtonHint | Qt::WindowMinimizeButtonHint); setWindowFlags (Qt::WindowCloseButtonHint | Qt::WindowMinimizeButtonHint);
setMaximumWidth (MAX_SCREENSIZE);
setMaximumHeight (880); setMaximumHeight (880);
ui->splitter->setChildrenCollapsible(false); ui->splitter->setChildrenCollapsible(false);
@ -56,6 +55,7 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) :
ui->filterMaxSpinBox->installEventFilter(filterEscapeEater); ui->filterMaxSpinBox->installEventFilter(filterEscapeEater);
ui->widePlot->setCursor(Qt::CrossCursor); ui->widePlot->setCursor(Qt::CrossCursor);
ui->widePlot->setMaximumWidth(MAX_SCREENSIZE);
ui->widePlot->setMaximumHeight(800); ui->widePlot->setMaximumHeight(800);
ui->widePlot->setCurrent(false); ui->widePlot->setCurrent(false);

View File

@ -10,6 +10,12 @@
<height>211</height> <height>211</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Dialog</string>
</property> </property>
@ -54,7 +60,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>4</horstretch> <horstretch>4</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -172,7 +178,7 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>-195</y> <y>0</y>
<width>267</width> <width>267</width>
<height>402</height> <height>402</height>
</rect> </rect>