Prevent emoji selector for closing

fixes #176
This commit is contained in:
Konstantinos Sideris 2017-12-21 13:17:38 +02:00
parent f11044b5eb
commit aaa4d8c323
2 changed files with 0 additions and 19 deletions

View file

@ -37,7 +37,6 @@ signals:
protected: protected:
void enterEvent(QEvent *e) override; void enterEvent(QEvent *e) override;
void leaveEvent(QEvent *e) override;
private: private:
// Vertical distance from panel's bottom. // Vertical distance from panel's bottom.

View file

@ -46,21 +46,3 @@ PickButton::enterEvent(QEvent *e)
panel_->move(x, y); panel_->move(x, y);
panel_->show(); panel_->show();
} }
void
PickButton::leaveEvent(QEvent *e)
{
Q_UNUSED(e);
if (panel_->underMouse())
return;
auto pos = QCursor::pos();
auto panel_geometry = panel_->geometry();
panel_geometry.adjust(0, 0, 0, vertical_distance_);
if (panel_geometry.contains(pos))
return;
panel_->hide();
}