diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeui/kdatetimewidget.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/kdatetimewidget.cpp')
-rw-r--r-- | kdeui/kdatetimewidget.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kdeui/kdatetimewidget.cpp b/kdeui/kdatetimewidget.cpp index c696a4fcb..76d92edd2 100644 --- a/kdeui/kdatetimewidget.cpp +++ b/kdeui/kdatetimewidget.cpp @@ -1,4 +1,4 @@ -#include <qlayout.h> +#include <tqlayout.h> #include "kdatewidget.h" #include "kdebug.h" @@ -14,15 +14,15 @@ public: KTimeWidget * timeWidget; }; -KDateTimeWidget::KDateTimeWidget(QWidget * parent, const char * name) - : QWidget(parent, name) +KDateTimeWidget::KDateTimeWidget(TQWidget * parent, const char * name) + : TQWidget(parent, name) { init(); } -KDateTimeWidget::KDateTimeWidget(const QDateTime & datetime, - QWidget * parent, const char * name) - : QWidget(parent, name) +KDateTimeWidget::KDateTimeWidget(const TQDateTime & datetime, + TQWidget * parent, const char * name) + : TQWidget(parent, name) { init(); @@ -38,32 +38,32 @@ void KDateTimeWidget::init() { d = new KDateTimeWidgetPrivate; - QHBoxLayout *layout = new QHBoxLayout(this, 0, KDialog::spacingHint()); + TQHBoxLayout *layout = new TQHBoxLayout(this, 0, KDialog::spacingHint()); layout->setAutoAdd(true); d->dateWidget = new KDateWidget(this); d->timeWidget = new KTimeWidget(this); - connect(d->dateWidget, SIGNAL(changed(QDate)), - SLOT(slotValueChanged())); - connect(d->timeWidget, SIGNAL(valueChanged(const QTime &)), - SLOT(slotValueChanged())); + connect(d->dateWidget, TQT_SIGNAL(changed(TQDate)), + TQT_SLOT(slotValueChanged())); + connect(d->timeWidget, TQT_SIGNAL(valueChanged(const TQTime &)), + TQT_SLOT(slotValueChanged())); } -void KDateTimeWidget::setDateTime(const QDateTime & datetime) +void KDateTimeWidget::setDateTime(const TQDateTime & datetime) { d->dateWidget->setDate(datetime.date()); d->timeWidget->setTime(datetime.time()); } -QDateTime KDateTimeWidget::dateTime() const +TQDateTime KDateTimeWidget::dateTime() const { - return QDateTime(d->dateWidget->date(), d->timeWidget->time()); + return TQDateTime(d->dateWidget->date(), d->timeWidget->time()); } void KDateTimeWidget::slotValueChanged() { - QDateTime datetime(d->dateWidget->date(), + TQDateTime datetime(d->dateWidget->date(), d->timeWidget->time()); kdDebug() << "slotValueChanged(): " << datetime << "\n"; |