diff options
author | Eike Ziller <eike.ziller@digia.com> | 2013-06-03 12:32:14 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@digia.com> | 2013-06-04 09:53:35 +0200 |
commit | 199c13153c3d4cf62fe1bdbdec9000a585e78594 (patch) | |
tree | 9477589f449d2b8e66bf4f5b6664152c444909f7 /src/plugins/bookmarks | |
parent | c7ea186df9e682a8cd113b927dea1340a4c478b6 (diff) | |
download | qt-creator-199c13153c3d4cf62fe1bdbdec9000a585e78594.tar.gz |
Bookmarks: Separate destructive actions.
Destructive actions should be separated by separator in menus to avoid
mis-clicks, we also did that for e.g. the Build menu.
Change-Id: I9dfecefb487d953a1c57ffa41c76a1542dee16c2
Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/bookmarks')
-rw-r--r-- | src/plugins/bookmarks/bookmarkmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/bookmarks/bookmarkmanager.cpp b/src/plugins/bookmarks/bookmarkmanager.cpp index dd8929014d..c4a7d4ca64 100644 --- a/src/plugins/bookmarks/bookmarkmanager.cpp +++ b/src/plugins/bookmarks/bookmarkmanager.cpp @@ -237,9 +237,11 @@ void BookmarkView::contextMenuEvent(QContextMenuEvent *event) QMenu menu; QAction *moveUp = menu.addAction(tr("Move Up")); QAction *moveDown = menu.addAction(tr("Move Down")); + QAction *editNote = menu.addAction(tr("Edit Note")); + menu.addSeparator(); QAction *remove = menu.addAction(tr("&Remove")); + menu.addSeparator(); QAction *removeAll = menu.addAction(tr("Remove All")); - QAction *editNote = menu.addAction(tr("Edit Note")); m_contextMenuIndex = indexAt(event->pos()); if (!m_contextMenuIndex.isValid()) { |