@@ -606,10 +606,12 @@ void ctkPopupWidget::onEffectFinished()
if (qobject_cast<QAbstractAnimation*>(this->sender())->direction() == QAbstractAnimation::Backward)
{
this->hide();
+ emit this->popupOpened(false);
}
else
this->show();
+ emit this->popupOpened(true);
@@ -140,6 +140,9 @@ public slots:
/// It is typically connected with a checkable button to anchor the popup.
void pinPopup(bool pin);
+signals:
+ void popupOpened(bool open);
+
protected:
QScopedPointer<ctkPopupWidgetPrivate> d_ptr;
Q_PROPERTY(double effectAlpha READ effectAlpha WRITE setEffectAlpha DESIGNABLE false)