21 #ifndef SCROLLPOPUPBUTTON_H 22 #define SCROLLPOPUPBUTTON_H 24 #include <QPushButton> 26 #include <tulip/tulipconf.h> 30 class TLP_QT_SCOPE ScrollPopupButton :
public QPushButton {
32 Q_PROPERTY(
int value READ value WRITE setValue)
33 Q_PROPERTY(
int minimum READ minimum WRITE setMinimum)
34 Q_PROPERTY(
int maximum READ maximum WRITE setMaximum)
39 explicit ScrollPopupButton(QWidget *parent =
nullptr);
45 virtual void showPopup();
46 virtual void hidePopup();
47 void setPopupVisible(
bool);
53 void valueChanged(
int);
56 bool eventFilter(QObject *, QEvent *)
override;
59 #endif // SCROLLPOPUPBUTTON_H