]> granicus.if.org Git - graphviz/commitdiff
Put version wrapper around use of QKeySequence::Quit. This was not added until 4.6.
authorerg <devnull@localhost>
Thu, 7 Apr 2011 16:12:07 +0000 (16:12 +0000)
committererg <devnull@localhost>
Thu, 7 Apr 2011 16:12:07 +0000 (16:12 +0000)
cmd/gvedit/mainwindow.cpp

index c058801fc208598453ac213bc1ff6a4feffaa9ee..f567353a3c5752d85b6558764dfa133e5243bb26 100644 (file)
@@ -462,7 +462,9 @@ void CMainWindow::actions()
     saveAsAct->setStatusTip(tr("Save the document under a new name"));
     connect(saveAsAct, SIGNAL(triggered()), this, SLOT(slotSaveAs()));
     exitAct = new QAction(tr("E&xit"), this);
+#if (QT_VERSION >= QT_VERSION_CHECK(4, 6, 0))
     exitAct->setShortcuts(QKeySequence::Quit);
+#endif
     exitAct->setStatusTip(tr("Exit the application"));
     connect(exitAct, SIGNAL(triggered()), qApp, SLOT(closeAllWindows()));
     cutAct = new QAction(QIcon(":/images/cut.png"), tr("Cu&t"), this);