#include <qmenubar.h>
#include <qapplication.h>
+/*!
+ Constructor
+*/
QtxLogoMgr::QtxLogoMgr( QMenuBar* mb )
: QObject( mb ),
myMenus( mb ),
{
}
+/*!
+ Destructor
+*/
QtxLogoMgr::~QtxLogoMgr()
{
}
generate();
}
+/*!
+ Inserts logo to menu bar
+*/
void QtxLogoMgr::generate()
{
if ( !menuBar() )
QApplication::postEvent( menuBar()->parentWidget(), new QEvent( QEvent::LayoutHint ) );
}
+/*!
+ \return index of found logo
+ \param id - logo id
+*/
int QtxLogoMgr::find( const QString& id ) const
{
int idx = -1;