22 #ifndef SCROLLPOPUPBUTTON_H 23 #define SCROLLPOPUPBUTTON_H 25 #include <QPushButton> 28 #include <tulip/tulipconf.h> 32 class TLP_QT_SCOPE ScrollPopupButton :
public QPushButton {
34 Q_PROPERTY(
int value READ value WRITE setValue)
35 Q_PROPERTY(
int minimum READ minimum WRITE setMinimum)
36 Q_PROPERTY(
int maximum READ maximum WRITE setMaximum)
41 explicit ScrollPopupButton(QWidget *parent = 0);
47 virtual void showPopup();
48 virtual void hidePopup();
49 void setPopupVisible(
bool);
55 void valueChanged(
int);
58 bool eventFilter(QObject *, QEvent *);
61 #endif // SCROLLPOPUPBUTTON_H