Skip to content
Permalink
Browse files

[processing] harmonize options menu item location & icon (#3922)

  • Loading branch information
nirvn committed Dec 30, 2016
1 parent 2758f3b commit 14e2b98c20c7e1b44e6b1d5557e74925deb4e2f4
@@ -31,6 +31,7 @@
import os
import sys

from qgis.core import QgsApplication
from qgis.PyQt.QtCore import Qt, QCoreApplication, QDir
from qgis.PyQt.QtWidgets import QMenu, QAction
from qgis.PyQt.QtGui import QIcon
@@ -92,16 +93,6 @@ def initGui(self):
self.iface.registerMainWindowAction(self.historyAction, 'Ctrl+Alt+H')
self.menu.addAction(self.historyAction)

self.configAction = QAction(
QIcon(os.path.join(cmd_folder, 'images', 'config.png')),
self.tr('&Options...'), self.iface.mainWindow())
self.configAction.setObjectName('configAction')
self.configAction.setMenuRole(QAction.NoRole)

self.configAction.triggered.connect(self.openConfig)
self.iface.registerMainWindowAction(self.configAction, 'Ctrl+Alt+C')
self.menu.addAction(self.configAction)

self.resultsAction = QAction(
QIcon(os.path.join(cmd_folder, 'images', 'results.png')),
self.tr('&Results Viewer...'), self.iface.mainWindow())
@@ -123,6 +114,18 @@ def initGui(self):
self.iface.registerMainWindowAction(self.commanderAction,
self.tr('Ctrl+Alt+D'))

self.menu.addSeparator()

self.configAction = QAction(
QIcon(QgsApplication.getThemeIcon('mActionOptions.svg')),
self.tr('&Options...'), self.iface.mainWindow())
self.configAction.setObjectName('configAction')
self.configAction.setMenuRole(QAction.NoRole)

self.configAction.triggered.connect(self.openConfig)
self.iface.registerMainWindowAction(self.configAction, 'Ctrl+Alt+C')
self.menu.addAction(self.configAction)

initializeMenus()
createMenus()

Binary file not shown.

0 comments on commit 14e2b98

Please sign in to comment.
You can’t perform that action at this time.