--- a/src/eric7/Preferences/ConfigurationPages/EditorFilePage.ui Mon Nov 13 11:53:55 2023 +0100 +++ b/src/eric7/Preferences/ConfigurationPages/EditorFilePage.ui Mon Nov 13 17:38:06 2023 +0100 @@ -234,53 +234,65 @@ </widget> </item> <item> - <layout class="QHBoxLayout"> - <item> - <widget class="QLabel" name="TextLabel13_3_3"> - <property name="text"> - <string>Autosave interval:</string> - </property> - </widget> - </item> - <item> - <widget class="QSlider" name="autosaveSlider"> - <property name="toolTip"> - <string>Move to set the autosave interval in minutes (0 to disable)</string> - </property> - <property name="minimum"> - <number>0</number> - </property> - <property name="maximum"> - <number>30</number> - </property> - <property name="value"> - <number>5</number> - </property> - <property name="orientation"> - <enum>Qt::Horizontal</enum> - </property> - <property name="tickInterval"> - <number>1</number> - </property> - </widget> - </item> - <item> - <widget class="QLCDNumber" name="autosaveLCD"> - <property name="toolTip"> - <string>Displays the selected autosave interval.</string> - </property> - <property name="digitCount"> - <number>2</number> - </property> - <property name="segmentStyle"> - <enum>QLCDNumber::Flat</enum> - </property> - <property name="value" stdset="0"> - <double>5.000000000000000</double> - </property> - </widget> - </item> - </layout> + <widget class="QGroupBox" name="groupBox_14"> + <property name="title"> + <string>Autosave</string> + </property> + <layout class="QGridLayout" name="gridLayout_7"> + <item row="0" column="0"> + <widget class="QLabel" name="label_14"> + <property name="text"> + <string>Interval:</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QSpinBox" name="autosaveSpinBox"> + <property name="toolTip"> + <string>Enter the auto save interval in seconds.</string> + </property> + <property name="alignment"> + <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> + </property> + <property name="specialValueText"> + <string>off</string> + </property> + <property name="suffix"> + <string> s</string> + </property> + <property name="maximum"> + <number>900</number> + </property> + <property name="singleStep"> + <number>5</number> + </property> + </widget> + </item> + <item row="0" column="2"> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>415</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="0" colspan="3"> + <widget class="QCheckBox" name="autosaveOnFocusLostCheckBox"> + <property name="toolTip"> + <string>Select to save the file automatically when the editor looses the input focus.</string> + </property> + <property name="text"> + <string>Autosave when focus lost</string> + </property> + </widget> + </item> + </layout> + </widget> </item> </layout> </widget> @@ -784,7 +796,8 @@ <tabstop>insertFinalNewlineCheckBox</tabstop> <tabstop>stripWhitespaceCheckBox</tabstop> <tabstop>createBackupFileCheckBox</tabstop> - <tabstop>autosaveSlider</tabstop> + <tabstop>autosaveSpinBox</tabstop> + <tabstop>autosaveOnFocusLostCheckBox</tabstop> <tabstop>advEncodingCheckBox</tabstop> <tabstop>defaultEncodingComboBox</tabstop> <tabstop>openFilesFilterComboBox</tabstop> @@ -810,22 +823,5 @@ <tabstop>previewQssExtensionsEdit</tabstop> </tabstops> <resources/> - <connections> - <connection> - <sender>autosaveSlider</sender> - <signal>valueChanged(int)</signal> - <receiver>autosaveLCD</receiver> - <slot>display(int)</slot> - <hints> - <hint type="sourcelabel"> - <x>272</x> - <y>58</y> - </hint> - <hint type="destinationlabel"> - <x>420</x> - <y>55</y> - </hint> - </hints> - </connection> - </connections> + <connections/> </ui>