- Prepare for scripting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696337
This commit is contained in:
parent
705b7839f9
commit
e4f1d2f617
@ -47,6 +47,10 @@ namespace Plasma
|
|||||||
class PLASMA_EXPORT Icon : public QObject, public QGraphicsItem, public LayoutItem
|
class PLASMA_EXPORT Icon : public QObject, public QGraphicsItem, public LayoutItem
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_PROPERTY( QString text READ text WRITE setText )
|
||||||
|
Q_PROPERTY( QString infoText READ infoText WRITE setInfoText )
|
||||||
|
Q_PROPERTY( QSizeF iconSize READ iconSize WRITE setIconSize )
|
||||||
|
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
* Creates a new Plasma::Icon.
|
* Creates a new Plasma::Icon.
|
||||||
@ -101,14 +105,14 @@ class PLASMA_EXPORT Icon : public QObject, public QGraphicsItem, public LayoutIt
|
|||||||
* Sets the graphical icon for this Plasma::Icon.
|
* Sets the graphical icon for this Plasma::Icon.
|
||||||
* @param icon the QIcon to associate with this icon.
|
* @param icon the QIcon to associate with this icon.
|
||||||
*/
|
*/
|
||||||
void setIcon(const QIcon& icon);
|
Q_INVOKABLE void setIcon(const QIcon& icon);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convenience method to set the icon of this Plasma::Icon
|
* Convenience method to set the icon of this Plasma::Icon
|
||||||
* using a QString path to the icon.
|
* using a QString path to the icon.
|
||||||
* @param icon the path to the icon to associate with this Plasma::Icon.
|
* @param icon the path to the icon to associate with this Plasma::Icon.
|
||||||
*/
|
*/
|
||||||
void setIcon(const QString& icon);
|
Q_INVOKABLE void setIcon(const QString& icon);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the size of this Plasma::Icon's graphical icon.
|
* Returns the size of this Plasma::Icon's graphical icon.
|
||||||
@ -126,7 +130,7 @@ class PLASMA_EXPORT Icon : public QObject, public QGraphicsItem, public LayoutIt
|
|||||||
* @param height the height of the icon.
|
* @param height the height of the icon.
|
||||||
* @param width the width of the icon.
|
* @param width the width of the icon.
|
||||||
*/
|
*/
|
||||||
void setIconSize(int height, int width);
|
Q_INVOKABLE void setIconSize(int height, int width);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -36,6 +36,10 @@ namespace Plasma
|
|||||||
*/
|
*/
|
||||||
class PLASMA_EXPORT Label : public Plasma::Widget
|
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 )
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,6 +41,10 @@ namespace Plasma
|
|||||||
class PLASMA_EXPORT PushButton : public Plasma::Widget
|
class PLASMA_EXPORT PushButton : public Plasma::Widget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_ENUMS( ButtonShape )
|
||||||
|
Q_ENUMS( ButtonState )
|
||||||
|
Q_PROPERTY( QString text READ text WRITE setText )
|
||||||
|
Q_PROPERTY( QString icon WRITE setIcon )
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum ButtonShape
|
enum ButtonShape
|
||||||
|
@ -50,6 +50,8 @@ namespace Plasma
|
|||||||
class PLASMA_EXPORT RadioButton : public Plasma::Widget
|
class PLASMA_EXPORT RadioButton : public Plasma::Widget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Q_PROPERTY( QString text READ text WRITE setText )
|
||||||
|
Q_PROPERTY( bool checked READ isChecked WRITE setChecked )
|
||||||
public:
|
public:
|
||||||
RadioButton(QGraphicsItem *parent = 0);
|
RadioButton(QGraphicsItem *parent = 0);
|
||||||
virtual ~RadioButton();
|
virtual ~RadioButton();
|
||||||
|
Loading…
Reference in New Issue
Block a user