|
|
|
@ -95,6 +95,9 @@ KSystemTray::KSystemTray( QWidget* parent, const char* name )
|
|
|
|
|
}
|
|
|
|
|
setCaption( KGlobal::instance()->aboutData()->programName());
|
|
|
|
|
setAlignment( alignment() | Qt::AlignVCenter | Qt::AlignHCenter );
|
|
|
|
|
|
|
|
|
|
// Handle the possibility that the requested system tray size is something other than 22x22 pixels, per the Free Desktop specifications
|
|
|
|
|
setScaledContents(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
KSystemTray::~KSystemTray()
|
|
|
|
@ -315,6 +318,11 @@ QPixmap KSystemTray::loadIcon( const QString &icon, KInstance *instance )
|
|
|
|
|
return instance->iconLoader()->loadIcon( icon, KIcon::Panel, iconWidth );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QPixmap KSystemTray::loadSizedIcon( const QString &icon, int iconWidth, KInstance *instance )
|
|
|
|
|
{
|
|
|
|
|
return instance->iconLoader()->loadIcon( icon, KIcon::Panel, iconWidth );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void KSystemTray::setPixmap( const QPixmap& p )
|
|
|
|
|
{
|
|
|
|
|
QLabel::setPixmap( p );
|
|
|
|
|