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
+1 -1
View File
@@ -113,7 +113,7 @@ void QtCodeFileSingle::addCodeSnippet(const CodeSnippetParams& params)
file.title = params.title;
}
file.area = std::make_shared<QtCodeArea>(1, params.code, params.locationFile, m_navigator, this);
file.area = std::make_shared<QtCodeArea>(1, params.code, params.locationFile, m_navigator, !params.reduced, this);
connect(file.area->verticalScrollBar(), &QScrollBar::valueChanged, m_navigator, &QtCodeNavigator::scrolled);
m_fileDatas.emplace(file.filePath, file);