mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Fix compilation error
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@3917 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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 *);
|
||||
|
||||
Reference in New Issue
Block a user