[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/workspace/kcontrol/workspaceoptions
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-05-07 0:24:11
Message-ID: 20100507002411.1E3FCAC8B0 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1123805 by aseigo:
allow configuring the plasma tooltip delay value. reveals the feature in r1123803, \
which was based on a patch by "linux fan" (see bug 211593) BUG:211593
M +100 -8 mainpage.ui
M +11 -0 workspaceoptions.cpp
--- trunk/KDE/kdebase/workspace/kcontrol/workspaceoptions/mainpage.ui \
#1123804:1123805 @@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>320</width>
- <height>63</height>
+ <width>335</width>
+ <height>92</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
@@ -22,6 +22,8 @@
</widget>
</item>
<item row="0" column="1">
+ <layout class="QHBoxLayout" name="horizontalLayout_3">
+ <item>
<widget class="QComboBox" name="formFactor">
<item>
<property name="text">
@@ -35,6 +37,21 @@
</item>
</widget>
</item>
+ <item>
+ <spacer name="horizontalSpacer_4">
+ <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>
<item row="1" column="0">
<widget class="QLabel" name="dashboardLabel">
<property name="text">
@@ -46,6 +63,8 @@
</widget>
</item>
<item row="1" column="1">
+ <layout class="QHBoxLayout" name="horizontalLayout_2">
+ <item>
<widget class="QComboBox" name="dashboardMode">
<item>
<property name="text">
@@ -59,20 +78,22 @@
</item>
</widget>
</item>
- <item row="2" column="1">
- <spacer name="verticalSpacer">
+ <item>
+ <spacer name="horizontalSpacer_3">
<property name="orientation">
- <enum>Qt::Vertical</enum>
+ <enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>20</width>
- <height>214</height>
+ <width>40</width>
+ <height>20</height>
</size>
</property>
</spacer>
</item>
- <item row="0" column="2">
+ </layout>
+ </item>
+ <item row="1" column="2">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
@@ -85,7 +106,78 @@
</property>
</spacer>
</item>
+ <item row="2" column="0">
+ <widget class="QLabel" name="tooltipDelayLabel">
+ <property name="text">
+ <string>Informational Tips:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QDoubleSpinBox" name="toolTipDelay">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
+ <horstretch>10</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="specialValueText">
+ <string>Do not show</string>
+ </property>
+ <property name="prefix">
+ <string>Show after </string>
+ </property>
+ <property name="suffix">
+ <string> seconds</string>
+ </property>
+ <property name="decimals">
+ <number>1</number>
+ </property>
+ <property name="minimum">
+ <double>-0.100000000000000</double>
+ </property>
+ <property name="singleStep">
+ <double>0.100000000000000</double>
+ </property>
+ <property name="value">
+ <double>0.700000000000000</double>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>58</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
</layout>
+ </item>
+ <item row="3" column="1">
+ <spacer name="verticalSpacer">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>214</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
</widget>
<resources/>
<connections/>
--- trunk/KDE/kdebase/workspace/kcontrol/workspaceoptions/workspaceoptions.cpp \
#1123804:1123805 @@ -59,6 +59,7 @@
connect(m_ui->formFactor, SIGNAL(currentIndexChanged(int)), this, \
SLOT(changed()));
connect(m_ui->dashboardMode, SIGNAL(currentIndexChanged(int)), this, \
SLOT(changed())); + connect(m_ui->toolTipDelay, SIGNAL(valueChanged(double)), \
this, SLOT(changed()));
connect(m_ui->formFactor, SIGNAL(currentIndexChanged(int)), this, \
SLOT(formFactorChanged(int)));
//enable the combobox if both plasma-desktop and plasma-netbook are present
@@ -75,6 +76,12 @@
void WorkspaceOptionsModule::save()
{
+ {
+ KConfig config("plasmarc");
+ KConfigGroup cg(&config, "PlasmaToolTips");
+ cg.writeEntry("Delay", m_ui->toolTipDelay->value());
+ }
+
const bool isDesktop = m_ui->formFactor->currentIndex() == 0;
m_plasmaDesktopAutostart.setAutostarts(isDesktop);
@@ -296,6 +303,10 @@
} else {
m_ui->dashboardMode->setCurrentIndex(0);
}
+
+ KConfig config("plasmarc");
+ KConfigGroup cg(&config, "PlasmaToolTips");
+ m_ui->toolTipDelay->setValue(cg.readEntry("Delay", 0.7));
}
void WorkspaceOptionsModule::defaults()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic