summaryrefslogtreecommitdiffstats
path: root/kcontrol/crypto/kdatetimedlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kcontrol/crypto/kdatetimedlg.cpp
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/crypto/kdatetimedlg.cpp')
-rw-r--r--kcontrol/crypto/kdatetimedlg.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kcontrol/crypto/kdatetimedlg.cpp b/kcontrol/crypto/kdatetimedlg.cpp
index 26001afdd..f7eae9883 100644
--- a/kcontrol/crypto/kdatetimedlg.cpp
+++ b/kcontrol/crypto/kdatetimedlg.cpp
@@ -23,8 +23,8 @@
#endif
#include "kdatetimedlg.h"
-#include <qlayout.h>
-#include <qlabel.h>
+#include <tqlayout.h>
+#include <tqlabel.h>
#include <klocale.h>
#include <kdebug.h>
#include <kdatepicker.h>
@@ -32,37 +32,37 @@
#include <knuminput.h>
#include <kstdguiitem.h>
-KDateTimeDlg::KDateTimeDlg(QWidget *parent, const char *name)
+KDateTimeDlg::KDateTimeDlg(TQWidget *parent, const char *name)
: KDialog(parent, name, true) {
-QGridLayout *grid = new QGridLayout(this, 9, 6, marginHint(), spacingHint());
+TQGridLayout *grid = new TQGridLayout(this, 9, 6, marginHint(), spacingHint());
setCaption(i18n("Date & Time Selector"));
_date = new KDatePicker(this);
grid->addMultiCellWidget(_date, 0, 5, 0, 5);
- grid->addWidget(new QLabel(i18n("Hour:"), this), 7, 0);
+ grid->addWidget(new TQLabel(i18n("Hour:"), this), 7, 0);
_hours = new KIntNumInput(this);
_hours->setRange(0, 23, 1, false);
grid->addWidget(_hours, 7, 1);
- grid->addWidget(new QLabel(i18n("Minute:"), this), 7, 2);
+ grid->addWidget(new TQLabel(i18n("Minute:"), this), 7, 2);
_mins = new KIntNumInput(this);
_mins->setRange(0, 59, 1, false);
grid->addWidget(_mins, 7, 3);
- grid->addWidget(new QLabel(i18n("Second:"), this), 7, 4);
+ grid->addWidget(new TQLabel(i18n("Second:"), this), 7, 4);
_secs = new KIntNumInput(this);
_secs->setRange(0, 59, 1, false);
grid->addWidget(_secs, 7, 5);
_ok = new KPushButton(KStdGuiItem::ok(), this);
grid->addWidget(_ok, 8, 4);
- connect(_ok, SIGNAL(clicked()), SLOT(accept()));
+ connect(_ok, TQT_SIGNAL(clicked()), TQT_SLOT(accept()));
_cancel = new KPushButton(KStdGuiItem::cancel(), this);
grid->addWidget(_cancel, 8, 5);
- connect(_cancel, SIGNAL(clicked()), SLOT(reject()));
+ connect(_cancel, TQT_SIGNAL(clicked()), TQT_SLOT(reject()));
}
@@ -72,20 +72,20 @@ KDateTimeDlg::~KDateTimeDlg() {
}
-QDate KDateTimeDlg::getDate() {
+TQDate KDateTimeDlg::getDate() {
return _date->date();
}
-QTime KDateTimeDlg::getTime() {
-QTime rc(_hours->value(), _mins->value(), _secs->value());
+TQTime KDateTimeDlg::getTime() {
+TQTime rc(_hours->value(), _mins->value(), _secs->value());
return rc;
}
-QDateTime KDateTimeDlg::getDateTime() {
-QDateTime qdt;
-QTime qtime(_hours->value(), _mins->value(), _secs->value());
+TQDateTime KDateTimeDlg::getDateTime() {
+TQDateTime qdt;
+TQTime qtime(_hours->value(), _mins->value(), _secs->value());
qdt.setDate(_date->date());
qdt.setTime(qtime);
@@ -94,19 +94,19 @@ return qdt;
}
-void KDateTimeDlg::setDate(const QDate& qdate) {
+void KDateTimeDlg::setDate(const TQDate& qdate) {
_date->setDate(qdate);
}
-void KDateTimeDlg::setTime(const QTime& qtime) {
+void KDateTimeDlg::setTime(const TQTime& qtime) {
_hours->setValue(qtime.hour());
_mins->setValue(qtime.minute());
_secs->setValue(qtime.second());
}
-void KDateTimeDlg::setDateTime(const QDateTime& qdatetime) {
+void KDateTimeDlg::setDateTime(const TQDateTime& qdatetime) {
_date->setDate(qdatetime.date());
_hours->setValue(qdatetime.time().hour());
_mins->setValue(qdatetime.time().minute());