Minor bug fix and code arrangement
This commit is contained in:
1 parent
8bc335c80d
commit
bb03e84125
2 files changed
+6
-5
No files matched your search
@@ -228,6 +228,7 @@ void plaYUVerApp::selectModule( QAction *curr_action )
|
||||
interfaceChild->zoomToFit();
|
||||
interfaceChild->getViewArea()->setTool( m_appTool );
|
||||
}
|
||||
updateFrameProperties();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -939,6 +940,10 @@ Void plaYUVerApp::createMenus()
|
||||
actionPopupMenu->setText( tr( "&Toolbars/Docks" ) );
|
||||
}
|
||||
|
||||
m_arrayMenu[TOOLS_MENU] = menuBar()->addMenu( tr( "Tools" ) );
|
||||
m_arrayMenu[TOOLS_MENU]->addAction( m_arrayActions[NAVIGATION_TOOL_ACT] );
|
||||
m_arrayMenu[TOOLS_MENU]->addAction( m_arrayActions[SELECTION_TOOL_ACT] );
|
||||
|
||||
m_arrayMenu[VIDEO_MENU] = menuBar()->addMenu( tr( "Video" ) );
|
||||
m_arrayMenu[VIDEO_MENU]->addAction( m_arrayActions[PLAY_ACT] );
|
||||
m_arrayMenu[VIDEO_MENU]->addAction( m_arrayActions[PAUSE_ACT] );
|
||||
@@ -951,10 +956,6 @@ Void plaYUVerApp::createMenus()
|
||||
QMenu* modules_menu = m_pcModulesHandle->createMenus( menuBar() );
|
||||
connect( modules_menu, SIGNAL( triggered(QAction *) ), this, SLOT( selectModule(QAction *) ) );
|
||||
|
||||
m_arrayMenu[TOOLS_MENU] = menuBar()->addMenu( tr( "Tools" ) );
|
||||
m_arrayMenu[TOOLS_MENU]->addAction( m_arrayActions[NAVIGATION_TOOL_ACT] );
|
||||
m_arrayMenu[TOOLS_MENU]->addAction( m_arrayActions[SELECTION_TOOL_ACT] );
|
||||
|
||||
m_arrayMenu[WINDOW_MENU] = menuBar()->addMenu( tr( "&Window" ) );
|
||||
updateWindowMenu();
|
||||
connect( m_arrayMenu[WINDOW_MENU], SIGNAL( aboutToShow() ), this, SLOT( updateWindowMenu() ) );
|
||||
|
||||
@@ -158,8 +158,8 @@ private:
|
||||
{
|
||||
FILE_MENU = 0,
|
||||
VIEW_MENU,
|
||||
VIDEO_MENU,
|
||||
TOOLS_MENU,
|
||||
VIDEO_MENU,
|
||||
WINDOW_MENU,
|
||||
ABOUT_MENU,
|
||||
TOTAL_MENUS,
|
||||
|
||||
Reference in new issue
Block a user