[kdecorations] Drop KCommonDecoration::defaultButtons(Left|Right)

Just forwards to static method in KDecorationOptions, thus any user can
also just use this static method directly.
This commit is contained in:
Martin Gräßlin 2013-10-10 09:38:25 +02:00
parent 529fcf0c46
commit 79d36fe4e9
2 changed files with 2 additions and 24 deletions

View file

@ -99,16 +99,6 @@ KCommonDecoration::~KCommonDecoration()
{
}
QString KCommonDecoration::defaultButtonsLeft() const
{
return KDecorationOptions::defaultTitleButtonsLeft();
}
QString KCommonDecoration::defaultButtonsRight() const
{
return KDecorationOptions::defaultTitleButtonsRight();
}
bool KCommonDecoration::decorationBehaviour(DecorationBehaviour behaviour) const
{
switch(behaviour) {
@ -323,10 +313,10 @@ void KCommonDecoration::resetLayout()
}
addButtons(d->buttonsLeft,
options()->customButtonPositions() ? options()->titleButtonsLeft() : defaultButtonsLeft(),
options()->customButtonPositions() ? options()->titleButtonsLeft() : KDecorationOptions::defaultTitleButtonsLeft(),
true);
addButtons(d->buttonsRight,
options()->customButtonPositions() ? options()->titleButtonsRight() : defaultButtonsRight(),
options()->customButtonPositions() ? options()->titleButtonsRight() : KDecorationOptions::defaultTitleButtonsRight(),
false);
updateLayout();

View file

@ -145,18 +145,6 @@ public:
* The name of the decoration used in the decoration preview.
*/
virtual QString visibleName() const = 0;
/**
* The default title button order on the left.
* @see KDecoration::titleButtonsLeft()
* @see KDecoration::titleButtonsRight()
*/
virtual QString defaultButtonsLeft() const;
/**
* The default title button order on the left.
* @see KDecoration::titleButtonsLeft()
* @see KDecoration::titleButtonsRight()
*/
virtual QString defaultButtonsRight() const;
/**
* This controls whether some specific behaviour should be enabled or not.