Logo Search packages:      
Sourcecode: lastfm version File versions  Download package

TrayIcon::TrayIcon ( const QPixmap &  icon,
const QString &  tooltip,
QMenu *  popup = 0,
QObject *  parent = 0,
const char *  name = 0 
)

Creates a TrayIcon object displaying icon and tooltip, and opening popup when clicked with the right mousebutton. parent and name are propagated to the QObject constructor. The icon is initially invisible.

See also:
show

Definition at line 52 of file trayicon.cpp.

: QObject(parent), pop(popup), pm(icon), tip(tooltip), d(0)
{
        if ( name )
                setObjectName( name );
        v_isWMDock = FALSE;

        if ( !pm.width() || !pm.height() )
                pm = QPixmap( 16, 16 );
}


Generated by  Doxygen 1.6.0   Back to index