forked from qt-creator/qt-creator
Enabled tooltips in quickopen
Reviewed-by: Thorbjorn Lindeijer
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user