[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 18:27:26
Message-ID: 20040516182726.C816C90E3 () office ! kde ! org
[Download RAW message or body]

CVS commit by montanaro: 

Reindentation urge.


  M +76 -74    b2client.cpp   1.69


--- kdebase/kwin/clients/b2/b2client.cpp  #1.68:1.69
@@ -377,5 +377,6 @@ void B2Client::addButtons(const QString&
             case 'M':  // Menu button
                 if (!button[BtnMenu]) {
-                    button[BtnMenu] = new B2Button(this, tb, tips[BtnMenu], \
LeftButton|RightButton); +                button[BtnMenu] = new B2Button(this, tb, \
tips[BtnMenu],  +                        LeftButton | RightButton);
                     button[BtnMenu]->setPixmaps(P_MENU);
                     button[BtnMenu]->setUseMiniIcon();
@@ -416,5 +417,6 @@ void B2Client::addButtons(const QString&
             case 'A':  // Maximize button
                 if (isMaximizable() && (!button[BtnMax])) {
-                    button[BtnMax]= new B2Button(this, tb, tips[BtnMax], \
LeftButton|MidButton|RightButton); +                button[BtnMax]= new \
B2Button(this, tb, tips[BtnMax],  +                        LeftButton | MidButton | \
                RightButton);
                     button[BtnMax]->setPixmaps(maximizeMode() == MaximizeFull ?
                             P_NORMALIZE : P_MAX);
@@ -461,5 +463,5 @@ void B2Client::calcHiddenButtons()
 {
     // Hide buttons in this order:
-    // Sticky, Help, Maximize, Minimize, Close, Menu
+    // Shade, Sticky, Help, Maximize, Minimize, Close, Menu
     B2Button* btnArray[] = { 
         button[BtnShade], button[BtnSticky], button[BtnHelp], 
@@ -959,9 +961,9 @@ void B2Client::positionButtons()
     if (cap.length() < 5) // make sure the titlebar has sufficiently wide
         cap = "XXXXX";    // area for dragging the window
-    int textLen = fm.width( cap );
+    int textLen = fm.width(cap);
 
     QRect t = titlebar->captionSpacer->geometry();
-    int titleWidth = titlebar->width() - t.width() + textLen+2;
-    if (titleWidth > width()) titleWidth=width();
+    int titleWidth = titlebar->width() - t.width() + textLen + 2;
+    if (titleWidth > width()) titleWidth = width();
 
     titlebar->resize(titleWidth, buttonSize + 4);


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

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