Skip to content

Commit 5775c62

Browse files
author
Janis Erdmanis
committed
improving multiaccount support
1 parent 12d4839 commit 5775c62

9 files changed

Lines changed: 130 additions & 89 deletions

File tree

Manifest.toml

Lines changed: 56 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PeaceFounderClient"
22
uuid = "e27653ee-9918-43bd-96c3-a19beeb55963"
33
authors = ["Janis Erdmanis <janiserdmanis@protonmail.ch>"]
4-
version = "0.1.2"
4+
version = "0.1.3"
55

66
[deps]
77
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"

qml/App.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Item {
8888
signal castBallot
8989
signal resetBallot
9090

91-
signal setDeme(string uuid)
91+
signal setDeme(string uuid, int memberIndex)
9292
signal setProposal(int index)
9393

9494
signal refreshHome
@@ -114,8 +114,8 @@ Item {
114114

115115
onRefresh : app.refreshHome()
116116

117-
onDemeCard : uuid => {
118-
app.setDeme(uuid)
117+
onDemeCard : (uuid, memberIndex) => {
118+
app.setDeme(uuid, memberIndex)
119119
app.page = 2
120120
}
121121

qml/Bridge.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ App {
88

99
onAddDeme : invite => Julia.addDeme(invite)
1010

11-
onSetDeme : uuid => Julia.setDeme(uuid)
11+
onSetDeme : (uuid, memberIndex) => Julia.setDeme(uuid, memberIndex)
1212

1313
onSetProposal : index => Julia.setProposal(index)
1414

qml/DemeStatus.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ Rectangle {
130130
Text {
131131

132132
anchors.bottom : parent.bottom
133-
134133
text : "Member: " + card.memberIndex
135134
color : Style.verified //"#20741C"
136135
font.pointSize: 14

qml/Home.qml

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ AppPage {
1111
title : "Home"
1212
backVisible : false
1313

14-
signal demeCard(string uuid)
14+
signal demeCard(string uuid, int memberIndex) // add int memberIndex, page.memberIndex
1515
signal addDeme(string invite)
1616

1717
property alias userDemes : demes_view.model
@@ -85,13 +85,53 @@ AppPage {
8585
anchors.right: parent.right
8686
font.pointSize: 9
8787
//text: model.uuid
88-
text : uuid
88+
text : uuid // I can add memberIndex
8989
anchors.topMargin: 4
9090
anchors.rightMargin: 4
9191
color : Style.textTeritary
9292
}
9393

9494

95+
/* Text { */
96+
/* anchors.bottom: parent.bottom */
97+
/* anchors.left: parent.left */
98+
/* font.pointSize: 9 */
99+
/* text : memberIndex */
100+
/* anchors.bottomMargin: 5 */
101+
/* anchors.leftMargin: 5 */
102+
/* color : Style.textTeritary */
103+
/* } */
104+
105+
106+
Row {
107+
108+
anchors.left: parent.left
109+
anchors.bottom: parent.bottom
110+
anchors.bottomMargin: 5
111+
anchors.leftMargin: 5
112+
113+
spacing : 2
114+
115+
height : 12
116+
117+
Icon {
118+
anchors.bottom : parent.bottom
119+
anchors.bottomMargin: 2
120+
height: 14
121+
source: "images/Member.png"
122+
color : Style.textSecondary
123+
}
124+
125+
Text {
126+
anchors.bottom : parent.bottom
127+
font.pointSize: 12
128+
color : Style.textSecondary
129+
text : memberIndex
130+
}
131+
132+
}
133+
134+
95135
Row {
96136

97137
anchors.right: parent.right
@@ -104,6 +144,7 @@ AppPage {
104144
height : 12
105145

106146
Text {
147+
anchors.bottom : parent.bottom
107148
font.pointSize: 12
108149
color : Style.textSecondary
109150
//text: "" + model.groupsize
@@ -112,18 +153,18 @@ AppPage {
112153

113154
Icon {
114155
anchors.bottom : parent.bottom
156+
anchors.bottomMargin: 3
115157
source : "images/GroupSize.png"
116158
height : 10
117159
color : Style.textSecondary
118160
}
119161

120-
121162
}
122163

123164

124165
MouseArea {
125166
anchors.fill : parent
126-
onClicked : demeCard(uuid)
167+
onClicked : demeCard(uuid, memberIndex)
127168
}
128169

129170
}

0 commit comments

Comments
 (0)