vlc_linux/vlc-3.0.16/modules/gui/qt/main_interface.cpp
/**
 * Updates the name of the systray Icon tooltip.
 * Doesn't check if the systray exists, check before you call it.
 **/
Updates the name of the systray Icon tooltip.
Doesn't check if the systray exists, check before you call it.
Updates the name of the systray Icon tooltip . Doesn ' t check if the systray exists check before you call it .
void MainInterface::updateSystrayTooltipName( const QString& name )
{
    if( name.isEmpty() )
    {
        sysTray->setToolTip( qtr( "VLC media player" ) );
    }
    else
    {
        sysTray->setToolTip( name );
        if( ( i_notificationSetting == NOTIFICATION_ALWAYS ) ||
            ( i_notificationSetting == NOTIFICATION_MINIMIZED && (isMinimized() || isHidden()) ) )
        {
            sysTray->showMessage( qtr( "VLC media player" ), name,
                    QSystemTrayIcon::NoIcon, 3000 );
        }
    }
    VLCMenuBar::updateSystrayMenu( this, p_intf );
}
void MainInterface :: updateSystrayTooltipName ( const QString & name ) { if ( name . isEmpty ( ) ) { sysTray -> setToolTip ( qtr ( " " ) ) ; } else { sysTray -> setToolTip ( name ) ; if ( ( i_notificationSetting == NOTIFICATION_ALWAYS ) || ( i_notificationSetting == NOTIFICATION_MINIMIZED && ( isMinimized ( ) || isHidden ( ) ) ) ) { sysTray -> showMessage ( qtr ( " " ) , name , QSystemTrayIcon :: NoIcon , 3000 ) ; } } VLCMenuBar :: updateSystrayMenu ( this , p_intf ) ; }
Updates the name of the systray Icon tooltip.
Updates the name of the systray Icon tooltip .