mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 10:22:52 +00:00
generic: adjust to KIntNumInput and KDoubleNumInput changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
d6f1e450e8
commit
0a53544d9f
10 changed files with 37 additions and 42 deletions
|
@ -351,7 +351,7 @@
|
||||||
<item row="14" column="1">
|
<item row="14" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
<layout class="QHBoxLayout" name="horizontalLayout_6">
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="kcfg_ThumbnailBarRowCount">
|
<widget class="KIntNumInput" name="kcfg_ThumbnailBarRowCount">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -421,8 +421,8 @@
|
||||||
<header>kcolorbutton.h</header>
|
<header>kcolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="leftSpinBox">
|
<widget class="KIntNumInput" name="leftSpinBox">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>1</horstretch>
|
<horstretch>1</horstretch>
|
||||||
|
@ -102,7 +102,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="topSpinBox">
|
<widget class="KIntNumInput" name="topSpinBox">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
<horstretch>1</horstretch>
|
<horstretch>1</horstretch>
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="widthSpinBox">
|
<widget class="KIntNumInput" name="widthSpinBox">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
<horstretch>1</horstretch>
|
<horstretch>1</horstretch>
|
||||||
|
@ -135,7 +135,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="heightSpinBox">
|
<widget class="KIntNumInput" name="heightSpinBox">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
||||||
<horstretch>1</horstretch>
|
<horstretch>1</horstretch>
|
||||||
|
@ -181,8 +181,8 @@
|
||||||
<header>kcombobox.h</header>
|
<header>kcombobox.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="diameterSpinBox">
|
<widget class="KIntNumInput" name="diameterSpinBox">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -84,8 +84,8 @@
|
||||||
<header>kdialogbuttonbox.h</header>
|
<header>kdialogbuttonbox.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -95,13 +95,7 @@
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="mWidthSpinBox">
|
<widget class="KIntNumInput" name="mWidthSpinBox">
|
||||||
<property name="readOnly">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="buttonSymbols">
|
|
||||||
<enum>QAbstractSpinBox::UpDownArrows</enum>
|
|
||||||
</property>
|
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -118,7 +112,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="mHeightSpinBox">
|
<widget class="KIntNumInput" name="mHeightSpinBox">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -143,8 +137,8 @@
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="KIntSpinBox" name="m_updateInterval">
|
<widget class="KIntNumInput" name="m_updateInterval">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string> ms</string>
|
<string> ms</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -109,7 +109,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3">
|
<item row="1" column="3">
|
||||||
<widget class="KIntSpinBox" name="m_maxCells">
|
<widget class="KIntNumInput" name="m_maxCells">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>200</number>
|
<number>200</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -204,8 +204,8 @@
|
||||||
<header>itemsview.h</header>
|
<header>itemsview.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -161,7 +161,7 @@ You can also copy the image to the clipboard by pressing Ctrl+C.</string>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KIntSpinBox" name="spinDelay">
|
<widget class="KIntNumInput" name="spinDelay">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -241,8 +241,8 @@ If <i>no delay</i> is set, the program will wait for a mouse click b
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -273,7 +273,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="KIntSpinBox" name="kcfg_ViewColumns">
|
<widget class="KIntNumInput" name="kcfg_ViewColumns">
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<number>3</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
|
@ -299,7 +299,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="KIntSpinBox" name="kcfg_ScrollOverlap">
|
<widget class="KIntNumInput" name="kcfg_ScrollOverlap">
|
||||||
<property name="suffix">
|
<property name="suffix">
|
||||||
<string>%</string>
|
<string>%</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -390,8 +390,8 @@ For files which were opened before the previous zoom is applied.</string>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>QSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="KIntSpinBox" name="kcfg_SlidesAdvanceTime" >
|
<widget class="KIntNumInput" name="kcfg_SlidesAdvanceTime" >
|
||||||
<property name="enabled" >
|
<property name="enabled" >
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -313,8 +313,8 @@
|
||||||
<header>kcolorbutton.h</header>
|
<header>kcolorbutton.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
<class>KIntSpinBox</class>
|
<class>KIntNumInput</class>
|
||||||
<extends>KIntSpinBox</extends>
|
<extends>QWidget</extends>
|
||||||
<header>knuminput.h</header>
|
<header>knuminput.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
|
|
@ -29,7 +29,7 @@ class TextDocumentSettingsPrivate;
|
||||||
*
|
*
|
||||||
* In .h header:
|
* In .h header:
|
||||||
* {code}
|
* {code}
|
||||||
* class KIntSpinBox;
|
* class KIntNumInput;
|
||||||
* ...
|
* ...
|
||||||
*
|
*
|
||||||
* class YourGenerator
|
* class YourGenerator
|
||||||
|
@ -41,14 +41,14 @@ class TextDocumentSettingsPrivate;
|
||||||
* ...
|
* ...
|
||||||
* private:
|
* private:
|
||||||
* QString customArgument;
|
* QString customArgument;
|
||||||
* KIntSpinBox *customArgumentWidget;
|
* KIntNumInput *customArgumentWidget;
|
||||||
* ...
|
* ...
|
||||||
* }
|
* }
|
||||||
* {/code}
|
* {/code}
|
||||||
*
|
*
|
||||||
* In .cpp module:
|
* In .cpp module:
|
||||||
* {code}
|
* {code}
|
||||||
* #include <KIntSpinBox>
|
* #include <KIntNumInput>
|
||||||
* ...
|
* ...
|
||||||
* bool YourGenerator::reparseConfig()
|
* bool YourGenerator::reparseConfig()
|
||||||
* {
|
* {
|
||||||
|
@ -58,7 +58,7 @@ class TextDocumentSettingsPrivate;
|
||||||
* {
|
* {
|
||||||
* Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();
|
* Okular::TextDocumentSettingsWidget *widget = new Okular::TextDocumentSettingsWidget();
|
||||||
*
|
*
|
||||||
* KIntSpinBox *customArgumentWidget = new KIntSpinBox( dlg );
|
* KIntNumInput *customArgumentWidget = new KIntNumInput( dlg );
|
||||||
* customArgumentWidget->setObjectName( QString::fromUtf8( "kcfg_CustomArgument" ) );
|
* customArgumentWidget->setObjectName( QString::fromUtf8( "kcfg_CustomArgument" ) );
|
||||||
* widget->addRow( "Custom argument", customArgumentWidget );
|
* widget->addRow( "Custom argument", customArgumentWidget );
|
||||||
*
|
*
|
||||||
|
|
|
@ -1871,10 +1871,11 @@ class GotoPageDialog : public KDialog
|
||||||
QVBoxLayout *topLayout = new QVBoxLayout(w);
|
QVBoxLayout *topLayout = new QVBoxLayout(w);
|
||||||
topLayout->setMargin(0);
|
topLayout->setMargin(0);
|
||||||
topLayout->setSpacing(spacingHint());
|
topLayout->setSpacing(spacingHint());
|
||||||
e1 = new KIntNumInput(current, w);
|
e1 = new KIntNumInput(w);
|
||||||
e1->setRange(1, max);
|
e1->setRange(1, max);
|
||||||
e1->setEditFocus(true);
|
e1->setValue(current);
|
||||||
e1->setSliderEnabled(true);
|
e1->setSliderEnabled(true);
|
||||||
|
e1->setFocus();
|
||||||
|
|
||||||
QLabel *label = new QLabel(i18n("&Page:"), w);
|
QLabel *label = new QLabel(i18n("&Page:"), w);
|
||||||
label->setBuddy(e1);
|
label->setBuddy(e1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue