summaryrefslogtreecommitdiffstats
path: root/libkdeedu/extdate/extdatetbl.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /libkdeedu/extdate/extdatetbl.h
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libkdeedu/extdate/extdatetbl.h')
-rw-r--r--libkdeedu/extdate/extdatetbl.h39
1 files changed, 22 insertions, 17 deletions
diff --git a/libkdeedu/extdate/extdatetbl.h b/libkdeedu/extdate/extdatetbl.h
index 8aa3281a..ef3bd9d8 100644
--- a/libkdeedu/extdate/extdatetbl.h
+++ b/libkdeedu/extdate/extdatetbl.h
@@ -41,6 +41,7 @@ class KPopupMenu;
class ExtDateInternalWeekSelector : public KLineEdit
{
Q_OBJECT
+ TQ_OBJECT
protected:
TQIntValidator *val;
int result;
@@ -50,7 +51,7 @@ public slots:
signals:
void closeMe(int);
public:
- ExtDateInternalWeekSelector( TQWidget* parent=0, const char* name=0);
+ ExtDateInternalWeekSelector( TQWidget* tqparent=0, const char* name=0);
int getWeek();
void setWeek(int week);
@@ -65,9 +66,10 @@ private:
* @version $Id$
* @author Tim Gilman, Mirko Boehm
*/
-class ExtDateInternalMonthPicker : public QGridView
+class ExtDateInternalMonthPicker : public TQGridView
{
Q_OBJECT
+ TQ_OBJECT
protected:
/**
* Store the month that has been clicked [1..12].
@@ -91,7 +93,7 @@ public:
/**
* The constructor.
*/
- ExtDateInternalMonthPicker(const ExtDate& date, TQWidget* parent, const char* name=0);
+ ExtDateInternalMonthPicker(const ExtDate& date, TQWidget* tqparent, const char* name=0);
/**
* The destructor.
*/
@@ -99,7 +101,7 @@ public:
/**
* The size hint.
*/
- TQSize sizeHint() const;
+ TQSize tqsizeHint() const;
/**
* Return the result. 0 means no selection (reject()), 1..12 are the
* months.
@@ -138,9 +140,10 @@ private:
* @version $Id$
* @author Tim Gilman, Mirko Boehm
*/
-class ExtDateInternalYearSelector : public QLineEdit
+class ExtDateInternalYearSelector : public TQLineEdit
{
Q_OBJECT
+ TQ_OBJECT
protected:
TQIntValidator *val;
int result;
@@ -149,7 +152,7 @@ public slots:
signals:
void closeMe(int);
public:
- ExtDateInternalYearSelector( TQWidget* parent=0, const char* name=0);
+ ExtDateInternalYearSelector( TQWidget* tqparent=0, const char* name=0);
~ExtDateInternalYearSelector();
int getYear();
void setYear(int year);
@@ -174,9 +177,10 @@ private:
* @author Tim Gilman, Mirko Boehm
* @version $Id$
*/
-class KPopupFrame : public QFrame
+class KPopupFrame : public TQFrame
{
Q_OBJECT
+ TQ_OBJECT
protected:
/**
* The result. It is returned from exec() when the popup window closes.
@@ -200,7 +204,7 @@ public:
/**
* The contructor. Creates a dialog without buttons.
*/
- KPopupFrame(TQWidget* parent=0, const char* name=0);
+ KPopupFrame(TQWidget* tqparent=0, const char* name=0);
/**
* Set the main widget. You cannot set the main widget from the constructor,
* since it must be a child of the frame itselfes.
@@ -240,10 +244,10 @@ private:
/**
* Validates user-entered dates.
*/
-class ExtDateValidator : public QValidator
+class ExtDateValidator : public TQValidator
{
public:
- ExtDateValidator(TQWidget* parent=0, const char* name=0);
+ ExtDateValidator(TQWidget* tqparent=0, const char* name=0);
virtual State validate(TQString&, int&) const;
virtual void fixup ( TQString & input ) const;
State date(const TQString&, ExtDate&) const;
@@ -262,18 +266,19 @@ public:
* @version $Id$
* @author Tim Gilman, Mirko Boehm
*/
-class ExtDateTable : public QGridView
+class ExtDateTable : public TQGridView
{
Q_OBJECT
- //Q_PROPERTY( ExtDate date READ getDate WRITE setDate )
- Q_PROPERTY( bool popupMenu READ popupMenuEnabled WRITE setPopupMenuEnabled )
+ TQ_OBJECT
+ //TQ_PROPERTY( ExtDate date READ getDate WRITE setDate )
+ TQ_PROPERTY( bool popupMenu READ popupMenuEnabled WRITE setPopupMenuEnabled )
public:
/**
* The constructor.
*/
- ExtDateTable(TQWidget *parent=0,
- ExtDate date=ExtDate::currentDate(),
+ ExtDateTable(TQWidget *tqparent=0,
+ ExtDate date=ExtDate::tqcurrentDate(),
const char* name=0, WFlags f=0);
/**
@@ -286,9 +291,9 @@ public:
* To save some time, the size of the largest used cell content is
* calculated in each paintCell() call, since all calculations have
* to be done there anyway. The size is stored in maxCell. The
- * sizeHint() simply returns a multiple of maxCell.
+ * tqsizeHint() simply returns a multiple of maxCell.
*/
- virtual TQSize sizeHint() const;
+ virtual TQSize tqsizeHint() const;
/**
* Set the font size of the date table.
*/