50 Q_PROPERTY( AnimationEffect animationEffect READ animationEffect WRITE setAnimationEffect)
54 Q_PROPERTY(
int effectDuration READ effectDuration WRITE setEffectDuration);
58 Q_PROPERTY( QEasingCurve::Type easingCurve READ easingCurve WRITE setEasingCurve);
63 Q_PROPERTY( Qt::Alignment alignment READ alignment WRITE setAlignment);
68 Q_PROPERTY( Qt::Orientations orientation READ orientation WRITE setOrientation);
72 Q_PROPERTY(
BasePopupWidget::VerticalDirection verticalDirection READ verticalDirection WRITE setVerticalDirection);
76 Q_PROPERTY( Qt::LayoutDirection horizontalDirection READ horizontalDirection WRITE setHorizontalDirection);
79 typedef QFrame Superclass;
94 QWidget* baseWidget()const;
98 WindowOpacityFadeEffect = 0,
103 AnimationEffect animationEffect()
const;
104 void setAnimationEffect(AnimationEffect effect);
106 int effectDuration()
const;
107 void setEffectDuration(
int duration);
109 QEasingCurve::Type easingCurve()
const;
110 void setEasingCurve(QEasingCurve::Type easingCurve);
112 Qt::Alignment alignment()
const;
113 void setAlignment(Qt::Alignment alignment);
115 Qt::Orientations orientation()
const;
116 void setOrientation(Qt::Orientations orientation);
118 enum VerticalDirection{
125 Q_ENUM(AnimationEffect);
126 Q_ENUM(VerticalDirection);
128 VerticalDirection verticalDirection()
const;
129 void setVerticalDirection(VerticalDirection direction);
131 Qt::LayoutDirection horizontalDirection()
const;
132 void setHorizontalDirection(Qt::LayoutDirection direction);
137 virtual void hidePopup();
140 virtual void showPopup();
143 inline void showPopup(
bool show);
146 void popupOpened(
bool open);
150 QScopedPointer<BasePopupWidgetPrivate> d_ptr;
151 Q_PROPERTY(
double effectAlpha READ effectAlpha WRITE setEffectAlpha DESIGNABLE
false)
152 Q_PROPERTY(QRect effectGeometry READ effectGeometry WRITE setEffectGeometry DESIGNABLE
false)
154 double effectAlpha()
const;
155 QRect effectGeometry()
const;
157 virtual void setBaseWidget(QWidget* baseWidget);
159 virtual bool event(QEvent* event);
160 virtual void paintEvent(QPaintEvent*);
163 virtual void onEffectFinished();
164 void setEffectAlpha(
double alpha);
165 void setEffectGeometry(QRect geometry);
166 void onBaseWidgetDestroyed();