|
|
|
@ -1105,8 +1105,8 @@ KSMShutdownIPDlg::KSMShutdownIPDlg(TQWidget* parent)
|
|
|
|
|
TQWidget* ticon = new TQWidget( frame );
|
|
|
|
|
KIconLoader * ldr = KGlobal::iconLoader();
|
|
|
|
|
TQPixmap trinityPixmap = ldr->loadIcon("kmenu", KIcon::Panel, KIcon::SizeLarge, KIcon::DefaultState, 0L, true);
|
|
|
|
|
if (TQPaintDevice::x11AppDepth() == 32) {
|
|
|
|
|
// Manually draw the alpha portions onto the widget background color...
|
|
|
|
|
|
|
|
|
|
// Manually draw the alpha portions of the icon onto the widget background color...
|
|
|
|
|
TQRgb backgroundRgb = ticon->paletteBackgroundColor().rgb();
|
|
|
|
|
TQImage correctedImage = trinityPixmap.convertToImage();
|
|
|
|
|
correctedImage = correctedImage.convertDepth(32);
|
|
|
|
@ -1126,7 +1126,7 @@ KSMShutdownIPDlg::KSMShutdownIPDlg(TQWidget* parent)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trinityPixmap.convertFromImage(correctedImage);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ticon->setBackgroundPixmap(trinityPixmap);
|
|
|
|
|
ticon->setMinimumSize(trinityPixmap.size());
|
|
|
|
|
ticon->setMaximumSize(trinityPixmap.size());
|
|
|
|
|