Commit a9caede1 authored by Jan Möbius's avatar Jan Möbius

Options Setting for MaxRecent

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13387 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 863f26e9
......@@ -270,8 +270,9 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
loggerInScene->setChecked( OpenFlipper::Options::loggerState() == OpenFlipper::Options::InScene);
enableLogFile->setChecked( OpenFlipperSettings().value("Core/Log/logFileEnabled",true).toBool() );
//paths
//Files
logFile->setText( OpenFlipperSettings().value("Core/Log/logFile").toString() );
maxRecentBox->setValue( OpenFlipperSettings().value("Core/File/MaxRecent",15).toInt() );
// UI settings
toolBoxOrientation->setCurrentIndex((OpenFlipperSettings().value("Core/Gui/ToolBoxes/ToolBoxOnTheRight",true).toBool() ? 0 : 1));
......@@ -576,6 +577,8 @@ void OptionsWidget::slotApply() {
OpenFlipperSettings().setValue("Core/Log/logFileEnabled",enableLogFile->isChecked());
OpenFlipperSettings().setValue("Core/Log/logFile",logFile->text());
OpenFlipperSettings().setValue("Core/File/MaxRecent",maxRecentBox->value() ) ;
// Toolbox orientation
OpenFlipperSettings().setValue("Core/Gui/ToolBoxes/ToolBoxOnTheRight", (toolBoxOrientation->currentIndex() == 0));
......
......@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>816</width>
<width>700</width>
<height>599</height>
</rect>
</property>
......@@ -36,7 +36,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>787</width>
<width>671</width>
<height>866</height>
</rect>
</property>
......@@ -50,7 +50,7 @@
<string/>
</property>
<property name="currentIndex">
<number>6</number>
<number>0</number>
</property>
<property name="usesScrollButtons">
<bool>true</bool>
......@@ -308,25 +308,89 @@
</widget>
<widget class="QWidget" name="paths">
<attribute name="title">
<string>Paths</string>
<string>Files</string>
</attribute>
<layout class="QFormLayout" name="formLayout_2">
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>Logfile:</string>
<layout class="QVBoxLayout" name="verticalLayout_24">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_9">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Logfile:</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="logFile">
<property name="toolTip">
<string>filename (including path) of the logfile</string>
</property>
<property name="statusTip">
<string>filename (including path) of the logfile</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox_10">
<property name="title">
<string>Recent Files</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_23">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_21">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_20">
<item>
<widget class="QLabel" name="label_20">
<property name="text">
<string>Max entries in recent file list</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="maxRecentBox">
<property name="maximum">
<number>50</number>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="horizontalSpacer_10">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="logFile">
<property name="toolTip">
<string>filename (including path) of the logfile</string>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="statusTip">
<string>filename (including path) of the logfile</string>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>708</height>
</size>
</property>
</widget>
</spacer>
</item>
</layout>
</widget>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment