Use KIntSpinBox instead of QSpinBox for better integration with KDE. As a bonus this allows to use plural suffix in spinboxes since KDE 4.3 if necessary.
svn path=/trunk/KDE/kdebase/workspace/; revision=989742
This commit is contained in:
parent
ae0bac5c42
commit
f3dad43a18
29 changed files with 161 additions and 89 deletions
|
@ -51,7 +51,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QSpinBox" name="opacitySpin" >
|
||||
<widget class="KIntSpinBox" name="opacitySpin" >
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -65,6 +65,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>opacitySlider</tabstop>
|
||||
<tabstop>opacitySpin</tabstop>
|
||||
|
|
|
@ -67,6 +67,7 @@ void CoverSwitchEffectConfig::load()
|
|||
KConfigGroup conf = EffectsHandler::effectConfig( "CoverSwitch" );
|
||||
|
||||
m_ui->spinDuration->setValue( conf.readEntry( "Duration", 0 ) );
|
||||
m_ui->spinDuration->setSuffix( ki18np( " milisecond", " miliseconds" ) );
|
||||
m_ui->checkAnimateSwitch->setChecked( conf.readEntry( "AnimateSwitch", true ));
|
||||
m_ui->checkAnimateStart->setChecked( conf.readEntry( "AnimateStart", true ));
|
||||
m_ui->checkAnimateStop->setChecked( conf.readEntry( "AnimateStop", true ));
|
||||
|
|
|
@ -99,7 +99,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QSpinBox" name="spinThumbnailWindows"/>
|
||||
<widget class="KIntSpinBox" name="spinThumbnailWindows"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
|
@ -139,7 +139,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QSpinBox" name="spinDuration">
|
||||
<widget class="KIntSpinBox" name="spinDuration">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -149,9 +149,6 @@
|
|||
<property name="specialValueText">
|
||||
<string comment="Duration of rotation">Default</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>5000</number>
|
||||
</property>
|
||||
|
@ -214,6 +211,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>checkAnimateSwitch</tabstop>
|
||||
<tabstop>checkAnimateStart</tabstop>
|
||||
|
|
|
@ -123,6 +123,7 @@ void CubeEffectConfig::load()
|
|||
bool zOrdering = conf.readEntry( "ZOrdering", false );
|
||||
|
||||
m_ui->rotationDurationSpin->setValue( duration );
|
||||
m_ui->rotationDurationSpin->setSuffix( ki18np( " milisecond", " miliseconds" ) );
|
||||
m_ui->cubeOpacitySlider->setValue( opacity );
|
||||
m_ui->cubeOpacitySpin->setValue( opacity );
|
||||
m_ui->desktopOpacityOnlyBox->setChecked( desktopOpacityOnly );
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" >
|
||||
<widget class="QSpinBox" name="rotationDurationSpin" >
|
||||
<widget class="KIntSpinBox" name="rotationDurationSpin" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -144,9 +144,6 @@
|
|||
<property name="specialValueText" >
|
||||
<string comment="Duration of rotation" >Default</string>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>5000</number>
|
||||
</property>
|
||||
|
@ -213,7 +210,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" >
|
||||
<widget class="QSpinBox" name="cubeOpacitySpin" >
|
||||
<widget class="KIntSpinBox" name="cubeOpacitySpin" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>75</width>
|
||||
|
@ -496,6 +493,11 @@ otherwise it will remain active</string>
|
|||
<extends>QPushButton</extends>
|
||||
<header>kcolorbutton.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KUrlRequester</class>
|
||||
<extends>QFrame</extends>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="rotationDurationSpin">
|
||||
<widget class="KIntSpinBox" name="rotationDurationSpin">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -88,6 +88,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>rotationDurationSpin</tabstop>
|
||||
<tabstop>dontSlidePanelsBox</tabstop>
|
||||
|
|
|
@ -106,7 +106,9 @@ void DesktopGridEffectConfig::load()
|
|||
KConfigGroup conf = EffectsHandler::effectConfig( "DesktopGrid" );
|
||||
|
||||
m_ui->zoomDurationSpin->setValue( conf.readEntry( "ZoomDuration", 0 ));
|
||||
m_ui->zoomDurationSpin->setSuffix( ki18np( " milisecond", " miliseconds"));
|
||||
m_ui->borderWidthSpin->setValue( conf.readEntry( "BorderWidth", 10 ));
|
||||
m_ui->borderWidthSpin->setSuffix( ki18np( " pixel", " pixels"));
|
||||
|
||||
Qt::Alignment alignment = Qt::Alignment( conf.readEntry( "DesktopNameAlignment", 0 ));
|
||||
m_ui->desktopNameAlignmentCombo->setCurrentIndex( m_alignmentItems.indexOf( alignment ));
|
||||
|
@ -116,6 +118,7 @@ void DesktopGridEffectConfig::load()
|
|||
layoutSelectionChanged();
|
||||
|
||||
m_ui->layoutRowsSpin->setValue( conf.readEntry( "CustomLayoutRows", 2 ));
|
||||
m_ui->layoutRowsSpin->setSuffix( ki18np( " row", " rows"));
|
||||
|
||||
emit changed(false);
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="zoomDurationSpin" >
|
||||
<widget class="KIntSpinBox" name="zoomDurationSpin" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -40,9 +40,6 @@
|
|||
<property name="specialValueText" >
|
||||
<string comment="Duration of zoom">Default</string>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>5000</number>
|
||||
</property>
|
||||
|
@ -65,16 +62,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QSpinBox" name="borderWidthSpin" >
|
||||
<widget class="KIntSpinBox" name="borderWidthSpin" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> pixels</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>100</number>
|
||||
</property>
|
||||
|
@ -158,16 +152,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1" >
|
||||
<widget class="QSpinBox" name="layoutRowsSpin" >
|
||||
<widget class="KIntSpinBox" name="layoutRowsSpin" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> rows</string>
|
||||
</property>
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -217,6 +208,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" >
|
||||
<widget class="QSpinBox" name="spinStrength" >
|
||||
<widget class="KIntSpinBox" name="spinStrength" >
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -91,6 +91,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>sliderStrength</tabstop>
|
||||
<tabstop>spinStrength</tabstop>
|
||||
|
|
|
@ -62,6 +62,7 @@ void FlipSwitchEffectConfig::load()
|
|||
int flipDuration = conf.readEntry( "FlipDuration", 0 );
|
||||
bool animateFlip = conf.readEntry( "AnimateFlip", true );
|
||||
m_ui->spinFlipDuration->setValue( flipDuration );
|
||||
m_ui->spinFlipDuration->setSuffix( ki18np ( " milisecond", " miliseconds" ) );
|
||||
if( animateFlip )
|
||||
{
|
||||
m_ui->checkAnimateFlip->setCheckState( Qt::Checked );
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QSpinBox" name="spinFlipDuration" >
|
||||
<widget class="KIntSpinBox" name="spinFlipDuration" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -47,9 +47,6 @@
|
|||
<property name="specialValueText" >
|
||||
<string comment="Duration of flip animation">Default</string>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>5000</number>
|
||||
</property>
|
||||
|
@ -63,6 +60,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>checkAnimateFlip</tabstop>
|
||||
<tabstop>spinFlipDuration</tabstop>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="radiusSpin" >
|
||||
<widget class="KIntSpinBox" name="radiusSpin" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -42,6 +42,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
|
@ -55,6 +55,7 @@ void MagicLampEffectConfig::load()
|
|||
|
||||
int duration = conf.readEntry( "AnimationDuration", 0 );
|
||||
m_ui->animationDurationSpin->setValue( duration );
|
||||
m_ui->animationDurationSpin->setSuffix(ki18np(" milisecond", " miliseconds"));
|
||||
emit changed(false);
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="animationDurationSpin" >
|
||||
<widget class="KIntSpinBox" name="animationDurationSpin" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -34,9 +34,6 @@
|
|||
<property name="specialValueText" >
|
||||
<string comment="Duration of rotation" >Default</string>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>5000</number>
|
||||
</property>
|
||||
|
@ -47,6 +44,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="spinWidth" >
|
||||
<widget class="KIntSpinBox" name="spinWidth" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -62,7 +62,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QSpinBox" name="spinHeight" >
|
||||
<widget class="KIntSpinBox" name="spinHeight" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -89,6 +89,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
|
@ -88,6 +88,7 @@ void MouseMarkEffectConfig::load()
|
|||
int width = conf.readEntry("LineWidth", 3);
|
||||
QColor color = conf.readEntry("Color", QColor(Qt::red));
|
||||
m_ui->spinWidth->setValue(width);
|
||||
m_ui->spinWidth->setSuffix(ki18np(" pixel", " pixels"));
|
||||
m_ui->comboColors->setColor(color);
|
||||
|
||||
emit changed(false);
|
||||
|
|
|
@ -30,16 +30,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="spinWidth" >
|
||||
<widget class="KIntSpinBox" name="spinWidth" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> px</string>
|
||||
</property>
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -281,6 +278,11 @@
|
|||
<extends>QComboBox</extends>
|
||||
<header>kcolorcombo.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
|
@ -107,6 +107,7 @@ void PresentWindowsEffectConfig::load()
|
|||
m_ui->layoutCombo->setCurrentIndex( layoutMode );
|
||||
|
||||
m_ui->rearrangeDurationSpin->setValue( conf.readEntry( "RearrangeDuration", 0 ));
|
||||
m_ui->rearrangeDurationSpin->setSuffix(ki18np(" milisecond", " miliseconds"));
|
||||
|
||||
bool displayTitle = conf.readEntry( "DrawWindowCaptions", true );
|
||||
m_ui->displayTitleBox->setChecked( displayTitle );
|
||||
|
|
|
@ -30,9 +30,9 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="rearrangeDurationSpin">
|
||||
<property name="sizePolicy">
|
||||
<item row="0" column="1" >
|
||||
<widget class="KIntSpinBox" name="rearrangeDurationSpin" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
|
@ -41,9 +41,6 @@
|
|||
<property name="specialValueText">
|
||||
<string comment="Duration of rearrangement">Default</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string> msec</string>
|
||||
</property>
|
||||
<property name="maximum">
|
||||
<number>5000</number>
|
||||
</property>
|
||||
|
@ -512,6 +509,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QSpinBox" name="xOffsetSpin">
|
||||
<widget class="KIntSpinBox" name="xOffsetSpin">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -66,7 +66,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="yOffsetSpin">
|
||||
<widget class="KIntSpinBox" name="yOffsetSpin">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -107,7 +107,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QSpinBox" name="opacitySpin">
|
||||
<widget class="KIntSpinBox" name="opacitySpin">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -148,7 +148,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QSpinBox" name="fuzzinessSpin">
|
||||
<widget class="KIntSpinBox" name="fuzzinessSpin">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -189,7 +189,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QSpinBox" name="sizeSpin">
|
||||
<widget class="KIntSpinBox" name="sizeSpin">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -247,6 +247,11 @@
|
|||
<extends>QPushButton</extends>
|
||||
<header>kcolorbutton.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
|
@ -90,9 +90,13 @@ void SnowEffectConfig::load()
|
|||
m_ui->snowBehindWindows->setChecked( conf.readEntry("BehindWindows", true));
|
||||
m_ui->numberFlakes->setValue( number );
|
||||
m_ui->minSizeFlake->setValue( minFlake );
|
||||
m_ui->minSizeFlake->setSuffix( ki18np(" pixel", " pixels") );
|
||||
m_ui->maxSizeFlake->setValue( maxFlake );
|
||||
m_ui->maxSizeFlake->setSuffix( ki18np(" pixel", " pixels") );
|
||||
m_ui->maxVSpeed->setValue( maxVSpeed );
|
||||
m_ui->maxVSpeed->setSuffix( ki18np(" pixel/frame", " pixels/frame") );
|
||||
m_ui->maxHSpeed->setValue( maxHSpeed );
|
||||
m_ui->maxHSpeed->setSuffix( ki18np(" pixel/frame", " pixels/frame") );
|
||||
|
||||
|
||||
emit changed(false);
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="numberFlakes" >
|
||||
<widget class="KIntSpinBox" name="numberFlakes" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -59,16 +59,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QSpinBox" name="minSizeFlake" >
|
||||
<widget class="KIntSpinBox" name="minSizeFlake" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> px</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>30</number>
|
||||
</property>
|
||||
|
@ -91,16 +88,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1" >
|
||||
<widget class="QSpinBox" name="maxSizeFlake" >
|
||||
<widget class="KIntSpinBox" name="maxSizeFlake" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> px</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>1000</number>
|
||||
</property>
|
||||
|
@ -123,16 +117,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1" >
|
||||
<widget class="QSpinBox" name="maxVSpeed" >
|
||||
<widget class="KIntSpinBox" name="maxVSpeed" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> px/frame</string>
|
||||
</property>
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -158,16 +149,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1" >
|
||||
<widget class="QSpinBox" name="maxHSpeed" >
|
||||
<widget class="KIntSpinBox" name="maxHSpeed" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> px/frame</string>
|
||||
</property>
|
||||
<property name="minimum" >
|
||||
<number>0</number>
|
||||
</property>
|
||||
|
@ -195,6 +183,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
|
@ -87,7 +87,9 @@ void ThumbnailAsideEffectConfig::load()
|
|||
int spacing = conf.readEntry("Spacing", 10);
|
||||
int opacity = conf.readEntry("Opacity", 50);
|
||||
m_ui->spinWidth->setValue(width);
|
||||
m_ui->spinWidth->setSuffix(ki18np(" pixel", " pixels"));
|
||||
m_ui->spinSpacing->setValue(spacing);
|
||||
m_ui->spinSpacing->setSuffix(ki18np(" pixel", " pixels"));
|
||||
m_ui->spinOpacity->setValue(opacity);
|
||||
|
||||
emit changed(false);
|
||||
|
|
|
@ -30,16 +30,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" >
|
||||
<widget class="QSpinBox" name="spinWidth" >
|
||||
<widget class="KIntSpinBox" name="spinWidth" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> px</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>500</number>
|
||||
</property>
|
||||
|
@ -62,16 +59,13 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1" >
|
||||
<widget class="QSpinBox" name="spinSpacing" >
|
||||
<widget class="KIntSpinBox" name="spinSpacing" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string> px</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>30</number>
|
||||
</property>
|
||||
|
@ -94,7 +88,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1" >
|
||||
<widget class="QSpinBox" name="spinOpacity" >
|
||||
<widget class="KIntSpinBox" name="spinOpacity" >
|
||||
<property name="sizePolicy" >
|
||||
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
|
||||
<horstretch>0</horstretch>
|
||||
|
@ -121,6 +115,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::GlobalShortcutsEditor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
|
@ -77,6 +77,7 @@ void TranslucencyEffectConfig::load()
|
|||
m_ui->popupmenus->setValue( (int)( conf.readEntry( "PopupMenus", 1.0) * 100 ) );
|
||||
m_ui->tornoffmenus->setValue( (int)( conf.readEntry( "TornOffMenus", 1.0) * 100 ) );
|
||||
m_ui->duration->setValue( conf.readEntry( "Duration", 0) );
|
||||
m_ui->duration->setSuffix(ki18np(" milisecond", " miliseconds"));
|
||||
|
||||
emit changed(false);
|
||||
}
|
||||
|
|
|
@ -267,7 +267,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1" colspan="2" >
|
||||
<widget class="QSpinBox" name="duration" >
|
||||
<widget class="KIntSpinBox" name="duration" >
|
||||
<property name="minimumSize" >
|
||||
<size>
|
||||
<width>60</width>
|
||||
|
@ -277,9 +277,6 @@
|
|||
<property name="specialValueText" >
|
||||
<string comment="Duration of fading">Default</string>
|
||||
</property>
|
||||
<property name="suffix" >
|
||||
<string>msec</string>
|
||||
</property>
|
||||
<property name="maximum" >
|
||||
<number>5000</number>
|
||||
</property>
|
||||
|
@ -525,6 +522,13 @@
|
|||
<tabstop>popupmenus</tabstop>
|
||||
<tabstop>tornoffmenus</tabstop>
|
||||
</tabstops>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="0" column="2" >
|
||||
<widget class="QSpinBox" name="stiffnessSpin" >
|
||||
<widget class="KIntSpinBox" name="stiffnessSpin" >
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -101,7 +101,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" >
|
||||
<widget class="QSpinBox" name="dragSpin" >
|
||||
<widget class="KIntSpinBox" name="dragSpin" >
|
||||
<property name="minimum" >
|
||||
<number>50</number>
|
||||
</property>
|
||||
|
@ -130,7 +130,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="2" >
|
||||
<widget class="QSpinBox" name="moveFactorSpin" >
|
||||
<widget class="KIntSpinBox" name="moveFactorSpin" >
|
||||
<property name="minimum" >
|
||||
<number>1</number>
|
||||
</property>
|
||||
|
@ -244,6 +244,13 @@
|
|||
<zorder>advancedBox</zorder>
|
||||
<zorder>basicGroup</zorder>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<tabstops>
|
||||
<tabstop>wobblinessSlider</tabstop>
|
||||
<tabstop>moveBox</tabstop>
|
||||
|
|
|
@ -34,7 +34,7 @@ class QGroupBox;
|
|||
class QLabel;
|
||||
class QSlider;
|
||||
class KButtonGroup;
|
||||
class QSpinBox;
|
||||
// class QSpinBox;
|
||||
|
||||
class KColorButton;
|
||||
class KIntNumInput;
|
||||
|
@ -65,8 +65,6 @@ class KIntNumInput;
|
|||
#define FOCUS_UNDER_MOUSE 2
|
||||
#define FOCUS_STRICTLY_UNDER_MOUSE 3
|
||||
|
||||
class QSpinBox;
|
||||
|
||||
class KFocusConfig : public KCModule
|
||||
{
|
||||
Q_OBJECT
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QSpinBox" name="activationDelaySpin">
|
||||
<widget class="KIntSpinBox" name="activationDelaySpin">
|
||||
<property name="suffix">
|
||||
<string> ms</string>
|
||||
</property>
|
||||
|
@ -104,7 +104,7 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QSpinBox" name="triggerCooldownSpin">
|
||||
<widget class="KIntSpinBox" name="triggerCooldownSpin">
|
||||
<property name="enabled">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
@ -189,6 +189,11 @@
|
|||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>KIntSpinBox</class>
|
||||
<extends>QSpinBox</extends>
|
||||
<header>knuminput.h</header>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>KWin::Monitor</class>
|
||||
<extends>QWidget</extends>
|
||||
|
|
Loading…
Reference in a new issue