29 lines
555 B
C
29 lines
555 B
C
|
#ifndef WIDGETS_CLEARCOMBOBOX_H
|
||
|
#define WIDGETS_CLEARCOMBOBOX_H
|
||
|
|
||
|
#include "buttonoverlay.h"
|
||
|
|
||
|
#include <c++utilities/application/global.h>
|
||
|
|
||
|
#include <QComboBox>
|
||
|
|
||
|
namespace Widgets {
|
||
|
|
||
|
class LIB_EXPORT ClearComboBox : public QComboBox, public ButtonOverlay
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit ClearComboBox(QWidget *parent = nullptr);
|
||
|
~ClearComboBox();
|
||
|
bool isCleared() const;
|
||
|
|
||
|
private slots:
|
||
|
void handleTextChanged(const QString &text);
|
||
|
void handleClearButtonClicked();
|
||
|
|
||
|
};
|
||
|
|
||
|
} // namespace Widgets
|
||
|
|
||
|
#endif // WIDGETS_CLEARCOMBOBOX_H
|