emit clickedOutside when it should

This commit is contained in:
Marco Martin 2012-08-08 17:50:21 +02:00
parent c44c58a715
commit 79b5734d90
2 changed files with 2 additions and 0 deletions

View File

@ -78,6 +78,7 @@ public:
void mouseReleaseEvent(QMouseEvent *event)
{
if (!m_dialog->view()->geometry().contains(event->globalPos())) {
emit m_dialog->clickedOutside();
m_dialog->close();
}
}

View File

@ -96,6 +96,7 @@ private:
QList<QGraphicsObject *> m_dummyTitleElements;
QList<QGraphicsObject *> m_dummyContentElements;
QList<QGraphicsObject *> m_dummyButtonsElements;
friend class Background;
};
#endif