From kde-commits Sat Apr 09 20:18:18 2011 From: Marco Martin Date: Sat, 09 Apr 2011 20:18:18 +0000 To: kde-commits Subject: playground/base/plasma/declarative-applets/replacements/microblog/contents/ui Message-Id: <20110409201818.5B043AC8D1 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=130238033603647 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