Commit 044ab923 authored by Frederik Gladhorn's avatar Frederik Gladhorn

Make ComboEventFilter a proper class

Even if this is just a small helper, it's better to be consitent and
keep the encapsulation.
parent c6cd38fd
......@@ -64,9 +64,12 @@ private:
};
struct ComboEventFilter : public QObject {
class ComboEventFilter : public QObject
{
public:
ComboEventFilter(KisColorFilterCombo *parent) : m_parent(parent), m_buttonPressed(false) {}
protected:
bool eventFilter(QObject *obj, QEvent *event) override {
if (event->type() == QEvent::Leave) {
m_buttonPressed = false;
......@@ -143,6 +146,7 @@ struct ComboEventFilter : public QObject {
return QObject::eventFilter(obj, event);
}
private:
KisColorFilterCombo *m_parent;
bool m_buttonPressed;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment