From 7f9e658fb3f8652f46a31839cb6e431464f56cde Mon Sep 17 00:00:00 2001 From: Sandro Giessl Date: Mon, 14 Mar 2005 09:33:29 +0000 Subject: [PATCH] save reset calls in setSize() etc., inform buttons about what has changed in reset() so they can better optimize for performance svn path=/trunk/kdebase/kwin/; revision=397485 --- lib/kcommondecoration.cpp | 24 +++++++++++++++++------- lib/kcommondecoration.h | 17 ++++++++++++++++- 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/lib/kcommondecoration.cpp b/lib/kcommondecoration.cpp index b5b4d7c67a..56b8e8ff00 100644 --- a/lib/kcommondecoration.cpp +++ b/lib/kcommondecoration.cpp @@ -193,6 +193,12 @@ void KCommonDecoration::updateButtons() const if (m_button[n]) m_button[n]->update(); } +void KCommonDecoration::resetButtons() const +{ + for (int n=0; nreset(KCommonDecorationButton::ManualReset); +} + void KCommonDecoration::resetLayout() { for (int n=0; n