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/dateedit.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/dateedit.cpp')
-rw-r--r-- | lib/koproperty/editors/dateedit.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/koproperty/editors/dateedit.cpp b/lib/koproperty/editors/dateedit.cpp index 797c0e5c..b72fd7ce 100644 --- a/lib/koproperty/editors/dateedit.cpp +++ b/lib/koproperty/editors/dateedit.cpp @@ -20,44 +20,44 @@ #include "dateedit.h" -#include <qdatetimeedit.h> -#include <qrangecontrol.h> -#include <qobjectlist.h> -#include <qlayout.h> -#include <qvariant.h> -#include <qpainter.h> +#include <tqdatetimeedit.h> +#include <tqrangecontrol.h> +#include <tqobjectlist.h> +#include <tqlayout.h> +#include <tqvariant.h> +#include <tqpainter.h> #include <klocale.h> #include <kglobal.h> using namespace KoProperty; -DateEdit::DateEdit(Property *property, QWidget *parent, const char *name) - : Widget(property, parent, name) +DateEdit::DateEdit(Property *property, TQWidget *tqparent, const char *name) + : Widget(property, tqparent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QDateEdit(this); - m_edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQDateEdit(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 QDate&)), this, SLOT(slotValueChanged(const QDate&))); + connect(m_edit, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(slotValueChanged(const TQDate&))); } DateEdit::~DateEdit() {} -QVariant +TQVariant DateEdit::value() const { return m_edit->date(); } void -DateEdit::setValue(const QVariant &value, bool emitChange) +DateEdit::setValue(const TQVariant &value, bool emitChange) { m_edit->blockSignals(true); m_edit->setDate(value.toDate()); @@ -67,15 +67,15 @@ DateEdit::setValue(const QVariant &value, bool emitChange) } void -DateEdit::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) +DateEdit::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value) { p->eraseRect(r); Widget::drawViewer(p, cg, r, KGlobal::locale()->formatDate(value.toDate(), true /* use short format*/ )); -// p->drawText(r, Qt::AlignLeft | Qt::AlignVCenter | Qt::SingleLine, KGlobal::locale()->formatDate(value.toDate(), true /* use short format*/ )); +// p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, KGlobal::locale()->formatDate(value.toDate(), true /* use short format*/ )); } void -DateEdit::slotValueChanged(const QDate&) +DateEdit::slotValueChanged(const TQDate&) { emit valueChanged(this); } |