From 6354e56a91e95ff9ff535dfb00552106a3a20578 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 12 Jul 2011 20:30:22 +0200 Subject: [PATCH] emit visiblechanged when it should --- declarativeimports/core/dialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/declarativeimports/core/dialog.cpp b/declarativeimports/core/dialog.cpp index 4184ccc92..d5f1b424e 100644 --- a/declarativeimports/core/dialog.cpp +++ b/declarativeimports/core/dialog.cpp @@ -181,7 +181,6 @@ void DialogProxy::setVisible(const bool visible) m_dialog->setVisible(visible); m_dialog->raise(); } - emit visibleChanged(); } } @@ -271,6 +270,10 @@ bool DialogProxy::eventFilter(QObject *watched, QEvent *event) if (re->oldSize().height() != re->size().height()) { emit heightChanged(); } + } else if (watched == m_dialog && event->type() == QEvent::Show) { + emit visibleChanged(); + } else if (watched == m_dialog && event->type() == QEvent::Hide) { + emit visibleChanged(); } else if (watched == m_dialog && event->type() == QEvent::WindowActivate) { m_activeWindow = true; emit activeWindowChanged();