diff options
Diffstat (limited to 'lib/widgets/propeditor/pdateedit.cpp')
-rw-r--r-- | lib/widgets/propeditor/pdateedit.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/widgets/propeditor/pdateedit.cpp b/lib/widgets/propeditor/pdateedit.cpp index 5aa5231c..141eef20 100644 --- a/lib/widgets/propeditor/pdateedit.cpp +++ b/lib/widgets/propeditor/pdateedit.cpp @@ -19,29 +19,29 @@ ***************************************************************************/ #include "pdateedit.h" -#include <qdatetimeedit.h> -#include <qpainter.h> -#include <qlayout.h> +#include <tqdatetimeedit.h> +#include <tqpainter.h> +#include <tqlayout.h> namespace PropertyLib{ -PDateEdit::PDateEdit(MultiProperty* property, QWidget* parent, const char* name) +PDateEdit::PDateEdit(MultiProperty* property, TQWidget* parent, const char* name) :PropertyWidget(property, parent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); m_edit = new QDateEdit(this); - m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding); + m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding); l->addWidget(m_edit); - connect(m_edit, SIGNAL(valueChanged(const QDate&)), this, SLOT(updateProperty(const QDate&))); + connect(m_edit, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(updateProperty(const TQDate&))); } -QVariant PDateEdit::value() const +TQVariant PDateEdit::value() const { - return QVariant(m_edit->date()); + return TQVariant(m_edit->date()); } -void PDateEdit::drawViewer(QPainter* p, const QColorGroup& cg, const QRect& r, const QVariant& value) +void PDateEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r, const TQVariant& value) { p->setPen(Qt::NoPen); p->setBrush(cg.background()); @@ -49,18 +49,18 @@ void PDateEdit::drawViewer(QPainter* p, const QColorGroup& cg, const QRect& r, c p->drawText(r, Qt::AlignLeft | Qt::AlignVCenter | Qt::SingleLine, value.toDate().toString(Qt::LocalDate)); } -void PDateEdit::setValue(const QVariant& value, bool emitChange) +void PDateEdit::setValue(const TQVariant& value, bool emitChange) { - disconnect(m_edit, SIGNAL(valueChanged(const QDate&)), this, SLOT(updateProperty(const QDate&))); + disconnect(m_edit, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(updateProperty(const TQDate&))); m_edit->setDate(value.toDate()); - connect(m_edit, SIGNAL(valueChanged(const QDate&)), this, SLOT(updateProperty(const QDate&))); + connect(m_edit, TQT_SIGNAL(valueChanged(const TQDate&)), this, TQT_SLOT(updateProperty(const TQDate&))); if (emitChange) emit propertyChanged(m_property, value); } -void PDateEdit::updateProperty(const QDate &val) +void PDateEdit::updateProperty(const TQDate &val) { - emit propertyChanged(m_property, QVariant(val)); + emit propertyChanged(m_property, TQVariant(val)); } } |