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)
22 QHBoxLayout *buttonLayout();
23 bool isClearButtonEnabled()
const;
24 void setClearButtonEnabled(
bool enabled);
25 bool isInfoButtonEnabled()
const;
26 void enableInfoButton(
const QPixmap &pixmap,
const QString &infoText);
27 void disableInfoButton();
28 void addCustomButton(QWidget *button);
29 void insertCustomButton(
int index, QWidget *button);
30 void removeCustomButton(QWidget *button);
31 virtual bool isCleared()
const;
34 void updateClearButtonVisibility(
bool visible);
35 virtual void handleClearButtonClicked();
41 QWidget *m_buttonWidget;
42 QHBoxLayout *m_buttonLayout;
52 return m_buttonLayout;
60 return m_clearButton !=
nullptr;
68 return m_infoButton !=
nullptr;
72 #endif // WIDGETS_BUTTONOVERLAY_H