Skip to content
Permalink
Browse files
Use a monospaced font in console command history list
  • Loading branch information
nyalldawson committed Jun 14, 2021
1 parent 2f25d85 commit 8113aac88edf0b92a0eee51aa92be768b582187d
Showing with 7 additions and 1 deletion.
  1. +7 −1 python/console/console_sci.py
@@ -23,7 +23,10 @@
from qgis.PyQt.QtWidgets import QDialog, QMenu, QShortcut, QApplication
from qgis.PyQt.QtGui import QKeySequence, QFontMetrics, QStandardItemModel, QStandardItem, QClipboard
from qgis.PyQt.Qsci import QsciScintilla
from qgis.gui import QgsCodeEditorPython, QgsCodeEditorColorScheme
from qgis.gui import (
QgsCodeEditorPython,
QgsCodeEditorColorScheme
)

import sys
import os
@@ -568,6 +571,9 @@ def __init__(self, parent):
"Python Console - Command History"))
self.listView.setToolTip(QCoreApplication.translate("PythonConsole",
"Double-click on item to execute"))

self.listView.setFont(QgsCodeEditorPython.getMonospaceFont())

self.model = QStandardItemModel(self.listView)

self._reloadHistory()

0 comments on commit 8113aac

Please sign in to comment.