Changeset View
Changeset View
Standalone View
Standalone View
src/BookmarkHandler.cpp
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | 149 | { | |||
---|---|---|---|---|---|
150 | return true; | 150 | return true; | ||
151 | } | 151 | } | ||
152 | 152 | | |||
153 | QList<KBookmarkOwner::FutureBookmark> BookmarkHandler::currentBookmarkList() const | 153 | QList<KBookmarkOwner::FutureBookmark> BookmarkHandler::currentBookmarkList() const | ||
154 | { | 154 | { | ||
155 | QList<KBookmarkOwner::FutureBookmark> list; | 155 | QList<KBookmarkOwner::FutureBookmark> list; | ||
156 | list.reserve(_views.size()); | 156 | list.reserve(_views.size()); | ||
157 | 157 | | |||
158 | foreach (ViewProperties *view, _views) { | 158 | for (auto *view : _views) { | ||
159 | list << KBookmarkOwner::FutureBookmark(titleForView(view), urlForView(view), iconForView(view)); | 159 | list << KBookmarkOwner::FutureBookmark(titleForView(view), urlForView(view), iconForView(view)); | ||
160 | } | 160 | } | ||
161 | 161 | | |||
162 | return list; | 162 | return list; | ||
163 | } | 163 | } | ||
164 | 164 | | |||
165 | void BookmarkHandler::setViews(const QList<ViewProperties *> &views) | 165 | void BookmarkHandler::setViews(const QList<ViewProperties *> &views) | ||
166 | { | 166 | { | ||
Show All 17 Lines |