[Differential] [Commented On] D2790: Make application close upon Ctrl+Q

2016-09-16 Thread mart (Marco Martin)
mart added a comment. hmm, can it be intercepted since Applicationwindow can't be subclassed from c++? i can think about an ugly event filter, but ouch.. REPOSITORY rKIRIGAMI Kirigami BRANCH master REVISION DETAIL https://phabricator.kde.org/D2790 EMAIL PREFERENCES

[Differential] [Commented On] D2790: Make application close upon Ctrl+Q

2016-09-15 Thread broulik (Kai Uwe Broulik)
broulik added a comment. You can: http://doc.qt.io/qt-5/qml-qtquick-window-window.html#closing-signal REPOSITORY rKIRIGAMI Kirigami BRANCH master REVISION DETAIL https://phabricator.kde.org/D2790 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To:

[Differential] [Commented On] D2790: Make application close upon Ctrl+Q

2016-09-15 Thread apol (Aleix Pol Gonzalez)
apol added a comment. In https://phabricator.kde.org/D2790#51966, @broulik wrote: > So, Ctrl+Q always quits without confirmation? What about having a > > singal aboutToQuit(var event) > > and then do: > > onActivated: { > var event = {accepted: false} >

[Differential] [Commented On] D2790: Make application close upon Ctrl+Q

2016-09-15 Thread broulik (Kai Uwe Broulik)
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();