Skip to content

Commit

Permalink
[GRASS] use monospace font for module's output
Browse files Browse the repository at this point in the history
  • Loading branch information
blazek committed Sep 30, 2015
1 parent 56af106 commit d64a46f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/plugins/grass/qgsgrassmodule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,8 @@ QgsGrassModule::QgsGrassModule( QgsGrassTools *tools, QString moduleName, QgisIn
QgsDebugMsg( "called" );

setupUi( this );
// use fixed width font because module's output may be formated
mOutputTextBrowser->setStyleSheet( "font-family: Monospace; font-size: 9pt;" );
lblModuleName->setText( tr( "Module: %1" ).arg( moduleName ) );
mTools = tools;
mIface = iface;
Expand Down Expand Up @@ -860,9 +862,7 @@ void QgsGrassModule::readStdout()
while ( mProcess.canReadLine() )
{
QByteArray ba = mProcess.readLine();
//line = QString::fromUtf8( ba ).replace( '\n', "" );
line = QString::fromLocal8Bit( ba ).replace( '\n', "" );
//QgsDebugMsg(QString("line: '%1'").arg(line));

// GRASS_INFO_PERCENT is catched here only because of bugs in GRASS,
// normaly it should be printed to stderr
Expand All @@ -873,7 +873,7 @@ void QgsGrassModule::readStdout()
}
else
{
mOutputTextBrowser->append( "<pre>" + line + "</pre>" );
mOutputTextBrowser->append( line );
}
}
}
Expand All @@ -888,9 +888,7 @@ void QgsGrassModule::readStderr()
while ( mProcess.canReadLine() )
{
QByteArray ba = mProcess.readLine();
//line = QString::fromUtf8( ba ).replace( '\n', "" );
line = QString::fromLocal8Bit( ba ).replace( '\n', "" );
//QgsDebugMsg(QString("line: '%1'").arg(line));

QString text, html;
int percent;
Expand Down

0 comments on commit d64a46f

Please sign in to comment.