>looks like qt thing

Looks like we have to implement

bool GuiApplication::event(QEvent *ev)
{
    bool eaten = false;
    switch (ev->type()) {
    case QEvent::Close: {
        QCloseEvent *closeEvent = static_cast<QCloseEvent *>(ev);
        closeEvent->setAccepted(...);
        if (closeEvent->isAccepted()) {
            // We're going down, make sure that we don't get our
settings saved twice.
            if (current_view_)
                current_view_->setClosing(true);
            eaten = QApplication::event(ev);
        }
        eaten = true;
        break;
    }
    default:
        eaten = QApplication::event(ev);
        break;
    }
    return eaten;
}

Reply via email to