From 1c60fa5f87529e27f8753275c3e84c7acd051b43 Mon Sep 17 00:00:00 2001 From: blacksun Date: Sat, 18 Apr 2015 18:49:31 +0000 Subject: [PATCH] Fix compilation error git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3917 bfdf4180-ca20-0410-9c96-a3a8aa849046 --- sources/editor/qetelementeditor.cpp | 4 ++-- sources/editor/qetelementeditor.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/editor/qetelementeditor.cpp b/sources/editor/qetelementeditor.cpp index bf7bb7d1b..3105cb663 100644 --- a/sources/editor/qetelementeditor.cpp +++ b/sources/editor/qetelementeditor.cpp @@ -399,7 +399,7 @@ void QETElementEditor::setupMenus() { * @brief QETElementEditor::contextMenuEvent * @param event */ -void QETElementEditor::contextMenu(QContextMenuEvent *event) { +void QETElementEditor::contextMenu(QPoint p) { QMenu menu(this); menu.addAction(undo); menu.addAction(redo); @@ -416,7 +416,7 @@ void QETElementEditor::contextMenu(QContextMenuEvent *event) { menu.addMenu(paste_from_menu); menu.addSeparator(); menu.addActions(m_depth_ag -> actions()); - menu.exec(event -> globalPos()); + menu.exec(p); } diff --git a/sources/editor/qetelementeditor.h b/sources/editor/qetelementeditor.h index 9b19f0218..7bd4ff03a 100644 --- a/sources/editor/qetelementeditor.h +++ b/sources/editor/qetelementeditor.h @@ -111,7 +111,7 @@ class QETElementEditor : public QETMainWindow { void writeSettings(); static QPointF pasteOffset(); static QString getOpenElementFileName(QWidget * = 0, const QString & = QString()); - void contextMenu(QContextMenuEvent *event); + void contextMenu(QPoint p); protected: void closeEvent(QCloseEvent *);