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"));
setWindowFlags (Qt::WindowCloseButtonHint | Qt::WindowMinimizeButtonHint);
setMaximumWidth (MAX_SCREENSIZE);
setMaximumHeight (880);
ui->splitter->setChildrenCollapsible(false);
@ -56,6 +55,7 @@ WideGraph::WideGraph(QSettings * settings, QWidget *parent) :
ui->filterMaxSpinBox->installEventFilter(filterEscapeEater);
ui->widePlot->setCursor(Qt::CrossCursor);
ui->widePlot->setMaximumWidth(MAX_SCREENSIZE);
ui->widePlot->setMaximumHeight(800);
ui->widePlot->setCurrent(false);

View File

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