broulik added a comment.

  So, Ctrl+Q always quits without confirmation? What about having a
  
    singal aboutToQuit(var event)
  
  and then do:
  
    onActivated: {
        var event = {accepted: false}
        aboutToQuit(event);
        if (!event.accepted) {
            Qt.quit();
        }
    }
  
  Then an app can
  
    onAboutToQuit: {
        if (hasUnsavedChanges) {
            event.accepted = true;
            // ask for confirmation
        }
    }

REPOSITORY
  rKIRIGAMI Kirigami

REVISION DETAIL
  https://phabricator.kde.org/D2790

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: apol, #kirigami, mart
Cc: broulik, plasma-devel, apol

Reply via email to