mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
Merge pull request #60480 from alexbruy/processing-script-editor-typos
add missed import and fix getThemeIcon() call (follow-up #60261)
This commit is contained in:
commit
6b4ffb39a8
@ -27,6 +27,7 @@ import warnings
|
||||
|
||||
from qgis.PyQt import uic, sip
|
||||
from qgis.PyQt.QtCore import Qt
|
||||
from qgis.PyQt.QtGui import QPalette
|
||||
from qgis.PyQt.QtWidgets import QMessageBox, QFileDialog, QVBoxLayout
|
||||
|
||||
from qgis.gui import QgsGui, QgsErrorDialog, QgsCodeEditorWidget
|
||||
@ -116,8 +117,10 @@ class ScriptEditorDialog(BASE, WIDGET):
|
||||
QgsApplication.getThemeIcon("/mActionDecreaseFont.svg")
|
||||
)
|
||||
self.actionToggleComment.setIcon(
|
||||
QgsApplication.getThemeIcon("console/iconCommentEditorConsole.svg"),
|
||||
self.palette().color(QPalette.ColorRole.WindowText),
|
||||
QgsApplication.getThemeIcon(
|
||||
"console/iconCommentEditorConsole.svg",
|
||||
self.palette().color(QPalette.ColorRole.WindowText),
|
||||
)
|
||||
)
|
||||
|
||||
# Connect signals and slots
|
||||
|
Loading…
x
Reference in New Issue
Block a user