mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-23 16:39:16 -04:00
gui: rscombobox: add destructor
This commit is contained in:
parent
7a94f9da74
commit
2e175cbc6f
@ -33,6 +33,11 @@ RSComboBox::RSComboBox(QWidget *parent /*= nullptr*/)
|
||||
view()->installEventFilter(this);
|
||||
}
|
||||
|
||||
RSComboBox::~RSComboBox()
|
||||
{
|
||||
delete this->itemDelegate();
|
||||
}
|
||||
|
||||
bool RSComboBox::eventFilter(QObject *obj, QEvent *event)
|
||||
{
|
||||
if(QAbstractItemView* view = dynamic_cast<QAbstractItemView*>(obj))
|
||||
|
@ -28,6 +28,7 @@ class RSComboBox : public QComboBox
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit RSComboBox(QWidget *parent = nullptr);
|
||||
~RSComboBox();
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *obj, QEvent *event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user