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