ui: usability improvements

* darkened red of error message in status bar
* added status error when not defined startupproject
* added tooltips for remaining search view buttons
* added filepath as tooptip for title in code view
* opening file when clicking title in code view
This commit is contained in:
Eberhard Graether
2015-05-03 00:52:04 +02:00
parent aa0c40b213
commit 7231ae36f6
9 changed files with 62 additions and 20 deletions
+3 -3
View File
@@ -39,12 +39,12 @@ void QtCodeFileList::addCodeSnippet(
const std::string& code,
const TokenLocationFile& locationFile
){
std::string fileName = locationFile.getFilePath().fileName();
FilePath filePath = locationFile.getFilePath();
QtCodeFile* file = nullptr;
for (std::shared_ptr<QtCodeFile> filePtr : m_files)
{
if (filePtr->getFileName() == fileName)
if (filePtr->getFilePath() == filePath)
{
file = filePtr.get();
break;
@@ -53,7 +53,7 @@ void QtCodeFileList::addCodeSnippet(
if (!file)
{
std::shared_ptr<QtCodeFile> filePtr = std::make_shared<QtCodeFile>(locationFile.getFilePath().absoluteStr(), this);
std::shared_ptr<QtCodeFile> filePtr = std::make_shared<QtCodeFile>(locationFile.getFilePath(), this);
m_files.push_back(filePtr);
file = filePtr.get();