From 934437dddcefdedfba03c54c6d309bac024404c4 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Tue, 31 Aug 2021 20:47:48 -0400 Subject: [PATCH] Added AVI debug as an optional compile time setting to Qt GUI. --- src/drivers/Qt/ConsoleWindow.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/drivers/Qt/ConsoleWindow.cpp b/src/drivers/Qt/ConsoleWindow.cpp index ba487177..11ca2388 100644 --- a/src/drivers/Qt/ConsoleWindow.cpp +++ b/src/drivers/Qt/ConsoleWindow.cpp @@ -1765,14 +1765,17 @@ void consoleWin_t::createMainMenu(void) aviMenu->addAction(stopAviAct); - //// Movie -> Avi Recording -> Debug - //act = new QAction(tr("&Debug"), this); - ////act->setShortcut( QKeySequence(tr("Shift+F5"))); - //act->setStatusTip(tr("AVI Debug")); - ////act->setIcon( style()->standardIcon( QStyle::SP_MediaStop ) ); - //connect(act, SIGNAL(triggered()), this, SLOT(aviDebugFile(void)) ); - // - //aviMenu->addAction(act); +//#define AVI_DEBUG +#ifdef AVI_DEBUG + // Movie -> Avi Recording -> Debug + act = new QAction(tr("&Debug"), this); + //act->setShortcut( QKeySequence(tr("Shift+F5"))); + act->setStatusTip(tr("AVI Debug")); + //act->setIcon( style()->standardIcon( QStyle::SP_MediaStop ) ); + connect(act, SIGNAL(triggered()), this, SLOT(aviDebugFile(void)) ); + + aviMenu->addAction(act); +#endif // Movie -> Avi Recording -> Video Format subMenu = aviMenu->addMenu( tr("Video Format") );