ui: codeview fixes
* fixed file out of date icon to be displayed correctly on windows * added tooltip for edit project button when codeview is in overview state
This commit is contained in:
@@ -173,6 +173,7 @@ void QtCodeFile::addCodeSnippet(const CodeSnippetParams& params)
|
||||
else
|
||||
{
|
||||
std::string text = ResourcePaths::getGuiPath() + "code_view/images/edit.png";
|
||||
title->setToolTip("edit project");
|
||||
|
||||
title->setIcon(utility::colorizePixmap(
|
||||
QPixmap(text.c_str()),
|
||||
@@ -540,7 +541,7 @@ void QtCodeFile::doUpdateTitleBar()
|
||||
if ((!FileSystem::exists(m_filePath.str())) ||
|
||||
(FileSystem::getLastWriteTime(m_filePath) > m_modificationTime))
|
||||
{
|
||||
m_title->setText((m_filePath.fileName() + " \u25CF").c_str());
|
||||
m_title->setText(QString(m_filePath.fileName().c_str()) + " " + QChar(0x25CF));
|
||||
m_title->setToolTip(QString::fromStdString("out of date: " + m_filePath.str()));
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user