ui: Fixes for code view

* set code font size as pixel value
* properly hide line number area for overview stats in both snippets and single file view
* fixed file title disabled for files in single file view in trial mode
This commit is contained in:
Eberhard Graether
2017-08-01 14:31:03 +02:00
parent 244c9af3c6
commit 96c68c4d0b
6 changed files with 15 additions and 19 deletions
+3 -1
View File
@@ -63,7 +63,9 @@ QtCodeField::QtCodeField(
m_highlighter->highlightDocument();
ApplicationSettings* appSettings = ApplicationSettings::getInstance().get();
setFont(QFont(appSettings->getFontName().c_str(), appSettings->getFontSize()));
QFont font(appSettings->getFontName().c_str());
font.setPixelSize(appSettings->getFontSize());
setFont(font);
setTabStopWidth(appSettings->getCodeTabWidth() * fontMetrics().width('9'));
}