qtutilities/widgets/clearcombobox.h

25 lines
540 B
C
Raw Normal View History

2015-04-22 18:57:44 +02:00
#ifndef WIDGETS_CLEARCOMBOBOX_H
#define WIDGETS_CLEARCOMBOBOX_H
2015-09-06 20:19:21 +02:00
#include "./buttonoverlay.h"
2015-04-22 18:57:44 +02:00
#include <QComboBox>
namespace Widgets {
2017-05-01 03:16:25 +02:00
class QT_UTILITIES_EXPORT ClearComboBox : public QComboBox, public ButtonOverlay {
2015-04-22 18:57:44 +02:00
Q_OBJECT
public:
explicit ClearComboBox(QWidget *parent = nullptr);
2018-10-10 21:12:58 +02:00
~ClearComboBox() override;
bool isCleared() const override;
2017-05-01 03:16:25 +02:00
private Q_SLOTS:
2015-04-22 18:57:44 +02:00
void handleTextChanged(const QString &text);
2018-10-10 21:12:58 +02:00
void handleClearButtonClicked() override;
2015-04-22 18:57:44 +02:00
};
} // namespace Widgets
#endif // WIDGETS_CLEARCOMBOBOX_H