From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: 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 --- lib/koproperty/editors/datetimeedit.cpp | 34 ++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'lib/koproperty/editors/datetimeedit.cpp') 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 -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include 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); } -- cgit v1.2.1