Enabled tooltips in quickopen

Reviewed-by: Thorbjorn Lindeijer
This commit is contained in:
Denis Dzyubenko
2009-09-16 19:04:25 +02:00
parent e4ff0c8b36
commit 58ab6111ca

View File

@@ -145,7 +145,7 @@ QVariant QuickOpenModel::data(const QModelIndex &index, int role) const
if (!index.isValid() || index.row() >= mEntries.size())
return QVariant();
if (role == Qt::DisplayRole) {
if (role == Qt::DisplayRole || role == Qt::ToolTipRole) {
if (index.column() == 0) {
return mEntries.at(index.row()).displayName;
} else if (index.column() == 1) {