popupShowing property
This commit is contained in:
parent
708be449c3
commit
18c1cc8dab
@ -539,6 +539,16 @@ bool PopupAppletInterface::isPassivePopup() const
|
|||||||
return popupApplet()->isPassivePopup();
|
return popupApplet()->isPassivePopup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool PopupAppletInterface::isPopupShowing() const
|
||||||
|
{
|
||||||
|
return popupApplet()->isPopupShowing();
|
||||||
|
}
|
||||||
|
|
||||||
|
void PopupAppletInterface::setPopupShowing(bool show)
|
||||||
|
{
|
||||||
|
show ? popupApplet()->showPopup() : popupApplet()->hidePopup();
|
||||||
|
}
|
||||||
|
|
||||||
void PopupAppletInterface::togglePopup()
|
void PopupAppletInterface::togglePopup()
|
||||||
{
|
{
|
||||||
popupApplet()->togglePopup();
|
popupApplet()->togglePopup();
|
||||||
|
@ -365,6 +365,7 @@ class PopupAppletInterface : public APPLETSUPERCLASS
|
|||||||
Q_PROPERTY(bool passivePopup READ isPassivePopup WRITE setPassivePopup)
|
Q_PROPERTY(bool passivePopup READ isPassivePopup WRITE setPassivePopup)
|
||||||
Q_PROPERTY(QGraphicsWidget *popupWidget READ popupWidget WRITE setPopupWidget)
|
Q_PROPERTY(QGraphicsWidget *popupWidget READ popupWidget WRITE setPopupWidget)
|
||||||
Q_PROPERTY(QVariantHash popupIconToolTip READ popupIconToolTip WRITE setPopupIconToolTip NOTIFY popupIconToolTipChanged)
|
Q_PROPERTY(QVariantHash popupIconToolTip READ popupIconToolTip WRITE setPopupIconToolTip NOTIFY popupIconToolTipChanged)
|
||||||
|
Q_PROPERTY(bool popupShowing READ isPopupShowing WRITE setPopupShowing NOTIFY popupEvent)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
PopupAppletInterface(AbstractJsAppletScript *parent);
|
PopupAppletInterface(AbstractJsAppletScript *parent);
|
||||||
@ -380,11 +381,14 @@ public:
|
|||||||
void setPassivePopup(bool passive);
|
void setPassivePopup(bool passive);
|
||||||
bool isPassivePopup() const;
|
bool isPassivePopup() const;
|
||||||
|
|
||||||
|
bool isPopupShowing() const;
|
||||||
|
void setPopupShowing(bool show);
|
||||||
|
|
||||||
void setPopupWidget(QGraphicsWidget *widget);
|
void setPopupWidget(QGraphicsWidget *widget);
|
||||||
QGraphicsWidget *popupWidget();
|
QGraphicsWidget *popupWidget();
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void popupEvent(bool);
|
void popupEvent(bool popupShowing);
|
||||||
void popupIconToolTipChanged();
|
void popupIconToolTipChanged();
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
|
Loading…
Reference in New Issue
Block a user