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

List:       kde-commits
Subject:    KDE/kdebase/kicker
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2005-08-30 10:07:30
Message-ID: 1125396450.390981.25479.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 454921 by aseigo:

patch by Nathan Humbert to take Plasma::Floating into consideration in
switch statements
CCMAIL:humbna@cs.wwc.edu


 M  +3 -0      applets/media/mediumbutton.cpp  
 M  +3 -0      applets/trash/trashbutton.cpp  
 M  +4 -0      kicker/core/applethandle.cpp  
 M  +8 -0      taskbar/taskbar.cpp  


--- trunk/KDE/kdebase/kicker/applets/media/mediumbutton.cpp #454920:454921
@@ -198,6 +198,9 @@
 	case Plasma::Left:
 		setPopupDirection(Plasma::Right);
 		break;
+	case Plasma::Floating:
+		setPopupDirection(Plasma::Floating);
+		break;
 	}
 }
 
--- trunk/KDE/kdebase/kicker/applets/trash/trashbutton.cpp #454920:454921
@@ -149,6 +149,9 @@
 	case Plasma::Left:
 		setPopupDirection(Plasma::Right);
 		break;
+	case Plasma::Floating:
+		setPopupDirection(Plasma::Floating);
+		break;
 	}
 }
 
--- trunk/KDE/kdebase/kicker/kicker/core/applethandle.cpp #454920:454921
@@ -159,6 +159,10 @@
             m_layout->setDirection(QBoxLayout::LeftToRight);
             m_menuButton->setPixmap(xpmPixmap(right_xpm, "right"));
             break;
+	case Plasma::Floating:
+	    m_layout->setDirection(QBoxLayout::BottomToTop);
+	    m_menuButton->setPixmap(xpmPixmap(up_xpm, "up"));
+	    break;
     }
 
     m_layout->activate();
--- trunk/KDE/kdebase/kicker/taskbar/taskbar.cpp #454920:454921
@@ -244,6 +244,10 @@
                 icon = "1rightarrow";
                 m_windowListButton->setMaximumWidth(BUTTON_MAX_WIDTH);
                 break;
+	    case Plasma::Floating:
+		icon = "1uparrow";
+		m_windowListButton->setMaximumWidth(BUTTON_MAX_WIDTH);
+		break;
         }
 
         m_windowListButton->setPixmap(kapp->iconLoader()->loadIcon(icon,
@@ -1230,6 +1234,10 @@
             icon = "1rightarrow";
             at = Qt::RightArrow;
             break;
+	case Plasma::Floating:
+	    icon = "1uparrow";
+	    at = Qt::UpArrow;
+	    break;
     }
 
     setArrowType(at);
[prev in list] [next in list] [prev in thread] [next in thread] 

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