[Kstars-devel] KDE/kdeedu/kstars/kstars

Thorsten Roeder thorsten.roeder at weihenstephan.org
Thu Apr 20 18:43:20 CEST 2006


SVN commit 531930 by troeder:

deprecated--

CCMAIL: kstars-devel at kde.org


 M  +1 -1      imagesequence.cpp  
 M  +1 -1      indifitsconf.cpp  
 M  +1 -1      indiproperty.cpp  
 M  +5 -2      kstarssplash.cpp  
 M  +2 -2      telescopeprop.cpp  
 M  +12 -6     timedialog.cpp  
 M  +1 -1      tools/modcalcgeodcoord.cpp  
 M  +4 -2      widgets/clicklabel.cpp  
 M  +3 -1      widgets/thumbimage.cpp  
 M  +1 -1      widgets/timestepbox.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/imagesequence.cpp #531929:531930
@@ -590,7 +590,7 @@
 	// Fill filter combo
 	if (filterList.size() <= filterMax)
 	{
-		filterPosCombo->insertStringList(filterList);
+		filterPosCombo->addItems(filterList);
 		for (int i = filterList.size() ; i <= filterMax ; i++)
 			filterPosCombo->addItem(QString("%1").arg(i));
 	}
--- trunk/KDE/kdeedu/kstars/kstars/indifitsconf.cpp #531929:531930
@@ -61,7 +61,7 @@
    lastIndex = 0;
 
    filterNumbers << "0" << "1" << "2" << "3" << "4" << "5" << "6" << "7" << "8" << "9";
-   ui->filterCombo->insertStringList(filterNumbers);
+   ui->filterCombo->addItems(filterNumbers);
 
    ui->timeCheck->setChecked( Options::indiAutoTime() );
    ui->GeoCheck->setChecked( Options::indiAutoGeo() );
--- trunk/KDE/kdeedu/kstars/kstars/indiproperty.cpp #531929:531930
@@ -685,7 +685,7 @@
 	}
 
 	om_w = new KComboBox(pg->propertyContainer);
-	om_w->insertStringList(menuOptions);
+	om_w->addItems(menuOptions);
 	om_w->setCurrentIndex(onItem);
 	
 	HorSpacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
--- trunk/KDE/kdeedu/kstars/kstars/kstarssplash.cpp #531929:531930
@@ -55,7 +55,9 @@
 	topLayout->addWidget( Banner );
 	
 //initialize the "Welcome to KStars message label
-	label = new QLabel( page, "label1" );
+	label = new QLabel( page );
+	label->setObjectName( "label1" );
+
 	QPalette pal( label->palette() );
 	pal.setColor( QPalette::Normal, QColorGroup::Background, QColor( "Black" ) );
 	pal.setColor( QPalette::Inactive, QColorGroup::Background, QColor( "Black" ) );
@@ -67,7 +69,8 @@
 	topLayout->addWidget( label );
 
 //initialize the progress message label
-	textCurrentStatus = new QLabel( page, "label2" );
+	textCurrentStatus = new QLabel( page );
+	textCurrentStatus->setObjectName( "label2" );
 	textCurrentStatus->setPalette( pal );
 	textCurrentStatus->setAlignment( Qt::AlignHCenter );
 	topLayout->addWidget( textCurrentStatus );
--- trunk/KDE/kdeedu/kstars/kstars/telescopeprop.cpp #531929:531930
@@ -51,7 +51,7 @@
   connect(ui->closeB, SIGNAL(clicked()), this, SLOT(close()));
 
   // Fill the combo box with drivers
-  ui->driverCombo->insertStringList(indi_driver->driversList);
+  ui->driverCombo->addItems(indi_driver->driversList);
 
   // Fill the list box with telescopes
   //for (unsigned int i=0; i < indi_driver->devices.size(); i++)
@@ -74,7 +74,7 @@
 void telescopeProp::newScope()
 {
 
-  ui->driverCombo->clearEdit();
+  ui->driverCombo->clearEditText();
   ui->labelEdit->clear();
   ui->focalEdit->clear();
   ui->versionEdit->clear();
--- trunk/KDE/kdeedu/kstars/kstars/timedialog.cpp #531929:531930
@@ -46,7 +46,8 @@
 	dPicker = new ExtDatePicker( page );
 	dPicker->setDate( now.date() );
 
-	HourBox = new QSpinBox( page, "HourBox" );
+	HourBox = new QSpinBox( page );
+	HourBox->setObjectName( "HourBox" );
 	QFont Box_font(  HourBox->font() );
 	Box_font.setBold( TRUE );
 	HourBox->setFont( Box_font );
@@ -55,11 +56,13 @@
 	HourBox->setButtonSymbols( QSpinBox::PlusMinus );
 	HourBox->setValue( now.time().hour() );
 
-	TextLabel1 = new QLabel( page, "TextLabel1" );
+	TextLabel1 = new QLabel( page );
+	TextLabel1->setObjectName( "TextLabel1" );
 	TextLabel1->setText( " :" );
 	TextLabel1->setFont( Box_font );
 	
-	MinuteBox = new QSpinBox( page, "MinuteBox" );
+	MinuteBox = new QSpinBox( page );
+	MinuteBox->setObjectName( "MinuteBox" );
 	QFont MinuteBox_font(  MinuteBox->font() );
 	MinuteBox->setFont( Box_font );
 	MinuteBox->setWrapping( TRUE );
@@ -67,17 +70,20 @@
 	MinuteBox->setButtonSymbols( QSpinBox::PlusMinus );
 	MinuteBox->setValue( now.time().minute() );
 	
-	TextLabel1_2 = new QLabel( page, "TextLabel1_2" );
+	TextLabel1_2 = new QLabel( page );
+	TextLabel1_2->setObjectName( "TextLabel1_2" );
 	TextLabel1_2->setFont( Box_font );
 	
-	SecondBox = new QSpinBox( page, "SecondBox" );
+	SecondBox = new QSpinBox( page );
+	SecondBox->setObjectName( "SecondBox" );
 	SecondBox->setFont( Box_font );
 	SecondBox->setMaximum( 59 );
 	SecondBox->setWrapping( TRUE );
 	SecondBox->setButtonSymbols( QSpinBox::PlusMinus );
 	SecondBox->setValue( now.time().second() );
 	
-	NowButton = new QPushButton( page, "NowButton" );
+	NowButton = new QPushButton( page );
+	NowButton->setObjectName( "NowButton" );
 	NowButton->setText( i18n( "Now"  ) );
 	NowButton->setFont( Box_font );
 	
--- trunk/KDE/kdeedu/kstars/kstars/tools/modcalcgeodcoord.cpp #531929:531930
@@ -37,7 +37,7 @@
 	setupUi(this);
 
 	spheRadio->setChecked(TRUE);
-	ellipsoidBox->insertStringList(ellipsoidList,5);
+	ellipsoidBox->insertItems(5,ellipsoidList);
 	geoPlace = new GeoLocation();
 	showLongLat();
 	setEllipsoid(0);
--- trunk/KDE/kdeedu/kstars/kstars/widgets/clicklabel.cpp #531929:531930
@@ -18,7 +18,9 @@
 
 #include "clicklabel.h"
 
-ClickLabel::ClickLabel( QWidget *parent, const char *name ) : QLabel( parent, name ) 
-{}
+ClickLabel::ClickLabel( QWidget *parent, const char *name ) : QLabel( parent ) 
+{
+    setObjectName( name );
+}
 
 #include "clicklabel.moc"
--- trunk/KDE/kdeedu/kstars/kstars/widgets/thumbimage.cpp #531929:531930
@@ -29,10 +29,12 @@
 	return result;
 }
 
-ThumbImage::ThumbImage( QWidget *parent, const char *name ) : QLabel( parent, name )
+ThumbImage::ThumbImage( QWidget *parent, const char *name ) : QLabel( parent )
 {
 //FIXME: Deprecated?  Maybe we don't need this, since double-buffering is now built in
 //	setBackgroundMode( Qt::WA_NoBackground );
+	
+	setObjectName( name );	
 	bMouseButtonDown = false;
 	bTopLeftGrab = false;
 	bTopRightGrab = false;
--- trunk/KDE/kdeedu/kstars/kstars/widgets/timestepbox.cpp #531929:531930
@@ -36,7 +36,7 @@
 	QToolTip::add( timeBox, i18n( "Adjust time step" ) );
 	QToolTip::add( unitBox, i18n( "Adjust time step units" ) );
 
-	QWhatsThis::add( this, i18n( "Set the timescale for the simulation clock.  A setting of \"1 sec\" means the clock advances in real-time, keeping up perfectly with your CPU clock.  Higher values make the simulation clock run faster, lower values make it run slower.  Negative values make it run backwards."
+	this->setWhatsThis( i18n( "Set the timescale for the simulation clock.  A setting of \"1 sec\" means the clock advances in real-time, keeping up perfectly with your CPU clock.  Higher values make the simulation clock run faster, lower values make it run slower.  Negative values make it run backwards."
 "\n\n"
 "There are two pairs of up/down buttons.  The left pair will cycle through all available timesteps in sequence.  Since there are a large number of timesteps, the right pair is provided to skip to the next higher/lower unit of time.  For example, if the timescale is currently \"1 min\", the right up button will make it \"1 hour\", and the right down button will make it \"1 sec\"" ) );
 	hlay = new QHBoxLayout( this, 0, 0 );


More information about the Kstars-devel mailing list