[Kstars-devel] branches/kstars/summer/kstars/kstars/tools

Prakash Mohan prak902000 at gmail.com
Fri Jun 26 15:15:41 CEST 2009


SVN commit 987598 by prakash:

Setting the SliderEnabled and SingleStep values from the .cpp file rather than from the .ui file. These properties seem to have been added in 4.3 so causes an error in the compile if you're using the 4.2 version.

CCMAIL: kstars-devel at kde.org


 M  +2 -0      wutdialog.cpp  
 M  +0 -6      wutdialog.ui  


--- branches/kstars/summer/kstars/kstars/tools/wutdialog.cpp #987597:987598
@@ -80,6 +80,8 @@
     WUT->DateLabel->setText( i18n( "The night of %1", KGlobal::locale()->formatDate( Evening.date(), KLocale::LongDate ) ) );
     m_Mag = 10.0;
     WUT->MagnitudeEdit->setValue( m_Mag );
+    WUT->MagnitudeEdit->setSliderEnabled( true );
+    WUT->MagnitudeEdit->setSingleStep(0.100);
     initCategories();
 
     makeConnections();
--- branches/kstars/summer/kstars/kstars/tools/wutdialog.ui #987597:987598
@@ -160,12 +160,6 @@
          <property name="maximum">
           <double>30.000000000000000</double>
          </property>
-         <property name="singleStep">
-          <double>0.100000000000000</double>
-         </property>
-         <property name="sliderEnabled">
-          <bool>true</bool>
-         </property>
         </widget>
        </item>
        <item>


More information about the Kstars-devel mailing list