fix keysequence to use quit when available

This commit is contained in:
Kilian Valkhof 2010-02-05 17:40:43 +01:00
parent e8ddfe2153
commit 2ed75030b2
2 changed files with 9 additions and 9 deletions

4
todo
View file

@ -19,10 +19,8 @@ advancecomp 1.15
=========================================== ===========================================
later versions: later versions:
animate compressing.gif animate compressing.gif
figure out why QKeySequence.quit doesnt work
allow selection/deletion of rows from table (and subsequently the imagelist) allow selection/deletion of rows from table (and subsequently the imagelist)
check for double files check for double files when adding
pnypng api? http://www.gracepointafterfive.com/punypng/api pnypng api? http://www.gracepointafterfive.com/punypng/api
imagemagick/graphicmagick? imagemagick/graphicmagick?

View file

@ -26,7 +26,9 @@ class StartQT4(QMainWindow):
QWidget.__init__(self, parent) QWidget.__init__(self, parent)
self.ui = Ui_trimage() self.ui = Ui_trimage()
self.ui.setupUi(self) self.ui.setupUi(self)
#TODO use standardKey Quit. if hasattr(QKeySequence, 'Quit'):
self.quit_shortcut = QShortcut(QKeySequence(QKeySequence.Quit), self)
else:
self.quit_shortcut = QShortcut(QKeySequence("Ctrl+Q"), self) self.quit_shortcut = QShortcut(QKeySequence("Ctrl+Q"), self)
# disable recompress # disable recompress