visualSelectorEnabled= settings->value( "visual-selector", false ).toBool();
/* UI */
- setWindowTitle( qtr( "VLC media player" ) );
+ setVLCWindowsTitle();
handleMainUi( settings );
QVLCMenu::createMenuBar( this, p_intf, playlistEmbeddedFlag,
advControlsEnabled, visualSelectorEnabled );
p_intf->pf_control_window = NULL;
}
+void MainInterface::setVLCWindowsTitle( QString aTitle )
+{
+ if( aTitle.isEmpty() )
+ {
+ this->setWindowTitle( qtr( "VLC media player" ) );
+ }
+ else
+ {
+ this->setWindowTitle( aTitle + " - " + qtr( "VLC media player" ) );
+ }
+}
+
void MainInterface::handleMainUi( QSettings *settings )
{
QWidget *main = new QWidget( this );
void MainInterface::setName( QString name )
{
nameLabel->setText( " " + name+" " );
+ setVLCWindowsTitle( name );
}
void MainInterface::setStatus( int status )
unsigned int *pi_height );
void releaseVideo( void *);
int controlVideo( void *p_window, int i_query, va_list args );
+ void setVLCWindowsTitle( QString title = "" );
protected:
void resizeEvent( QResizeEvent * );
void dropEvent( QDropEvent *);