mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
hide status tips on osx
This commit is contained in:
parent
70b57dfe55
commit
057af500ce
1 changed files with 5 additions and 0 deletions
|
@ -2746,6 +2746,7 @@ Consider backing up your media directory first."""))
|
|||
self.connect(self.minimizeShortcut, SIGNAL("activated()"),
|
||||
self.onMacMinimize)
|
||||
self.hideAccelerators()
|
||||
self.hideStatusTips()
|
||||
if sys.platform.startswith("win32"):
|
||||
self.mainWin.deckBrowserOuterFrame.setFrameStyle(QFrame.Panel)
|
||||
self.mainWin.frame_2.setFrameStyle(QFrame.Panel)
|
||||
|
@ -2758,6 +2759,10 @@ Consider backing up your media directory first."""))
|
|||
if m:
|
||||
action.setText(m.group(1) + (m.group(2) or ""))
|
||||
|
||||
def hideStatusTips(self):
|
||||
for action in self.findChildren(QAction):
|
||||
action.setStatusTip("")
|
||||
|
||||
def onMacMinimize(self):
|
||||
self.setWindowState(self.windowState() | Qt.WindowMinimized)
|
||||
|
||||
|
|
Loading…
Reference in a new issue