[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [declarative-plasmoids] microblog: fix two reference errors
From: Sebastian_Kügler <sebas () kde ! org>
Date: 2012-02-01 1:50:01
Message-ID: 20120201015001.3642EA60C6 () git ! kde ! org
[Download RAW message or body]
Git commit 06fe312c80eee44f56102b6feaa3d6decf978a50 by Sebastian Kügler.
Committed on 29/01/2012 at 05:08.
Pushed by sebas into branch 'master'.
fix two reference errors
M +2 -7 microblog/contents/ui/main.qml
M +7 -1 microblog/platformcontents/application/generic/ui/BasicComponents/AuthorizationWidget.qml
M +1 -1 microblog/platformcontents/application/generic/ui/BasicComponents/PostingWidget.qml
http://commits.kde.org/declarative-plasmoids/06fe312c80eee44f56102b6feaa3d6decf978a50
diff --git a/microblog/contents/ui/main.qml b/microblog/contents/ui/main.qml
index 30a5fe3..0b46a55 100644
--- a/microblog/contents/ui/main.qml
+++ b/microblog/contents/ui/main.qml
@@ -66,8 +66,8 @@ Item {
serviceUrl = plasmoid.readConfig("serviceUrl")
imageSource.connectSource("UserImages:"+serviceUrl)
} else {
- //serviceUrl = "https://identi.ca/api/"
- serviceUrl = "https://twitter.com/"
+ serviceUrl = "https://identi.ca/api/"
+ //serviceUrl = "https://twitter.com/"
}
if (serviceUrl && userName) {
microblogSource.connectSource("TimelineWithFriends:"+userName+"@"+serviceUrl)
@@ -107,11 +107,6 @@ Item {
}
}
- onServiceUrlChanged: {
- print("C O N N E C T E D");
- statusSource.connectSource("Status:"+serviceUrl);
- }
-
PlasmaCore.DataSource {
id: imageSource
engine: "microblog"
diff --git a/microblog/platformcontents/application/generic/ui/BasicComponents/AuthorizationWidget.qml \
b/microblog/platformcontents/application/generic/ui/BasicComponents/AuthorizationWidget.qml
index d23a387..0edfdd9 100644
--- a/microblog/platformcontents/application/generic/ui/BasicComponents/AuthorizationWidget.qml
+++ b/microblog/platformcontents/application/generic/ui/BasicComponents/AuthorizationWidget.qml
@@ -83,8 +83,14 @@ Item {
}
}
Component.onCompleted: statusSource.connectSource("Status:"+serviceUrl);
-
}
+ Connections {
+ target: main
+ onServiceUrlChanged: {
+ print("C O N N E C T E D");
+ statusSource.connectSource("Status:"+serviceUrl);
+ }
+ }
}
diff --git a/microblog/platformcontents/application/generic/ui/BasicComponents/PostingWidget.qml \
b/microblog/platformcontents/application/generic/ui/BasicComponents/PostingWidget.qml \
index 2041a6a..fd3f4f6 100644
--- a/microblog/platformcontents/application/generic/ui/BasicComponents/PostingWidget.qml
+++ b/microblog/platformcontents/application/generic/ui/BasicComponents/PostingWidget.qml
@@ -43,7 +43,7 @@ Item {
AuthorizationWidget {
id: authStatusWidget
anchors { left: parent.left; right: postWidget.left; verticalCenter: \
postWidget.verticalCenter; }
- Rectangle { anchors.fill: postWidget; color: "blue"; opacity: 0.3 }
+ //Rectangle { anchors.fill: postWidget; color: "blue"; opacity: 0.3 }
}
PlasmaCore.FrameSvgItem {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic