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

List:       kde-commits
Subject:    playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui
From:       Lukas Appelhans <l.appelhans () gmx ! de>
Date:       2010-12-10 13:55:45
Message-ID: 20101210135545.1201EAC8A6 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1205222 by lappelhans:

Actually move to the other side of the list if needed


 M  +7 -1      ListItemEntry.qml  


--- trunk/playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui/ListItemEntry.qml \
#1205221:1205222 @@ -96,8 +96,14 @@
 
         onClicked: {
             if (mouse.x < delegateLayout.width && mouse.x > (delegateLayout.width - \
                leftArrow.width)) {
-                if (mouse.y > leftArrow.height)
+                if (mouse.y > leftArrow.height) {
+                    if (entryList.currentIndex == entryList.count)
+                        entryList.currentIndex = 0
+                    else 
                     entryList.currentIndex = entryList.currentIndex + 1
+                } else
+                    if (entryList.currentIndex == 0)
+                        entryList.currentIndex = entryList.count
                 else
                     entryList.currentIndex = entryList.currentIndex - 1
             }


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

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