mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Don't hardcode font family for python editor line numbers
This commit is contained in:
parent
ad946d45c8
commit
5ed37da0b8
@ -40,7 +40,6 @@ class QgsPythonConsoleBase(QgsCodeEditorPython):
|
||||
# Set the default font
|
||||
font = QFontDatabase.systemFont(QFontDatabase.FixedFont)
|
||||
self.setFont(font)
|
||||
self.setMarginsFont(font)
|
||||
|
||||
# Margin 0 is used for line numbers (editor and output)
|
||||
self.setMarginWidth(0, "00000")
|
||||
|
@ -174,7 +174,8 @@ void QgsCodeEditor::setMarginVisible( bool margin )
|
||||
mMargin = margin;
|
||||
if ( margin )
|
||||
{
|
||||
QFont marginFont( QStringLiteral( "Courier" ), 10 );
|
||||
QFont marginFont = getMonospaceFont();
|
||||
marginFont.setPointSize( 10 );
|
||||
setMarginLineNumbers( 1, true );
|
||||
setMarginsFont( marginFont );
|
||||
setMarginWidth( 1, QStringLiteral( "00000" ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user