Skip to content

Commit

Permalink
Qt6 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn authored and nyalldawson committed Jan 30, 2025
1 parent 98d1a73 commit cc9c0ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/console/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def __init__(self, parent=None):
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)
Expand Down
2 changes: 1 addition & 1 deletion python/console/console_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ def contextMenuEvent(self, e):
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,
Expand Down

0 comments on commit cc9c0ac

Please sign in to comment.