summaryrefslogtreecommitdiffstats
path: root/tools/assistant
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2010-09-06 16:00:57 (GMT)
committerkh1 <qt-info@nokia.com>2010-09-07 13:24:36 (GMT)
commit3081c2cb5425e3093bf07cdc1086e4d009c965de (patch)
treedf4a17caeac752b8d54680f2509bd4a8952b5495 /tools/assistant
parent73da1fd9ff3e316dca3367a013f41b2488ac4081 (diff)
downloadQt-3081c2cb5425e3093bf07cdc1086e4d009c965de.zip
Qt-3081c2cb5425e3093bf07cdc1086e4d009c965de.tar.gz
Qt-3081c2cb5425e3093bf07cdc1086e4d009c965de.tar.bz2
Add a boommark toolbar menu item as well.
Diffstat (limited to 'tools/assistant')
-rw-r--r--tools/assistant/tools/assistant/bookmarkmanager.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/assistant/tools/assistant/bookmarkmanager.cpp b/tools/assistant/tools/assistant/bookmarkmanager.cpp
index 85f7e19..7a11ffe 100644
--- a/tools/assistant/tools/assistant/bookmarkmanager.cpp
+++ b/tools/assistant/tools/assistant/bookmarkmanager.cpp
@@ -387,9 +387,15 @@ void BookmarkManager::refreshBookmarkMenu()
SLOT(manageBookmarks()));
bookmarkMenu->addAction(QIcon::fromTheme("bookmark-new"),
tr("Add Bookmark..."), this, SLOT(addBookmark()), QKeySequence(tr("Ctrl+D")));
+
+ bookmarkMenu->addSeparator();
+
+ QModelIndex root = bookmarkModel->index(0, 0, QModelIndex()).parent();
+ buildBookmarksMenu(bookmarkModel->index(0, 0, root), bookmarkMenu);
+
bookmarkMenu->addSeparator();
- const QModelIndex &root = bookmarkModel->index(1, 0, QModelIndex());
+ root = bookmarkModel->index(1, 0, QModelIndex());
for (int i = 0; i < bookmarkModel->rowCount(root); ++i)
buildBookmarksMenu(bookmarkModel->index(i, 0, root), bookmarkMenu);