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:
malte_langkabel
2016-04-26 12:21:09 +02:00
parent 038991ce39
commit 4063afb3b0
+2 -1
View File
@@ -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