KDevelop API Documentation

PropertyLib::PDateTimeEdit Class Reference

Property editor for QDateTime values. More...

#include <pdatetimeedit.h>

Inheritance diagram for PropertyLib::PDateTimeEdit:

Inheritance graph
[legend]
Collaboration diagram for PropertyLib::PDateTimeEdit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PDateTimeEdit (MultiProperty *property, QWidget *parent=0, const char *name=0)
virtual QVariant value () const
virtual void drawViewer (QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value)
 Function to draw a property viewer when the editor isn't shown.
virtual void setValue (const QVariant &value, bool emitChange)
 Sets the value shown in the editor widget.

Private Slots

void updateProperty (const QDateTime &val)

Private Attributes

QDateTimeEditm_edit

Detailed Description

Property editor for QDateTime values.

Definition at line 32 of file pdatetimeedit.h.


Constructor & Destructor Documentation

PropertyLib::PDateTimeEdit::PDateTimeEdit MultiProperty property,
QWidget parent = 0,
const char *  name = 0
 

Definition at line 28 of file pdatetimeedit.cpp.

References m_edit, and updateProperty().


Member Function Documentation

void PropertyLib::PDateTimeEdit::drawViewer QPainter p,
const QColorGroup cg,
const QRect r,
const QVariant value
[virtual]
 

Function to draw a property viewer when the editor isn't shown.

Reimplemented from PropertyLib::PropertyWidget.

Definition at line 43 of file pdatetimeedit.cpp.

void PropertyLib::PDateTimeEdit::setValue const QVariant value,
bool  emitChange
[virtual]
 

Sets the value shown in the editor widget.

Set emitChange to false if you don't want to emit propertyChanged signal.

Implements PropertyLib::PropertyWidget.

Definition at line 51 of file pdatetimeedit.cpp.

References m_edit, PropertyLib::PropertyWidget::propertyChanged(), and updateProperty().

void PropertyLib::PDateTimeEdit::updateProperty const QDateTime val  )  [private, slot]
 

Definition at line 60 of file pdatetimeedit.cpp.

References PropertyLib::PropertyWidget::propertyChanged().

Referenced by PDateTimeEdit(), and setValue().

QVariant PropertyLib::PDateTimeEdit::value  )  const [virtual]
 

Returns:
the value currently entered in the editor widget.

Implements PropertyLib::PropertyWidget.

Definition at line 38 of file pdatetimeedit.cpp.

References m_edit.


Member Data Documentation

QDateTimeEdit* PropertyLib::PDateTimeEdit::m_edit [private]
 

Definition at line 46 of file pdatetimeedit.h.

Referenced by PDateTimeEdit(), setValue(), and value().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:51:43 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003