emit visiblechanged when it should

This commit is contained in:
Marco Martin 2011-07-12 20:30:22 +02:00
parent 471fbd1d30
commit 6354e56a91

View File

@ -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();