diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/koproperty/editors/datetimeedit.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/koproperty/editors/datetimeedit.cpp')
-rw-r--r-- | lib/koproperty/editors/datetimeedit.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/koproperty/editors/datetimeedit.cpp b/lib/koproperty/editors/datetimeedit.cpp index 33bb8de3..7f88cb14 100644 --- a/lib/koproperty/editors/datetimeedit.cpp +++ b/lib/koproperty/editors/datetimeedit.cpp @@ -20,43 +20,43 @@ #include "datetimeedit.h" -#include <qdatetimeedit.h> -#include <qrangecontrol.h> -#include <qobjectlist.h> -#include <qlayout.h> -#include <qpainter.h> -#include <qvariant.h> +#include <tqdatetimeedit.h> +#include <tqrangecontrol.h> +#include <tqobjectlist.h> +#include <tqlayout.h> +#include <tqpainter.h> +#include <tqvariant.h> #include <klocale.h> #include <kglobal.h> using namespace KoProperty; -DateTimeEdit::DateTimeEdit(Property *property, QWidget *parent, const char *name) - : Widget(property, parent, name) +DateTimeEdit::DateTimeEdit(Property *property, TQWidget *tqparent, const char *name) + : Widget(property, tqparent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QDateTimeEdit(this); - m_edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQDateTimeEdit(this); + m_edit->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_edit->setMinimumHeight(5); l->addWidget(m_edit); setLeavesTheSpaceForRevertButton(true); setFocusWidget(m_edit); - connect(m_edit, SIGNAL(valueChanged(const QDateTime&)), this, SLOT(slotValueChanged(const QDateTime&))); + connect(m_edit, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(slotValueChanged(const TQDateTime&))); } DateTimeEdit::~DateTimeEdit() {} -QVariant +TQVariant DateTimeEdit::value() const { return m_edit->dateTime(); } void -DateTimeEdit::setValue(const QVariant &value, bool emitChange) +DateTimeEdit::setValue(const TQVariant &value, bool emitChange) { m_edit->blockSignals(true); m_edit->setDateTime(value.toDateTime()); @@ -66,16 +66,16 @@ DateTimeEdit::setValue(const QVariant &value, bool emitChange) } void -DateTimeEdit::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) +DateTimeEdit::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value) { p->eraseRect(r); Widget::drawViewer(p, cg, r, KGlobal::locale()->formatDateTime(value.toDateTime(), true /* use short format*/, false /*no sec */ )); -// p->drawText(r, Qt::AlignLeft | Qt::AlignVCenter | Qt::SingleLine, +// p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, // KGlobal::locale()->formatDateTime(value.toDateTime(), true /* use short format*/, false /*no sec */ )); } void -DateTimeEdit::slotValueChanged(const QDateTime&) +DateTimeEdit::slotValueChanged(const TQDateTime&) { emit valueChanged(this); } |