pdatetimeedit.cpp
28PDateTimeEdit::PDateTimeEdit(MultiProperty* property, TQWidget* parent, const char* name): PropertyWidget(property, parent, name)
35 connect(m_edit, TQ_SIGNAL(valueChanged(const TQDateTime&)), this, TQ_SLOT(updateProperty(const TQDateTime&)));
43void PDateTimeEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r, const TQVariant& value)
48 p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, value.toDateTime().toString(TQt::LocalDate));
53 disconnect(m_edit, TQ_SIGNAL(valueChanged(const TQDateTime&)), this, TQ_SLOT(updateProperty(const TQDateTime&)));
Holds a list of properties with the same name and type.
Definition multiproperty.h:50
virtual void setValue(const TQVariant &value, bool emitChange)
Sets the value shown in the editor widget.
Definition pdatetimeedit.cpp:51
virtual void drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value)
Function to draw a property viewer when the editor isn't shown.
Definition pdatetimeedit.cpp:43
An abstract base class of property viewer and editor vidget.
Definition propertywidget.h:49
void propertyChanged(MultiProperty *property, const TQVariant &value)
Emit this signal when property value is changed.
Trinity API Reference