1 #ifndef WIDGETS_BUTTONOVERLAY_H 2 #define WIDGETS_BUTTONOVERLAY_H 8 QT_FORWARD_DECLARE_CLASS(QWidget)
9 QT_FORWARD_DECLARE_CLASS(QHBoxLayout)
10 QT_FORWARD_DECLARE_CLASS(QString)
11 QT_FORWARD_DECLARE_CLASS(QPixmap)
23 QHBoxLayout *buttonLayout();
24 bool isClearButtonEnabled()
const;
25 void setClearButtonEnabled(
bool enabled);
26 bool isInfoButtonEnabled()
const;
27 void enableInfoButton(
const QPixmap &pixmap,
const QString &infoText);
28 void disableInfoButton();
29 void addCustomButton(QWidget *button);
30 void insertCustomButton(
int index, QWidget *button);
31 void removeCustomButton(QWidget *button);
32 virtual bool isCleared()
const;
35 void updateClearButtonVisibility(
bool visible);
36 virtual void handleClearButtonClicked();
42 QWidget *m_buttonWidget;
43 QHBoxLayout *m_buttonLayout;
51 inline QHBoxLayout *ButtonOverlay::buttonLayout()
53 return m_buttonLayout;
59 inline bool ButtonOverlay::isClearButtonEnabled()
const 61 return m_clearButton !=
nullptr;
67 inline bool ButtonOverlay::isInfoButtonEnabled()
const 69 return m_infoButton !=
nullptr;
74 #endif // WIDGETS_BUTTONOVERLAY_H
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.