Commit 377470ab authored by Andrius Štikonas's avatar Andrius Štikonas

Use KIntSpinBox instead of QSpinBox for better integration with KDE. As a...

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/kdegraphics/okular/; revision=989660
parent 61475abe
......@@ -278,7 +278,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="kcfg_ViewColumns" >
<widget class="KIntSpinBox" name="kcfg_ViewColumns" >
<property name="minimum" >
<number>3</number>
</property>
......@@ -310,6 +310,13 @@
<includes>
<include location="global" >kiconloader.h</include>
</includes>
<customwidgets>
<customwidget>
<class>KIntSpinBox</class>
<extends>QSpinBox</extends>
<header>knuminput.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
......@@ -44,6 +44,8 @@ DlgPresentation::DlgPresentation( QWidget * parent )
m_dlg->screenCombo->setCurrentIndex( 0 );
Okular::Settings::setSlidesScreen( -2 );
}
m_dlg->kcfg_SlidesAdvanceTime->setSuffix(ki18np(" second", " seconds"));
connect( m_dlg->screenCombo, SIGNAL( activated( int ) ), this, SLOT( screenComboChanged( int ) ) );
}
......
......@@ -41,7 +41,7 @@
</widget>
</item>
<item>
<widget class="QSpinBox" name="kcfg_SlidesAdvanceTime" >
<widget class="KIntSpinBox" name="kcfg_SlidesAdvanceTime" >
<property name="enabled" >
<bool>false</bool>
</property>
......@@ -312,6 +312,11 @@
<extends>QPushButton</extends>
<header>kcolorbutton.h</header>
</customwidget>
<customwidget>
<class>KIntSpinBox</class>
<extends>KIntSpinBox</extends>
<header>knuminput.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections>
......
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