Commit ec4cbc95 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Showing native dir separators in bookmark tooltip.



To me, forward slashes still look strange on Windows.

Change-Id: I68926de965f94963ccfe71e2040cb0c75c0d05ac
Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
parent 225392cb
......@@ -45,6 +45,7 @@
#include <utils/qtcassert.h>
#include <QtCore/QDebug>
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtGui/QAction>
......@@ -381,7 +382,7 @@ QVariant BookmarkManager::data(const QModelIndex &index, int role) const
else if (role == BookmarkManager::LineText)
return m_bookmarksList.at(index.row())->lineText();
else if (role == Qt::ToolTipRole)
return m_bookmarksList.at(index.row())->filePath();
return QDir::toNativeSeparators(m_bookmarksList.at(index.row())->filePath());
return QVariant();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment