enable and desable child's
Definition at line 304 of file aimenubar.cpp. 00305 { 00306 //~ file menu 00307 { 00308 QAction * fileSave = this->findChild< QAction * >( "fileSave"); 00309 QAction * fileSaveAs= this->findChild< QAction * >( "fileSaveAs"); 00310 QAction * filePrint = this->findChild< QAction * >( "filePrint"); 00311 QAction * fileClear = this->findChild< QAction * >( "fileClear"); 00312 00313 fileSave->setEnabled ( e ); 00314 fileSaveAs->setEnabled ( e ); 00315 filePrint->setEnabled ( e ); 00316 fileClear->setEnabled ( e ); 00317 } 00318 00319 //~ zoom menu 00320 { 00321 QMenu * zoomMenu = this->findChild< QMenu * >( "zoomMenu" ) ; 00322 zoomMenu->setEnabled ( e ); 00323 } 00324 00325 //~ image menu 00326 { 00327 QMenu * imageMenu = this->findChild< QMenu * >( "imageMenu" ) ; 00328 imageMenu->setEnabled ( e ); 00329 } 00330 } |