- More Q_PROPERTY additions
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=707687
This commit is contained in:
parent
b09f73ac86
commit
4663b82555
@ -21,6 +21,7 @@
|
|||||||
#define __PLASMA_LABEL__
|
#define __PLASMA_LABEL__
|
||||||
|
|
||||||
#include <plasma/widgets/widget.h>
|
#include <plasma/widgets/widget.h>
|
||||||
|
#include <QPen>
|
||||||
|
|
||||||
class QGraphicsTextItem;
|
class QGraphicsTextItem;
|
||||||
|
|
||||||
@ -39,6 +40,7 @@ class PLASMA_EXPORT Label : public Plasma::Widget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_PROPERTY( QString text READ text WRITE setText )
|
Q_PROPERTY( QString text READ text WRITE setText )
|
||||||
Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
|
Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment )
|
||||||
|
Q_PROPERTY( QPen pen READ pen WRITE setPen )
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
@ -37,6 +37,11 @@ namespace Plasma
|
|||||||
class PLASMA_EXPORT LineEdit : public QGraphicsTextItem, public LayoutItem
|
class PLASMA_EXPORT LineEdit : public QGraphicsTextItem, public LayoutItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
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:
|
public:
|
||||||
explicit LineEdit(QGraphicsItem *parent = 0, QGraphicsScene *scene = 0);
|
explicit LineEdit(QGraphicsItem *parent = 0, QGraphicsScene *scene = 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user