emit clickedOutside when it should
This commit is contained in:
parent
c44c58a715
commit
79b5734d90
@ -78,6 +78,7 @@ public:
|
||||
void mouseReleaseEvent(QMouseEvent *event)
|
||||
{
|
||||
if (!m_dialog->view()->geometry().contains(event->globalPos())) {
|
||||
emit m_dialog->clickedOutside();
|
||||
m_dialog->close();
|
||||
}
|
||||
}
|
||||
|
@ -96,6 +96,7 @@ private:
|
||||
QList<QGraphicsObject *> m_dummyTitleElements;
|
||||
QList<QGraphicsObject *> m_dummyContentElements;
|
||||
QList<QGraphicsObject *> m_dummyButtonsElements;
|
||||
friend class Background;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user