mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
plasma: Katie has the API again for alpha channel
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
9ac6ec69f7
commit
05ae44b02b
1 changed files with 0 additions and 6 deletions
|
@ -159,7 +159,6 @@ void RemoveButton::paintEvent(QPaintEvent* event)
|
|||
QPixmap activeIcon = iconEffect.apply(m_icon, KIconLoader::Desktop, KIconLoader::ActiveState);
|
||||
painter.drawPixmap(0, 0, activeIcon);
|
||||
} else {
|
||||
#ifndef QT_KATIE
|
||||
if (m_fadingValue < 255) {
|
||||
// apply an alpha mask respecting the fading value to the icon
|
||||
QPixmap icon = m_icon;
|
||||
|
@ -169,14 +168,9 @@ void RemoveButton::paintEvent(QPaintEvent* event)
|
|||
icon.setAlphaChannel(alphaMask);
|
||||
painter.drawPixmap(0, 0, icon);
|
||||
} else {
|
||||
#else
|
||||
#warning no fading support with Katie
|
||||
#endif
|
||||
// no fading is required
|
||||
painter.drawPixmap(0, 0, m_icon);
|
||||
#ifndef QT_KATIE
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue