diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-01-27 09:41:48 (GMT) |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2010-01-27 09:41:48 (GMT) |
commit | be0807cf52a11f0bc4dc5b06c9a91bc2980667d3 (patch) | |
tree | cb22331f82725d865f3398fda90d763528669f08 /tools | |
parent | 3cddd896db542fdbae219cc937fa91192f79e944 (diff) | |
download | Qt-be0807cf52a11f0bc4dc5b06c9a91bc2980667d3.zip Qt-be0807cf52a11f0bc4dc5b06c9a91bc2980667d3.tar.gz Qt-be0807cf52a11f0bc4dc5b06c9a91bc2980667d3.tar.bz2 |
Designer: Add lower/raise to context menu.
Task-number: QTCREATORBUG-592
Diffstat (limited to 'tools')
-rw-r--r-- | tools/designer/src/components/formeditor/formwindow.cpp | 5 | ||||
-rw-r--r-- | tools/designer/src/components/formeditor/formwindow.h | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/tools/designer/src/components/formeditor/formwindow.cpp b/tools/designer/src/components/formeditor/formwindow.cpp index 2d013c9..9fd084d 100644 --- a/tools/designer/src/components/formeditor/formwindow.cpp +++ b/tools/designer/src/components/formeditor/formwindow.cpp @@ -2219,6 +2219,11 @@ QMenu *FormWindow::createPopupMenu(QWidget *w) QToolBoxHelper::addToolBoxContextMenuActions(toolBox, popup); } + if (manager->actionLower()->isEnabled()) { + popup->addAction(manager->actionLower()); + popup->addAction(manager->actionRaise()); + popup->addSeparator(); + } popup->addAction(manager->actionCut()); popup->addAction(manager->actionCopy()); } diff --git a/tools/designer/src/components/formeditor/formwindow.h b/tools/designer/src/components/formeditor/formwindow.h index eed7417..3eee476 100644 --- a/tools/designer/src/components/formeditor/formwindow.h +++ b/tools/designer/src/components/formeditor/formwindow.h @@ -278,8 +278,6 @@ private: void checkPreviewGeometry(QRect &r); - void finishContextMenu(QWidget *w, QWidget *menuParent, QContextMenuEvent *e); - bool handleContextMenu(QWidget *widget, QWidget *managedWidget, QContextMenuEvent *e); bool handleMouseButtonDblClickEvent(QWidget *widget, QWidget *managedWidget, QMouseEvent *e); bool handleMousePressEvent(QWidget *widget, QWidget *managedWidget, QMouseEvent *e); |