summaryrefslogtreecommitdiffstats
path: root/src/gui/datewidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/gui/datewidget.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/datewidget.h')
-rw-r--r--src/gui/datewidget.h32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/gui/datewidget.h b/src/gui/datewidget.h
index 93d7bcb..9575af9 100644
--- a/src/gui/datewidget.h
+++ b/src/gui/datewidget.h
@@ -14,40 +14,42 @@
#ifndef TELLICODATEWIDGET_H
#define TELLICODATEWIDGET_H
-#include <qspinbox.h>
-#include <qdatetime.h>
+#include <tqspinbox.h>
+#include <tqdatetime.h>
class KComboBox;
class KPushButton;
class KDatePicker;
-class QVBox;
-class QString;
+class TQVBox;
+class TQString;
namespace Tellico {
namespace GUI {
-class SpinBox : public QSpinBox {
+class SpinBox : public TQSpinBox {
Q_OBJECT
+ TQ_OBJECT
public:
- SpinBox(int min, int max, QWidget *parent);
+ SpinBox(int min, int max, TQWidget *tqparent);
};
/**
* @author Robby Stephenson
*/
-class DateWidget : public QWidget {
+class DateWidget : public TQWidget {
Q_OBJECT
+ TQ_OBJECT
public:
- DateWidget(QWidget* parent, const char* name = 0);
+ DateWidget(TQWidget* tqparent, const char* name = 0);
~DateWidget() {}
- QDate date() const;
- QString text() const;
- void setDate(const QDate& date);
- void setDate(const QString& date);
+ TQDate date() const;
+ TQString text() const;
+ void setDate(const TQDate& date);
+ void setDate(const TQString& date);
void clear();
signals:
@@ -56,8 +58,8 @@ signals:
private slots:
void slotDateChanged();
void slotShowPicker();
- void slotDateSelected(QDate newDate);
- void slotDateEntered(QDate newDate);
+ void slotDateSelected(TQDate newDate);
+ void slotDateEntered(TQDate newDate);
private:
SpinBox* m_daySpin;
@@ -65,7 +67,7 @@ private:
SpinBox* m_yearSpin;
KPushButton* m_dateButton;
- QVBox* m_frame;
+ TQVBox* m_frame;
KDatePicker* m_picker;
};