diff options
author | tg(x) <*@tg-x.net> | 2016-02-06 03:18:08 +0100 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2016-02-06 03:18:08 +0100 |
commit | 9187bc152316c1563c2e0852ded5c17261df5860 (patch) | |
tree | 07bfd00a22de1d63f4ffccb7e0a5bab66ae03437 | |
parent | 07b60d21a3d1c6c8a6e14b7247ce97043735b400 (diff) | |
download | secushare-9187bc152316c1563c2e0852ded5c17261df5860.tar.gz secushare-9187bc152316c1563c2e0852ded5c17261df5860.zip |
qml: ego & place model
-rw-r--r-- | qml/SidePlaceList.qml | 2 | ||||
-rw-r--r-- | qml/main.qml | 8 | ||||
-rw-r--r-- | src/model/models.h | 9 |
3 files changed, 14 insertions, 5 deletions
diff --git a/qml/SidePlaceList.qml b/qml/SidePlaceList.qml index 0574231..a47ae38 100644 --- a/qml/SidePlaceList.qml +++ b/qml/SidePlaceList.qml | |||
@@ -187,7 +187,7 @@ Rectangle { | |||
187 | 187 | ||
188 | Image { | 188 | Image { |
189 | id: threadMiniImage | 189 | id: threadMiniImage |
190 | source: image ? image : "" | 190 | source: "images/demo/gnunet.png" // FIXME |
191 | fillMode: Image.PreserveAspectCrop | 191 | fillMode: Image.PreserveAspectCrop |
192 | height: 60 | 192 | height: 60 |
193 | width: 160 | 193 | width: 160 |
diff --git a/qml/main.qml b/qml/main.qml index 79730ce..83cec0c 100644 --- a/qml/main.qml +++ b/qml/main.qml | |||
@@ -108,6 +108,7 @@ Window { | |||
108 | onClicked: { | 108 | onClicked: { |
109 | left.currentIndex = placesTab | 109 | left.currentIndex = placesTab |
110 | rightTabIndex = egosTab | 110 | rightTabIndex = egosTab |
111 | nymsList.model = App.models.egos | ||
111 | } | 112 | } |
112 | } | 113 | } |
113 | } | 114 | } |
@@ -129,7 +130,8 @@ Window { | |||
129 | anchors.fill: parent | 130 | anchors.fill: parent |
130 | onClicked: { | 131 | onClicked: { |
131 | left.currentIndex = topicsTab | 132 | left.currentIndex = topicsTab |
132 | rightTabIndex = noTab | 133 | rightTabIndex = nymsTab |
134 | nymsList.model = nymsModel | ||
133 | } | 135 | } |
134 | } | 136 | } |
135 | } | 137 | } |
@@ -246,6 +248,8 @@ Window { | |||
246 | } | 248 | } |
247 | 249 | ||
248 | if (profileTab != currentIndex | 250 | if (profileTab != currentIndex |
251 | && enterPlaceTab != currentIndex | ||
252 | && createHomeTab != currentIndex | ||
249 | && createEgoTab != currentIndex) | 253 | && createEgoTab != currentIndex) |
250 | { | 254 | { |
251 | rightTabIndex = noTab | 255 | rightTabIndex = noTab |
@@ -453,7 +457,7 @@ Window { | |||
453 | 457 | ||
454 | Image { | 458 | Image { |
455 | id: nymImage | 459 | id: nymImage |
456 | source: image | 460 | source: image || "images/demo/doll.jpg" |
457 | fillMode: Image.PreserveAspectCrop | 461 | fillMode: Image.PreserveAspectCrop |
458 | height: 110 | 462 | height: 110 |
459 | width: 160 | 463 | width: 160 |
diff --git a/src/model/models.h b/src/model/models.h index 0f17073..8a54727 100644 --- a/src/model/models.h +++ b/src/model/models.h | |||
@@ -29,8 +29,13 @@ | |||
29 | class Models:public QObject | 29 | class Models:public QObject |
30 | { | 30 | { |
31 | Q_OBJECT; | 31 | Q_OBJECT; |
32 | Q_PROPERTY (PlaceListModel * places READ places NOTIFY placesChanged); | 32 | Q_PROPERTY (PlaceListModel *places |
33 | Q_PROPERTY (EgoListModel * egos READ egos NOTIFY egosChanged); | 33 | READ places |
34 | NOTIFY placesChanged); | ||
35 | |||
36 | Q_PROPERTY (EgoListModel *egos | ||
37 | READ egos | ||
38 | NOTIFY egosChanged); | ||
34 | 39 | ||
35 | 40 | ||
36 | public: | 41 | public: |