enBat = Toolbar->addAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ) );
QAction *enBat = new QAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ), Toolbar );
trayIconMenu.addAction( enBat );
C++ (Qt)enBat = Toolbar->addAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ) );
C++ (Qt)Toolbar->removeAction(enBat);
C++ (Qt)QAction *enBat = new QAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ), Toolbar );
QAction * enBat;QToolButton * scButton;
enBat = Toolbar->addAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ) ); enBat->setCheckable( true );
scButton = new QToolButton( Toolbar ); scButton->setCheckable( true ); scButton->setDefaultAction( enBat); Toolbar->addWidget( scButton);
QAction *enBat = new QAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ), Toolbar ); enBat->setCheckable( true ); scButton = new QToolButton( Toolbar ); scButton->setCheckable( true ); scButton->setDefaultAction( enBat); Toolbar->addWidget( scButton);
C++ (Qt)enBat = new QAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ), this ); enBat->setCheckable( true ); scButton = new QToolButton( Toolbar ); scButton->setCheckable( true ); scButton->setDefaultAction( enBat); Toolbar->addWidget( scButton);
enBat = new QAction( QIcon( ":/icons/enbat.png" ), tr( "En Bat" ), this );
enBat->setVisible( cfg.pref.set );
scButton->setVisible( cfg.pref.set );