[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kwin/clients/b2
From:       Luciano Montanaro <mikelima () virgilio ! it>
Date:       2004-05-16 13:21:51
Message-ID: 20040516132151.A1BB322AE () office ! kde ! org
[Download RAW message or body]

CVS commit by montanaro: 

Made the "Shade" tooltip dynamic. Now it says "Unshade" when the window is
shaded. Maybe "Roll up" and "Roll down" are better? I'm not sure, since English
is not my mothertongue.
CCMAIL: kwin@kde.org


  M +5 -1      b2client.cpp   1.68


--- kdebase/kwin/clients/b2/b2client.cpp  #1.67:1.68
@@ -293,5 +293,5 @@ void B2Client::init()
         i18n("Minimize"), i18n("Maximize"), 
         i18n("Close"), i18n("Help"),
-        i18n("Shade")
+        isShade() ? i18n("Unshade") : i18n("Shade")
     };
 
@@ -766,4 +766,8 @@ void B2Client::shadeChange()
     g->activate();
     doShape();
+    if (B2Button *b = button[BtnShade]) {
+        QToolTip::remove(b);
+        QToolTip::add(b, isShade() ? i18n("Unshade") : i18n("Shade"));
+    }
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic