Disable FPS limit spinbox by default and set the maximum to 1000

Make window border and framerate limit labels consistent with other labels
pull/2404/head
Capostrophic 6 years ago
parent b87b29eeb0
commit 9502e9f3f7

@ -128,10 +128,6 @@ bool Launcher::GraphicsPage::loadSettings()
framerateLimitCheckBox->setCheckState(Qt::Checked); framerateLimitCheckBox->setCheckState(Qt::Checked);
framerateLimitSpinBox->setValue(fpsLimit); framerateLimitSpinBox->setValue(fpsLimit);
} }
else
{
framerateLimitSpinBox->setEnabled(false);
}
return true; return true;
} }

@ -34,7 +34,7 @@
<item row="2" column="0"> <item row="2" column="0">
<widget class="QCheckBox" name="windowBorderCheckBox"> <widget class="QCheckBox" name="windowBorderCheckBox">
<property name="text"> <property name="text">
<string>Window border</string> <string>Window Border</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -65,7 +65,7 @@
<item row="6" column="0"> <item row="6" column="0">
<widget class="QCheckBox" name="framerateLimitCheckBox"> <widget class="QCheckBox" name="framerateLimitCheckBox">
<property name="text"> <property name="text">
<string>Framerate limit</string> <string>Framerate Limit:</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -152,6 +152,9 @@
</item> </item>
<item row="6" column="1"> <item row="6" column="1">
<widget class="QDoubleSpinBox" name="framerateLimitSpinBox"> <widget class="QDoubleSpinBox" name="framerateLimitSpinBox">
<property name="enabled">
<bool>false</bool>
</property>
<property name="suffix"> <property name="suffix">
<string> FPS</string> <string> FPS</string>
</property> </property>
@ -162,7 +165,7 @@
<double>1</double> <double>1</double>
</property> </property>
<property name="maximum"> <property name="maximum">
<double>999</double> <double>1000</double>
</property> </property>
<property name="singleStep"> <property name="singleStep">
<double>15</double> <double>15</double>

Loading…
Cancel
Save