Skip to content

Commit

Permalink
[raster calc] use a monospace font for the expression editor (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Feb 8, 2018
1 parent 605bb75 commit 90e353b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgsrastercalcdialog.cpp
Expand Up @@ -26,6 +26,7 @@
#include "gdal.h"

#include <QFileDialog>
#include <QFontDatabase>

QgsRasterCalcDialog::QgsRasterCalcDialog( QWidget *parent, Qt::WindowFlags f ): QDialog( parent, f )
{
Expand Down Expand Up @@ -74,6 +75,8 @@ QgsRasterCalcDialog::QgsRasterCalcDialog( QWidget *parent, Qt::WindowFlags f ):
//grab default crs from first raster
mCrsSelector->setCrs( mAvailableRasterBands.at( 0 ).raster->crs() );
}

mExpressionTextEdit->setCurrentFont( QFontDatabase::systemFont( QFontDatabase::FixedFont ) );
}

QgsRasterCalcDialog::~QgsRasterCalcDialog()
Expand Down

0 comments on commit 90e353b

Please sign in to comment.