mirror of
https://github.com/Kilian/Trimage.git
synced 2026-01-26 10:08:40 -05:00
fix keysequence to use quit when available
This commit is contained in:
parent
e8ddfe2153
commit
2ed75030b2
2 changed files with 9 additions and 9 deletions
4
todo
4
todo
|
|
@ -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?
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue