diff options
author | Shrikant Dhumal <teck.shri@gmail.com> | 2015-09-03 20:07:27 -0700 |
---|---|---|
committer | Shrikant Dhumal <teck.shri@gmail.com> | 2015-09-09 07:33:58 +0000 |
commit | 924d4aefd5315c11d0637e2ba1a6b02246e89c44 (patch) | |
tree | 1d23be8b8b86955ec21130f847a0bc92b14d44fa /examples/widgets/mainwindows/menus/mainwindow.cpp | |
parent | 933e3e886fe51cc1feb542615b4700294182cc47 (diff) |
Diffstat (limited to 'examples/widgets/mainwindows/menus/mainwindow.cpp')
-rw-r--r-- | examples/widgets/mainwindows/menus/mainwindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/mainwindows/menus/mainwindow.cpp b/examples/widgets/mainwindows/menus/mainwindow.cpp index d487e3a277..fb06bc8ad0 100644 --- a/examples/widgets/mainwindows/menus/mainwindow.cpp +++ b/examples/widgets/mainwindows/menus/mainwindow.cpp @@ -83,6 +83,7 @@ MainWindow::MainWindow() //! [2] //! [3] +#ifndef QT_NO_CONTEXTMENU void MainWindow::contextMenuEvent(QContextMenuEvent *event) { QMenu menu(this); @@ -91,6 +92,7 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event) menu.addAction(pasteAct); menu.exec(event->globalPos()); } +#endif // QT_NO_CONTEXTMENU //! [3] void MainWindow::newFile() |