set the monospace font crossplattform

This commit is contained in:
Peinthor Rene
2013-01-29 23:10:27 +01:00
parent 6765737bf4
commit 158e35ae65

View File

@@ -104,6 +104,15 @@ void MainWindow::init()
// Set other window settings
setAcceptDrops(true);
setWindowTitle(QApplication::applicationName());
// Fonts for edit fields
QFont font("Monospace");
font.setStyleHint(QFont::TypeWriter);
font.setPointSize(8);
ui->sqlTextEdit->setFont(font);
ui->editLogApplication->setFont(font);
ui->editLogUser->setFont(font);
}
//***********************************************************