From ee376c68c31a3e524d8cbf9332839798bd9992cf Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 29 Mar 2014 19:05:22 +0000 Subject: [PATCH] Add format button in file toolbar --- source/app/plaYUVerApp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/app/plaYUVerApp.cpp b/source/app/plaYUVerApp.cpp index 540e732..a4d2bf6 100644 --- a/source/app/plaYUVerApp.cpp +++ b/source/app/plaYUVerApp.cpp @@ -424,6 +424,7 @@ Void plaYUVerApp::updateMenus() { Bool hasSubWindow = ( activeSubWindow() != 0 ); m_arrayActions[SAVE_ACT]->setEnabled( hasSubWindow ); + m_arrayActions[FORMAT_ACT]->setEnabled( hasSubWindow ); m_arrayActions[CLOSE_ACT]->setEnabled( hasSubWindow ); m_arrayActions[CLOSEALL_ACT]->setEnabled( hasSubWindow ); actionTile->setEnabled( hasSubWindow ); @@ -513,7 +514,7 @@ Void plaYUVerApp::createActions() connect( m_arrayActions[SAVE_ACT], SIGNAL( triggered() ), this, SLOT( save() ) ); m_arrayActions[FORMAT_ACT] = new QAction( tr( "&Format" ), this ); - m_arrayActions[FORMAT_ACT]->setIcon( QIcon( ":/images/configureformat.png" ) ); + m_arrayActions[FORMAT_ACT]->setIcon( QIcon( ":/images/configuredialog.png" ) ); m_arrayActions[FORMAT_ACT]->setStatusTip( tr( "Open format dialog" ) ); connect( m_arrayActions[FORMAT_ACT], SIGNAL( triggered() ), this, SLOT( format() ) ); @@ -700,6 +701,7 @@ Void plaYUVerApp::createToolBars() toolbarFile = addToolBar( tr( "File" ) ); toolbarFile->addAction( m_arrayActions[OPEN_ACT] ); toolbarFile->addAction( m_arrayActions[SAVE_ACT] ); + toolbarFile->addAction( m_arrayActions[FORMAT_ACT] ); toolbarFile->addAction( m_arrayActions[CLOSE_ACT] ); toolbarView = addToolBar( tr( "Zoom" ) );