[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/akregator/configuration
From:       Andrius Štikonas <stikonas () gmail ! com>
Date:       2009-08-12 16:41:02
Message-ID: 1250095262.408566.26846.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1010488 by stikonas:

Add plural compatible suffix support to spinbox.

 M  +2 -0      akregator_config_general.cpp  
 M  +8 -7      settings_general.ui  


--- trunk/KDE/kdepim/akregator/configuration/akregator_config_general.cpp #1010487:1010488
@@ -47,6 +47,8 @@
 
     QVBoxLayout* layout = new QVBoxLayout( this );
     layout->addWidget( m_widget );
+
+    ui.kcfg_AutoFetchInterval->setSuffix(ki18np(" minute", "minutes"));
     
     connect( ui.kcfg_UseIntervalFetch, SIGNAL( toggled( bool ) ),
              ui.kcfg_AutoFetchInterval, SLOT( setEnabled( bool ) ) );
--- trunk/KDE/kdepim/akregator/configuration/settings_general.ui #1010487:1010488
@@ -66,16 +66,10 @@
          </widget>
         </item>
         <item>
-         <widget class="QSpinBox" name="kcfg_AutoFetchInterval">
+         <widget class="KIntSpinBox" name="kcfg_AutoFetchInterval">
           <property name="enabled">
            <bool>false</bool>
           </property>
-          <property name="specialValueText">
-           <string>1 minute</string>
-          </property>
-          <property name="suffix">
-           <string> minutes</string>
-          </property>
           <property name="minimum">
            <number>1</number>
           </property>
@@ -156,6 +150,13 @@
    </item>
   </layout>
  </widget>
+ <customwidgets>
+  <customwidget>
+   <class>KIntSpinBox</class>
+   <extends>QSpinBox</extends>
+   <header>knuminput.h</header>
+  </customwidget>
+ </customwidgets>
  <resources/>
  <connections/>
 </ui>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic