[Differential] [Commented On] D2790: Make application close upon Ctrl+Q
broulik (Kai Uwe Broulik)
noreply at phabricator.kde.org
Thu Sep 15 14:54:11 UTC 2016
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20160915/993eee29/attachment-0001.html>
More information about the Plasma-devel
mailing list