|
|
|
@ -179,7 +179,10 @@ class TrayIcon (QtGui.QSystemTrayIcon):
|
|
|
|
|
# self.showMessage('dialog-warning', 'Left Button', 'Your <b>Click</b> <i>left</i>')
|
|
|
|
|
#, PySide.QtGui.QSystemTrayIcon.MessageIcon = Information, int = 10000)
|
|
|
|
|
if QtGui.QCursor.pos().y() < self.left_menu.sizeHint().height():
|
|
|
|
|
self.left_menu.move(QtGui.QCursor.pos() + QtCore.QPoint(0, 16))
|
|
|
|
|
# self.left_menu.move(QtGui.QCursor.pos() + QtCore.QPoint(0, 16))
|
|
|
|
|
self.left_menu.move(QtCore.QPoint \
|
|
|
|
|
(self.geometry().x(), self.geometry().y()) + \
|
|
|
|
|
QtCore.QPoint(0, self.geometry().height() + 8))
|
|
|
|
|
else:
|
|
|
|
|
point = QtCore.QPoint(self.left_menu.sizeHint().width(), \
|
|
|
|
|
self.left_menu.sizeHint().height() + 16)
|
|
|
|
@ -244,7 +247,6 @@ class LeftButtonMenu(QtGui.QMenu):
|
|
|
|
|
update_icon = update_icon.fromTheme(image)
|
|
|
|
|
if not update_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
update_icon.setThemeName(themeName)
|
|
|
|
|
|
|
|
|
|
self.sys_update = QtGui.QAction(update_icon, _("Update system"), \
|
|
|
|
|
self, triggered=parent.start_update_system)
|
|
|
|
@ -264,7 +266,6 @@ class LeftButtonMenu(QtGui.QMenu):
|
|
|
|
|
exit_icon = exit_icon.fromTheme(image)
|
|
|
|
|
if not exit_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
exit_icon.setThemeName(themeName)
|
|
|
|
|
|
|
|
|
|
self.exit_action = QtGui.QAction(exit_icon, _('Exit program'), \
|
|
|
|
|
self, triggered=parent.exit)
|
|
|
|
@ -303,7 +304,6 @@ class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
About_icon = About_icon.fromTheme(image)
|
|
|
|
|
if not About_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
About_icon.setThemeName(themeName)
|
|
|
|
|
|
|
|
|
|
self.about_action = QtGui.QAction(About_icon, _("About Program"), self, \
|
|
|
|
|
triggered=parent.help)
|
|
|
|
@ -321,7 +321,6 @@ class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
bug_icon = bug_icon.fromTheme(image)
|
|
|
|
|
if not bug_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
bug_icon.setThemeName(themeName)
|
|
|
|
|
|
|
|
|
|
self.bug_action = QtGui.QAction(bug_icon, _('Report Bug'), self, \
|
|
|
|
|
triggered=parent.bug_report)
|
|
|
|
@ -341,7 +340,6 @@ class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
tools_icon = tools_icon.fromTheme(image)
|
|
|
|
|
if not tools_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
tools_icon.setThemeName(themeName)
|
|
|
|
|
|
|
|
|
|
self.tools_action = QtGui.QAction(tools_icon, _('Program settings'), \
|
|
|
|
|
self, triggered=parent.tools)
|
|
|
|
@ -358,7 +356,6 @@ class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
update_icon = update_icon.fromTheme(image)
|
|
|
|
|
if not update_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
update_icon.setThemeName(themeName)
|
|
|
|
|
|
|
|
|
|
self.sys_update = QtGui.QAction(update_icon, _("Update system"), \
|
|
|
|
|
self, triggered=parent.start_update_system)
|
|
|
|
@ -376,7 +373,6 @@ class RightButtonMenu(QtGui.QMenu):
|
|
|
|
|
exit_icon = exit_icon.fromTheme(image)
|
|
|
|
|
if not exit_icon.isNull():
|
|
|
|
|
break
|
|
|
|
|
exit_icon.setThemeName(themeName)
|
|
|
|
|
|
|
|
|
|
self.exit_action = QtGui.QAction(exit_icon, _("Exit program"), \
|
|
|
|
|
self, triggered=parent.exit)
|
|
|
|
|