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

List:       kde-commits
Subject:    playground/base/plasma/declarative-applets/replacements/microblog/contents/ui
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-04-09 20:18:18
Message-ID: 20110409201818.5B043AC8D1 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1227509 by mart:

MessageList has configurable timeline


 M  +0 -4      BasicComponents/PostingWidget.qml  
 M  +5 -1      ComplexComponents/MessageList.qml  
 M  +3 -1      main.qml  


--- trunk/playground/base/plasma/declarative-applets/replacements/microblog/contents/ui/BasicComponents/PostingWidget.qml \
#1227508:1227509 @@ -28,10 +28,6 @@
     width: parent.width
     height: postWidget.height + 5
 
-    Component.onCompleted: {
-        Logic.messagesDataSource = microblogSource
-    }
-
     function refresh()
     {
         postTextEdit.text = ""
--- trunk/playground/base/plasma/declarative-applets/replacements/microblog/contents/ui/ComplexComponents/MessageList.qml \
#1227508:1227509 @@ -28,7 +28,11 @@
     id: entryList
 
     clip: true
-    property string source: "TimelineWithFriends:"+userName+"@"+serviceUrl
+
+    property string timeline: "TimelineWithFriends"
+    property string login: userName
+    property string url: serviceUrl
+    property string source: timeline+":"+login+"@"+url
     onSourceChanged: {
         timer.running = true
     }
--- trunk/playground/base/plasma/declarative-applets/replacements/microblog/contents/ui/main.qml \
#1227508:1227509 @@ -22,6 +22,7 @@
 import org.kde.plasma.components 0.1 as PlasmaComponents
 import org.kde.qtextracomponents 0.1 as QtExtraComponents
 
+import "plasmapackage:/code/logic.js" as Logic
 import "plasmapackage:/ui/MainWidget"
 
 Item {
@@ -40,6 +41,7 @@
     Component.onCompleted: {
         plasmoid.addEventListener('ConfigChanged', configChanged);
         plasmoid.configurationRequired = true
+        Logic.messagesDataSource = microblogSource
         configChanged()
     }
 
@@ -56,7 +58,7 @@
         microblogSource.connectedSources = \
                ["TimelineWithFriends:"+userName+"@"+serviceUrl, \
                "UserImages:"+serviceUrl]
         var service = \
microblogSource.serviceForSource(microblogSource.connectedSources[0])  var operation \
                = service.operationDescription("auth");
-        operation.password = plasmoid.readConfig("password")
+        operation.password = password
         service.startOperationCall(operation);
         plasmoid.configurationRequired = false
         plasmoid.busy = true


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

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