[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:
parent
529fcf0c46
commit
79d36fe4e9
2 changed files with 2 additions and 24 deletions
|
@ -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
|
bool KCommonDecoration::decorationBehaviour(DecorationBehaviour behaviour) const
|
||||||
{
|
{
|
||||||
switch(behaviour) {
|
switch(behaviour) {
|
||||||
|
@ -323,10 +313,10 @@ void KCommonDecoration::resetLayout()
|
||||||
}
|
}
|
||||||
|
|
||||||
addButtons(d->buttonsLeft,
|
addButtons(d->buttonsLeft,
|
||||||
options()->customButtonPositions() ? options()->titleButtonsLeft() : defaultButtonsLeft(),
|
options()->customButtonPositions() ? options()->titleButtonsLeft() : KDecorationOptions::defaultTitleButtonsLeft(),
|
||||||
true);
|
true);
|
||||||
addButtons(d->buttonsRight,
|
addButtons(d->buttonsRight,
|
||||||
options()->customButtonPositions() ? options()->titleButtonsRight() : defaultButtonsRight(),
|
options()->customButtonPositions() ? options()->titleButtonsRight() : KDecorationOptions::defaultTitleButtonsRight(),
|
||||||
false);
|
false);
|
||||||
|
|
||||||
updateLayout();
|
updateLayout();
|
||||||
|
|
|
@ -145,18 +145,6 @@ public:
|
||||||
* The name of the decoration used in the decoration preview.
|
* The name of the decoration used in the decoration preview.
|
||||||
*/
|
*/
|
||||||
virtual QString visibleName() const = 0;
|
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.
|
* This controls whether some specific behaviour should be enabled or not.
|
||||||
|
|
Loading…
Reference in a new issue