export plasmoid.rootItem
This commit is contained in:
parent
39047a0ab8
commit
91e6297114
@ -680,6 +680,11 @@ QObject *AppletQuickItem::fullRepresentationItem()
|
|||||||
return d->fullRepresentationItem.data();
|
return d->fullRepresentationItem.data();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QObject *AppletQuickItem::rootItem()
|
||||||
|
{
|
||||||
|
return d->qmlObject->rootObject();
|
||||||
|
}
|
||||||
|
|
||||||
void AppletQuickItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
|
void AppletQuickItem::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
|
||||||
{
|
{
|
||||||
Q_UNUSED(oldGeometry)
|
Q_UNUSED(oldGeometry)
|
||||||
|
@ -80,6 +80,12 @@ class PLASMAQUICK_EXPORT AppletQuickItem : public QQuickItem
|
|||||||
*/
|
*/
|
||||||
Q_PROPERTY(bool expanded WRITE setExpanded READ isExpanded NOTIFY expandedChanged)
|
Q_PROPERTY(bool expanded WRITE setExpanded READ isExpanded NOTIFY expandedChanged)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* the applet root QML item: sometimes is the same as fullRepresentationItem
|
||||||
|
* if a fullrepresentation was not declared explicitly
|
||||||
|
*/
|
||||||
|
Q_PROPERTY(QObject *rootItem READ rootItem CONSTANT)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent = 0);
|
AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent = 0);
|
||||||
~AppletQuickItem();
|
~AppletQuickItem();
|
||||||
@ -98,6 +104,7 @@ public:
|
|||||||
|
|
||||||
QObject *compactRepresentationItem();
|
QObject *compactRepresentationItem();
|
||||||
QObject *fullRepresentationItem();
|
QObject *fullRepresentationItem();
|
||||||
|
QObject *rootItem();
|
||||||
|
|
||||||
////PROPERTY ACCESSORS
|
////PROPERTY ACCESSORS
|
||||||
int switchWidth() const;
|
int switchWidth() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user