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

12
todo
View file

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

View file

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