forked from qt-creator/qt-creator
Showing native dir separators in bookmark tooltip.
To me, forward slashes still look strange on Windows. Change-Id: I68926de965f94963ccfe71e2040cb0c75c0d05ac Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user