[Kstars-devel] KDE/kdeedu/libkdeedu/extdate

Jason Harris kstars at 30doradus.org
Thu Dec 21 05:28:20 CET 2006


SVN commit 615323 by harris:

Fix "no such signal: QTimeEdit::valueChanged(int)" error.

Also, modified the API of some signals:
ExtDateEdit::valueChanged(int) 
--> ExtDateEdit::dateChanged(const ExtDate&)

ExtDateTimeEdit::valueChanged(int) 
--> ExtDateTimeEdit::dateTimeChanged(const ExtDateTime&)

CCMAIL: kstars-devel at kde.org


 M  +8 -8      extdatetimeedit.cpp  
 M  +4 -4      extdatetimeedit.h  


--- trunk/KDE/kdeedu/libkdeedu/extdate/extdatetimeedit.cpp #615322:615323
@@ -61,8 +61,8 @@
 	m_DateFormat.replace( "e", "d" );
 
 	//Make sure highlight is persistent when value is changed
-	connect( this, SIGNAL( valueChanged( int ) ), this, SLOT( slotRefreshHighlight() ) );
-	connect( this, SIGNAL( valueChanged( int ) ), this, SLOT( slotEmitValueChanged() ) );
+	connect( this, SIGNAL( dateChanged( const ExtDate & ) ), this, SLOT( slotRefreshHighlight() ) );
+	connect( this, SIGNAL( dateChanged( const ExtDate & ) ), this, SLOT( slotEmitDateChanged() ) );
 
 	edLineEdit *edle = new edLineEdit( this );
 	setLineEdit(edle);
@@ -71,8 +71,8 @@
 	highlightActiveField();
 }
 
-void ExtDateEdit::slotEmitValueChanged() {
-	emit valueChanged( date() );
+void ExtDateEdit::slotEmitDateChanged() {
+	emit dateChanged( date() );
 }
 
 QString ExtDateEdit::simpleDateFormat() {
@@ -240,12 +240,12 @@
 	hlay->addWidget( m_DateEdit );
 	hlay->addWidget( m_TimeEdit );
 
-	connect( m_DateEdit, SIGNAL( valueChanged( int ) ), this, SLOT( slotEmitValueChanged() ) );
-	connect( m_TimeEdit, SIGNAL( valueChanged( int ) ), this, SLOT( slotEmitValueChanged() ) );
+	connect( m_DateEdit, SIGNAL( dateChanged( const ExtDate & ) ), this, SLOT( slotEmitDateTimeChanged() ) );
+	connect( m_TimeEdit, SIGNAL( timeChanged( const QTime & ) ), this, SLOT( slotEmitDateTimeChanged() ) );
 }
 
-void ExtDateTimeEdit::slotEmitValueChanged() {
-	emit valueChanged( dateTime() );
+void ExtDateTimeEdit::slotEmitDateTimeChanged() {
+	emit dateTimeChanged( dateTime() );
 }
 
 edLineEdit::edLineEdit( QWidget *parent ) : QLineEdit( parent ) {
--- trunk/KDE/kdeedu/libkdeedu/extdate/extdatetimeedit.h #615322:615323
@@ -156,7 +156,7 @@
 		void invokeKey( Qt::Key k );
 
 	signals:
-		void valueChanged( ExtDate d );
+		void dateChanged( ExtDate d );
 
 	protected:
 /**
@@ -209,7 +209,7 @@
 	*/
 		void slotRefreshHighlight();
 
-		void slotEmitValueChanged();
+		void slotEmitDateChanged();
 
 	public:
 /**
@@ -326,10 +326,10 @@
 dt.time() ); }
 
 	signals:
-		void valueChanged( ExtDateTime dt );
+		void dateTimeChanged( ExtDateTime dt );
 
 	private slots:
-		void slotEmitValueChanged();
+		void slotEmitDateTimeChanged();
 
 	private:
 	/**


More information about the Kstars-devel mailing list