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:
@@ -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'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user