Juraj Oravec
f5f059c3eb
- Fix loading settings - Use lamdas in code - Hook into tab restoreChanged event - Add auto close tab option - Make spinboxes in settings accelerated closes GH-2 Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
121 lines
3.5 KiB
XML
121 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>SettingsDialog</class>
|
|
<widget class="QWidget" name="SettingsDialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>412</width>
|
|
<height>156</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Unloader Settings</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<layout class="QFormLayout" name="formLayout">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="updateIntervalLabel">
|
|
<property name="text">
|
|
<string>Update interval (in seconds):</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QSpinBox" name="updateIntervalSpinBox">
|
|
<property name="accelerated">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="buttonSymbols">
|
|
<enum>QAbstractSpinBox::PlusMinus</enum>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>60</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>5</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="discardInactiveTabAfterLabel">
|
|
<property name="text">
|
|
<string>Discard inactive tab after (in seconds):</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QSpinBox" name="discardInactiveTabAfterSpinBox">
|
|
<property name="buttonSymbols">
|
|
<enum>QAbstractSpinBox::PlusMinus</enum>
|
|
</property>
|
|
<property name="accelerated">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="minimum">
|
|
<number>60</number>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>86400</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>10</number>
|
|
</property>
|
|
<property name="value">
|
|
<number>600</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="closeTabWhenUnloadedForLabel">
|
|
<property name="text">
|
|
<string>Close tab when unloaded for:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QSpinBox" name="closeTabForSpinBox">
|
|
<property name="accelerated">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>0 - Disabled</string>
|
|
</property>
|
|
<property name="buttonSymbols">
|
|
<enum>QAbstractSpinBox::PlusMinus</enum>
|
|
</property>
|
|
<property name="maximum">
|
|
<number>86400</number>
|
|
</property>
|
|
<property name="singleStep">
|
|
<number>10</number>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBoxConfirm">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|