[Kstars-devel] kdeedu/kstars/kstars

Jason Harris kstars at 30doradus.org
Thu Oct 16 23:08:46 CEST 2003


CVS commit by harris: 

The timestep widget was a bit too narrow to see the leading minus sign in 
some timesteps.  I tried various sensible changes to fix this (such as 
editor()->setAlignment(AlignLeft) ), but nothing really worked.  For now, 
an ugly hack:  The width is manually tweaked and set fixed.  The tweak will 
still respect different font sizes.

CCMAIL: kstars-devel at kde.org


  M +3 -1      timestepbox.cpp   1.8


--- kdeedu/kstars/kstars/timestepbox.cpp  #1.7:1.8
@@ -41,5 +41,7 @@ TimeStepBox::TimeStepBox( QWidget *paren
         hlay->activate();
 
-        setMaximumWidth( unitBox->width() + timeBox->width() );
+        setMinimumWidth( unitBox->width() + 2*timeBox->width() );
+        setMaximumWidth( unitBox->width() + 2*timeBox->width() );
+        timeBox->setValue( 4 ); //real-time
 
         connect( unitBox, SIGNAL( valueChanged( int ) ), this, SLOT( changeUnits() ) );




More information about the Kstars-devel mailing list