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

Jason Harris kstars at 30doradus.org
Wed Dec 21 06:47:40 CET 2005


SVN commit 490212 by harris:

ExtDateTimeEdit can't be derived from QWidget, or else it can't be used 
in Qt designer (at least not through the "promote" mechanism).  Made it 
inherit from QFrame instead.

CCMAIL: kstars-devel at kde.org


 M  +1 -1      extdatetimeedit.cpp  
 M  +2 -2      extdatetimeedit.h  


--- trunk/KDE/kdeedu/libkdeedu/extdate/extdatetimeedit.cpp #490211:490212
@@ -202,7 +202,7 @@
 }
 
 ExtDateTimeEdit::ExtDateTimeEdit( const ExtDateTime &dt, QWidget *parent )
-: QWidget( parent ) {
+: QFrame( parent ) {
 	QHBoxLayout *hlay = new QHBoxLayout( this );
 	m_DateEdit = new ExtDateEdit( dt.date(), this );
 	m_TimeEdit = new QTimeEdit( dt.time(), this );
--- trunk/KDE/kdeedu/libkdeedu/extdate/extdatetimeedit.h #490211:490212
@@ -48,7 +48,7 @@
 	*/
 
 #include <QSpinBox>
-#include <QWidget>
+#include <QFrame>
 #include <QLineEdit>
 #include <QTime>
 #include <QTimeEdit>
@@ -232,7 +232,7 @@
 	*@author Jason Harris
 	*@version 1.0
 	*/
-class ExtDateTimeEdit : public QWidget {
+class ExtDateTimeEdit : public QFrame {
 	Q_OBJECT
 
 	public:


More information about the Kstars-devel mailing list