- Prepare for scripting
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=696314
This commit is contained in:
parent
e7512b5b77
commit
705b7839f9
@ -50,6 +50,9 @@ class DataContainer;
|
||||
class PLASMA_EXPORT DataEngine : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY( QStringList sources READ sources )
|
||||
Q_PROPERTY( bool valid READ isValid )
|
||||
Q_PROPERTY( QString icon READ icon WRITE setIcon )
|
||||
|
||||
public:
|
||||
typedef QHash<QString, DataEngine*> Dict;
|
||||
|
10
phase.h
10
phase.h
@ -37,6 +37,10 @@ namespace Plasma
|
||||
class PLASMA_EXPORT Phase : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_ENUMS( Animation )
|
||||
Q_ENUMS( RenderOp )
|
||||
Q_ENUMS( CurveShape )
|
||||
Q_ENUMS( Movement )
|
||||
|
||||
public:
|
||||
enum Animation
|
||||
@ -82,9 +86,9 @@ public:
|
||||
explicit Phase(QObject * parent = 0);
|
||||
~Phase();
|
||||
|
||||
void animateItem(QGraphicsItem* item, Animation anim);
|
||||
void moveItem(QGraphicsItem* item, Movement movement, const QPoint &destination);
|
||||
void render(QGraphicsItem* item, QImage& image, RenderOp op);
|
||||
Q_INVOKABLE void animateItem(QGraphicsItem* item, Animation anim);
|
||||
Q_INVOKABLE void moveItem(QGraphicsItem* item, Movement movement, const QPoint &destination);
|
||||
Q_INVOKABLE void render(QGraphicsItem* item, QImage& image, RenderOp op);
|
||||
|
||||
AnimId animateElement(QGraphicsItem *obj, ElementAnimation);
|
||||
void stopElementAnimation(AnimId id);
|
||||
|
3
theme.h
3
theme.h
@ -44,6 +44,7 @@ namespace Plasma
|
||||
class PLASMA_EXPORT Theme : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY( QString themeName READ themeName )
|
||||
|
||||
public:
|
||||
/**
|
||||
@ -78,7 +79,7 @@ class PLASMA_EXPORT Theme : public QObject
|
||||
* ".svg" part or a leading slash)
|
||||
* @return the full path to the requested file for the current theme
|
||||
*/
|
||||
QString image( const QString& name ) const;
|
||||
Q_INVOKABLE QString image( const QString& name ) const;
|
||||
|
||||
Q_SIGNALS:
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user