mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Qt6 compatibility
This commit is contained in:
parent
8f9024bcb6
commit
efdb16ef36
@ -322,7 +322,7 @@ class PythonConsoleWidget(QWidget):
|
||||
self.toggleCommentEditorButton.setIcon(
|
||||
QgsApplication.getThemeIcon(
|
||||
"console/iconCommentEditorConsole.svg",
|
||||
self.palette().color(QPalette.WindowText),
|
||||
self.palette().color(QPalette.ColorRole.WindowText),
|
||||
),
|
||||
)
|
||||
self.toggleCommentEditorButton.setMenuRole(QAction.MenuRole.PreferencesRole)
|
||||
|
@ -263,7 +263,7 @@ class Editor(QgsCodeEditorPython):
|
||||
toggle_comment_action = QAction(
|
||||
QgsApplication.getThemeIcon(
|
||||
"console/iconCommentEditorConsole.svg",
|
||||
self.palette().color(QPalette.WindowText),
|
||||
self.palette().color(QPalette.ColorRole.WindowText),
|
||||
),
|
||||
QCoreApplication.translate("PythonConsole", "Toggle Comment"),
|
||||
menu,
|
||||
|
Loading…
x
Reference in New Issue
Block a user