diff options
author | con <qtc-committer@nokia.com> | 2010-07-26 14:43:48 +0200 |
---|---|---|
committer | con <qtc-committer@nokia.com> | 2010-07-26 14:45:07 +0200 |
commit | fb10a2345d1f013fd42470ce41e4b70b4c0516f0 (patch) | |
tree | 6b09c502ef888541ad7856955f6ac4d08b389065 /src/plugins/find/searchresulttreemodel.cpp | |
parent | c7278acda0c3135851e10effe4246a28539af95d (diff) | |
download | qt-creator-fb10a2345d1f013fd42470ce41e4b70b4c0516f0.tar.gz |
Re-enable expanding on double-click in search results pane.
For some items with Symbols Search this will now both expand and jump to the
result.
Diffstat (limited to 'src/plugins/find/searchresulttreemodel.cpp')
-rw-r--r-- | src/plugins/find/searchresulttreemodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/find/searchresulttreemodel.cpp b/src/plugins/find/searchresulttreemodel.cpp index 705dedcf4e..a03922114d 100644 --- a/src/plugins/find/searchresulttreemodel.cpp +++ b/src/plugins/find/searchresulttreemodel.cpp @@ -217,6 +217,9 @@ QVariant SearchResultTreeModel::data(const SearchResultTreeItem *row, int role) case ItemDataRoles::SearchTermLengthRole: result = row->item.textMarkLength; break; + case ItemDataRoles::IsGeneratedRole: + result = row->isGenerated(); + break; // TODO this looks stupid in case of symbol tree, is it necessary? // case Qt::BackgroundRole: // if (row->parent() && row->parent()->parent()) |