mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-17 10:31:05 -04:00
gui: rscombobox: add destructor
This commit is contained in:
parent
7a94f9da74
commit
2e175cbc6f
2 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,11 @@ RSComboBox::RSComboBox(QWidget *parent /*= nullptr*/)
|
||||||
view()->installEventFilter(this);
|
view()->installEventFilter(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RSComboBox::~RSComboBox()
|
||||||
|
{
|
||||||
|
delete this->itemDelegate();
|
||||||
|
}
|
||||||
|
|
||||||
bool RSComboBox::eventFilter(QObject *obj, QEvent *event)
|
bool RSComboBox::eventFilter(QObject *obj, QEvent *event)
|
||||||
{
|
{
|
||||||
if(QAbstractItemView* view = dynamic_cast<QAbstractItemView*>(obj))
|
if(QAbstractItemView* view = dynamic_cast<QAbstractItemView*>(obj))
|
||||||
|
|
|
@ -28,6 +28,7 @@ class RSComboBox : public QComboBox
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit RSComboBox(QWidget *parent = nullptr);
|
explicit RSComboBox(QWidget *parent = nullptr);
|
||||||
|
~RSComboBox();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool eventFilter(QObject *obj, QEvent *event);
|
bool eventFilter(QObject *obj, QEvent *event);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue