- More Q_PROPERTY additions

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=707687
This commit is contained in:
Richard J. Moore 2007-09-02 17:49:34 +00:00
parent b09f73ac86
commit 4663b82555
2 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#define __PLASMA_LABEL__
#include <plasma/widgets/widget.h>
#include <QPen>
class QGraphicsTextItem;
@ -39,6 +40,7 @@ class PLASMA_EXPORT Label : public Plasma::Widget
Q_OBJECT
Q_PROPERTY( QString text READ text WRITE setText )
Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
Q_PROPERTY( QPen pen READ pen WRITE setPen )
public:

View File

@ -37,6 +37,11 @@ namespace Plasma
class PLASMA_EXPORT LineEdit : public QGraphicsTextItem, public LayoutItem
{
Q_OBJECT
Q_PROPERTY( bool styled READ styled WRITE setStyled )
Q_PROPERTY( bool multiLine READ multiLine WRITE setMultiLine )
Q_PROPERTY( QString defaultText WRITE setDefaultText )
Q_PROPERTY( QString html READ toHtml )
Q_PROPERTY( QString plainText READ toPlainText )
public:
explicit LineEdit(QGraphicsItem *parent = 0, QGraphicsScene *scene = 0);