Enable the on-all-desktops button
svn path=/trunk/KDE/kdebase/workspace/; revision=815426
This commit is contained in:
parent
8caa518a12
commit
e3721c8751
3 changed files with 10 additions and 5 deletions
|
@ -132,6 +132,7 @@ bool OxygenFactory::supports( Ability ability ) const
|
||||||
case AbilityButtonMinimize:
|
case AbilityButtonMinimize:
|
||||||
case AbilityButtonMaximize:
|
case AbilityButtonMaximize:
|
||||||
case AbilityButtonClose:
|
case AbilityButtonClose:
|
||||||
|
case AbilityButtonOnAllDesktops:
|
||||||
case AbilityButtonAboveOthers:
|
case AbilityButtonAboveOthers:
|
||||||
case AbilityButtonBelowOthers:
|
case AbilityButtonBelowOthers:
|
||||||
case AbilityButtonSpacer:
|
case AbilityButtonSpacer:
|
||||||
|
|
|
@ -225,6 +225,11 @@ void OxygenButton::drawIcon(QPainter *p, QPalette &pal, ButtonType &type)
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case ButtonSticky:
|
case ButtonSticky:
|
||||||
|
if(isChecked()) {
|
||||||
|
QPen newPen = p->pen();
|
||||||
|
newPen.setColor(KColorScheme(pal.currentColorGroup()).decoration(KColorScheme::HoverColor).color());
|
||||||
|
p->setPen(newPen);
|
||||||
|
}
|
||||||
p->drawPoint(QPointF(10.5,10.5));
|
p->drawPoint(QPointF(10.5,10.5));
|
||||||
break;
|
break;
|
||||||
case ButtonHelp:
|
case ButtonHelp:
|
||||||
|
|
|
@ -192,15 +192,14 @@ KCommonDecorationButton *OxygenClient::createButton(::ButtonType type)
|
||||||
return new OxygenButton(*this, i18n("Close"), ButtonClose);
|
return new OxygenButton(*this, i18n("Close"), ButtonClose);
|
||||||
|
|
||||||
case AboveButton:
|
case AboveButton:
|
||||||
return new OxygenButton(*this, i18n("Keep above others"), ButtonAbove);
|
return new OxygenButton(*this, i18n("Keep Above Others"), ButtonAbove);
|
||||||
|
|
||||||
case BelowButton:
|
case BelowButton:
|
||||||
return new OxygenButton(*this, i18n("Keep below others"), ButtonBelow);
|
return new OxygenButton(*this, i18n("Keep Below Others"), ButtonBelow);
|
||||||
|
|
||||||
/*
|
|
||||||
case OnAllDesktopsButton:
|
case OnAllDesktopsButton:
|
||||||
return new OxygenButton(*this, i18n("All Desktops"), ButtonSticky);
|
return new OxygenButton(*this, i18n("On All Desktops"), ButtonSticky);
|
||||||
*/
|
|
||||||
default:
|
default:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue