Qt Utilities
6.0.1
Common Qt related C++ classes and routines used by my applications such as dialogs, widgets and models
widgets
clearcombobox.h
Go to the documentation of this file.
1
#ifndef WIDGETS_CLEARCOMBOBOX_H
2
#define WIDGETS_CLEARCOMBOBOX_H
3
4
#include "
./buttonoverlay.h
"
5
6
#include <QComboBox>
7
8
namespace
QtUtilities
{
9
10
class
QT_UTILITIES_EXPORT
ClearComboBox
:
public
QComboBox,
public
ButtonOverlay
{
11
Q_OBJECT
12
Q_PROPERTY(
bool
cleared READ isCleared)
13
14
public
:
15
explicit
ClearComboBox
(QWidget *parent =
nullptr
);
16
~
ClearComboBox
()
override
;
17
bool
isCleared()
const override
;
18
19
private
Q_SLOTS:
20
void
handleTextChanged(
const
QString &
text
);
21
void
handleClearButtonClicked()
override
;
22
};
23
24
}
// namespace QtUtilities
25
26
#endif // WIDGETS_CLEARCOMBOBOX_H
QT_UTILITIES_EXPORT
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.
QtUtilities::ButtonOverlay
The ButtonOverlay class is used to display buttons on top of other widgets.
Definition:
buttonoverlay.h:17
QtUtilities
!
Definition:
trylocker.h:8
QtUtilities::ClearComboBox
A QComboBox with an embedded button for clearing its contents.
Definition:
clearcombobox.h:10
text
#define text
Definition:
xmlparsermacros.h:18
buttonoverlay.h
Generated on Wed Oct 2 2019 15:53:38 for Qt Utilities by
1.8.16