/* Do we want anoying popups or not */
notificationEnabled = (bool)config_GetInt( p_intf, "qt-notification" );
+ /**************
+ * Status Bar *
+ **************/
+ createStatusBar();
+
/**************************
* UI and Widgets design
**************************/
setVLCWindowsTitle();
handleMainUi( settings );
+ /************
+ * Menu Bar *
+ ************/
+ QVLCMenu::createMenuBar( this, p_intf, visualSelectorEnabled );
+
#if 0
/* Create a Dock to get the playlist */
dockPL = new QDockWidget( qtr( "Playlist" ), this );
dockPL->hide();
#endif
- /**************************
- * Menu Bar and Status Bar
- **************************/
- QVLCMenu::createMenuBar( this, p_intf, visualSelectorEnabled );
-
- /* StatusBar Creation */
- setStatusBar( createStatusBar() );
-
/********************
* Input Manager *
********************/
* Main UI handling *
*****************************/
-QStatusBar * MainInterface::createStatusBar()
+inline void MainInterface::createStatusBar()
{
- QStatusBar *statusBar = new QStatusBar;
-
/****************
* Status Bar *
****************/
/* Widgets Creation*/
+ QStatusBar *statusBarr = statusBar();
+
TimeLabel *timeLabel = new TimeLabel( p_intf );
nameLabel = new QLabel( this );
nameLabel->setTextInteractionFlags( Qt::TextSelectableByMouse
nameLabel->setFrameStyle( QFrame::Sunken | QFrame::StyledPanel);
/* and adding those */
- statusBar->addWidget( nameLabel, 8 );
- statusBar->addPermanentWidget( speedLabel, 0 );
- statusBar->addPermanentWidget( timeLabel, 0 );
+ statusBarr->addWidget( nameLabel, 8 );
+ statusBarr->addPermanentWidget( speedLabel, 0 );
+ statusBarr->addPermanentWidget( timeLabel, 0 );
/* timeLabel behaviour:
- double clicking opens the goto time dialog
- right-clicking and clicking just toggle between remaining and
elapsed time.*/
CONNECT( timeLabel, timeLabelDoubleClicked(), THEDP, gotoTimeDialog() );
- return statusBar;
}
inline void MainInterface::initSystray()