Changeset View
Changeset View
Standalone View
Standalone View
runners/bookmarks/bookmarksrunner.cpp
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Line(s) | 75 | { | |||
---|---|---|---|---|---|
77 | const QString term = context.query(); | 77 | const QString term = context.query(); | ||
78 | if ((term.length() < 3) && (!context.singleRunnerQueryMode())) { | 78 | if ((term.length() < 3) && (!context.singleRunnerQueryMode())) { | ||
79 | return; | 79 | return; | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | bool allBookmarks = term.compare(i18nc("list of all konqueror bookmarks", "bookmarks"), | 82 | bool allBookmarks = term.compare(i18nc("list of all konqueror bookmarks", "bookmarks"), | ||
83 | Qt::CaseInsensitive) == 0; | 83 | Qt::CaseInsensitive) == 0; | ||
84 | 84 | | |||
85 | QList<BookmarkMatch> matches = m_browser->match(term, allBookmarks); | 85 | const QList<BookmarkMatch> matches = m_browser->match(term, allBookmarks); | ||
86 | foreach(BookmarkMatch match, matches) { | 86 | for(BookmarkMatch match : matches) { | ||
87 | if(!context.isValid()) | 87 | if(!context.isValid()) | ||
88 | return; | 88 | return; | ||
89 | context.addMatch(match.asQueryMatch(this)); | 89 | context.addMatch(match.asQueryMatch(this)); | ||
90 | } | 90 | } | ||
91 | } | 91 | } | ||
92 | 92 | | |||
93 | QString BookmarksRunner::findBrowserName() | 93 | QString BookmarksRunner::findBrowserName() | ||
94 | { | 94 | { | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |