[qet] [3917] Fix compilation error

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 3917
Author:   blacksun
Date:     2015-04-18 20:49:31 +0200 (Sat, 18 Apr 2015)
Log Message:
-----------
Fix compilation error

Modified Paths:
--------------
    trunk/sources/editor/qetelementeditor.cpp
    trunk/sources/editor/qetelementeditor.h

Modified: trunk/sources/editor/qetelementeditor.cpp
===================================================================
--- trunk/sources/editor/qetelementeditor.cpp	2015-04-18 11:02:10 UTC (rev 3916)
+++ trunk/sources/editor/qetelementeditor.cpp	2015-04-18 18:49:31 UTC (rev 3917)
@@ -399,7 +399,7 @@
  * @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 @@
 		menu.addMenu(paste_from_menu);
 		menu.addSeparator();
 		menu.addActions(m_depth_ag -> actions());
-		menu.exec(event -> globalPos());
+		menu.exec(p);
  }
 
 

Modified: trunk/sources/editor/qetelementeditor.h
===================================================================
--- trunk/sources/editor/qetelementeditor.h	2015-04-18 11:02:10 UTC (rev 3916)
+++ trunk/sources/editor/qetelementeditor.h	2015-04-18 18:49:31 UTC (rev 3917)
@@ -111,7 +111,7 @@
 	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 *);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/