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:
@@ -31,6 +31,8 @@ QtCodeFileTitleButton::~QtCodeFileTitleButton()
|
||||
|
||||
void QtCodeFileTitleButton::setFilePath(const FilePath& filePath)
|
||||
{
|
||||
setEnabled(true);
|
||||
|
||||
m_filePath = filePath;
|
||||
setText("");
|
||||
|
||||
@@ -89,6 +91,7 @@ void QtCodeFileTitleButton::setProject(const std::string& name)
|
||||
|
||||
if (Application::getInstance()->isInTrial())
|
||||
{
|
||||
setIcon(QIcon());
|
||||
setEnabled(false);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user