From 326e9b2b41799879c2a93117704756cb1c99d88a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 2 Aug 2005 12:46:18 +0000 Subject: [PATCH] Sync with maximizeChange(). If a decoration has only two button states for the four maximize states, it should show the maximized one only for the fully maximized state. svn path=/trunk/KDE/kdebase/kwin/; revision=442352 --- lib/kcommondecoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kcommondecoration.cpp b/lib/kcommondecoration.cpp index 1a3e8238dc..d6d838e0b7 100644 --- a/lib/kcommondecoration.cpp +++ b/lib/kcommondecoration.cpp @@ -373,7 +373,7 @@ void KCommonDecoration::addButtons(ButtonContainer &btnContainer, const QString& btn = createButton(MaxButton); if (!btn) break; btn->setRealizeButtons(Qt::LeftButton|Qt::MidButton|Qt::RightButton); - const bool max = maximizeMode()!=MaximizeRestore; + const bool max = maximizeMode()==MaximizeFull; btn->setTipText(max?i18n("Restore"):i18n("Maximize") ); btn->setToggleButton(true); btn->setOn( max );