diff --git a/libkdecorations/kcommondecoration.cpp b/libkdecorations/kcommondecoration.cpp index 52585f67af..e64de12553 100644 --- a/libkdecorations/kcommondecoration.cpp +++ b/libkdecorations/kcommondecoration.cpp @@ -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(); diff --git a/libkdecorations/kcommondecoration.h b/libkdecorations/kcommondecoration.h index 199e71f59e..2e0aad87ec 100644 --- a/libkdecorations/kcommondecoration.h +++ b/libkdecorations/kcommondecoration.h @@ -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.