@ -4,169 +4,169 @@ import "../components"
Rectangle {
color: "#F0EEEE"
/ / T e x t {
/ / i d : n e w E n t r y T e x t
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . r i g h t : p a r e n t . r i g h t
/ / a n c h o r s . t o p : p a r e n t . t o p
/ / a n c h o r s . l e f t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 1 7
/ / e l i d e : T e x t . E l i d e R i g h t
/ / f o n t . f a m i l y : " A r i a l "
/ / f o n t . p i x e l S i z e : 1 8
/ / c o l o r : " # 4 A 4 9 4 9 "
/ / t e x t : q s T r ( " A d d n e w e n t r y " )
/ / }
/ / L a b e l {
/ / i d : a d d r e s s L a b e l
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . t o p : n e w E n t r y T e x t . b o t t o m
/ / a n c h o r s . l e f t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 1 7
/ / t e x t : q s T r ( " A d d r e s s " )
/ / f o n t S i z e : 1 4
/ / t i p T e x t : q s T r ( " < b > T i p t e k s t t e s t < / b > " )
/ / }
/ / L i n e E d i t {
/ / i d : a d d r e s s L i n e
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . r i g h t : p a r e n t . r i g h t
/ / a n c h o r s . t o p : a d d r e s s L a b e l . b o t t o m
/ / a n c h o r s . l e f t M a r g i n : 1 7
/ / a n c h o r s . r i g h t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 5
/ / }
/ / L a b e l {
/ / i d : p a y m e n t I d L a b e l
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . t o p : a d d r e s s L i n e . b o t t o m
/ / a n c h o r s . l e f t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 1 7
/ / t e x t : q s T r ( " P a y m e n t I D < f o n t s i z e = ' 2 ' > ( O p t i o n a l ) < / f o n t > " )
/ / f o n t S i z e : 1 4
/ / t i p T e x t : q s T r ( " < b > P a y m e n t I D < / b > < b r / > < b r / > A u n i q u e u s e r n a m e u s e d i n < b r / > t h e a d d r e s s b o o k . I t i s n o t a < b r / > t r a n s f e r o f i n f o r m a t i o n s e n t < b r / > d u r i n g t h e v t r a n s f e r " )
/ / w i d t h : 1 5 6
/ / }
/ / L a b e l {
/ / i d : d e s c r i p t i o n L a b e l
/ / a n c h o r s . l e f t : p a y m e n t I d L a b e l . r i g h t
/ / a n c h o r s . t o p : a d d r e s s L i n e . b o t t o m
/ / a n c h o r s . l e f t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 1 7
/ / t e x t : q s T r ( " D e s c r i p t i o n < f o n t s i z e = ' 2 ' > ( L o c a l d a t a b a s e ) < / f o n t > " )
/ / f o n t S i z e : 1 4
/ / t i p T e x t : q s T r ( " < b > T i p t e k s t t e s t < / b > < b r / > < b r / > t e s t l i n e 2 " )
/ / w i d t h : 1 5 6
/ / }
/ / L i n e E d i t {
/ / i d : p a y m e n t I d L i n e
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . t o p : p a y m e n t I d L a b e l . b o t t o m
/ / a n c h o r s . l e f t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 5
/ / w i d t h : 1 5 6
/ / }
/ / L i n e E d i t {
/ / i d : d e s c r i p t i o n L i n e
/ / a n c h o r s . l e f t : p a y m e n t I d L i n e . r i g h t
/ / a n c h o r s . r i g h t : a d d B u t t o n . l e f t
/ / a n c h o r s . t o p : p a y m e n t I d L a b e l . b o t t o m
/ / a n c h o r s . l e f t M a r g i n : 1 7
/ / a n c h o r s . r i g h t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 5
/ / }
/ / S t a n d a r d B u t t o n {
/ / i d : a d d B u t t o n
/ / a n c h o r s . r i g h t : p a r e n t . r i g h t
/ / a n c h o r s . t o p : p a y m e n t I d L a b e l . b o t t o m
/ / a n c h o r s . r i g h t M a r g i n : 1 7
/ / a n c h o r s . t o p M a r g i n : 5
/ / w i d t h : 6 0
/ / s h a d o w R e l e a s e d C o l o r : " # F F 4 3 0 4 "
/ / s h a d o w P r e s s e d C o l o r : " # B 3 2 D 0 0 "
/ / r e l e a s e d C o l o r : " # F F 6 C 3 C "
/ / p r e s s e d C o l o r : " # F F 4 3 0 4 "
/ / t e x t : q s T r ( " A D D " )
/ / }
/ / R e c t a n g l e {
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . r i g h t : p a r e n t . r i g h t
/ / a n c h o r s . b o t t o m : p a r e n t . b o t t o m
/ / a n c h o r s . t o p : p a y m e n t I d L i n e . b o t t o m
/ / a n c h o r s . t o p M a r g i n : 1 7
/ / c o l o r : " # F F F F F F "
/ / R e c t a n g l e {
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . r i g h t : p a r e n t . r i g h t
/ / a n c h o r s . t o p : p a r e n t . t o p
/ / h e i g h t : 1
/ / c o l o r : " # D B D B D B "
/ / }
/ / L i s t M o d e l {
/ / i d : c o l u m n s M o d e l
/ / L i s t E l e m e n t { c o l u m n N a m e : " P a y m e n t I D " ; c o l u m n W i d t h : 1 4 8 }
/ / L i s t E l e m e n t { c o l u m n N a m e : " D e s c r i p t i o n " ; c o l u m n W i d t h : 4 2 0 }
/ / }
/ / T a b l e H e a d e r {
/ / i d : h e a d e r
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . r i g h t : p a r e n t . r i g h t
/ / a n c h o r s . t o p : p a r e n t . t o p
/ / a n c h o r s . t o p M a r g i n : 1 7
/ / a n c h o r s . l e f t M a r g i n : 1 4
/ / a n c h o r s . r i g h t M a r g i n : 1 4
/ / d a t a M o d e l : c o l u m n s M o d e l
/ / o n S o r t R e q u e s t : c o n s o l e . l o g ( " c o l u m n : " + c o l u m n + " d e s c : " + d e s c )
/ / }
/ / L i s t M o d e l {
/ / i d : t e s t M o d e l
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " M a l k o l m T . " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " C l i e n t f r o m A u s t r a l i a " }
/ / L i s t E l e m e n t { p a y m e n t I d : " " ; a d d r e s s : " f a e f 5 6 b 9 a c f 6 7 a 7 d b a 7 5 e c 0 1 f 4 0 3 4 9 7 0 4 9 d 7 c f f 1 1 1 6 2 8 e d f e 7 b 5 7 2 7 8 5 5 4 d c 7 9 8 " ; d e s c r i p t i o n : " " }
/ / }
/ / S c r o l l {
/ / i d : f l i c k a b l e S c r o l l
/ / a n c h o r s . r i g h t M a r g i n : - 1 4
/ / f l i c k a b l e : t a b l e
/ / y P o s : t a b l e . y
/ / }
/ / A d d r e s s B o o k T a b l e {
/ / i d : t a b l e
/ / a n c h o r s . l e f t : p a r e n t . l e f t
/ / a n c h o r s . r i g h t : p a r e n t . r i g h t
/ / a n c h o r s . t o p : h e a d e r . b o t t o m
/ / a n c h o r s . b o t t o m : p a r e n t . b o t t o m
/ / a n c h o r s . l e f t M a r g i n : 1 4
/ / a n c h o r s . r i g h t M a r g i n : 1 4
/ / o n C o n t e n t Y C h a n g e d : f l i c k a b l e S c r o l l . f l i c k a b l e C o n t e n t Y C h a n g e d ( )
/ / m o d e l : t e s t M o d e l
/ / }
/ / }
Text {
id: newEntryTex t
anchors.left: parent . lef t
anchors.right: parent . righ t
anchors.top: parent . to p
anchors.leftMargin: 1 7
anchors.topMargin: 1 7
elide: Text . ElideRigh t
font.family: "Arial "
font.pixelSize: 1 8
color: "#4A4949 "
text: qsTr ( "Add new entry" )
}
Label {
id: addressLabe l
anchors.left: parent . lef t
anchors.top: newEntryText . botto m
anchors.leftMargin: 1 7
anchors.topMargin: 1 7
text: qsTr ( "Address" )
fontSize: 1 4
tipText: qsTr ( "<b>Tip tekst test</b>" )
}
LineEdit {
id: addressLin e
anchors.left: parent . lef t
anchors.right: parent . righ t
anchors.top: addressLabel . botto m
anchors.leftMargin: 1 7
anchors.rightMargin: 1 7
anchors.topMargin: 5
}
Label {
id: paymentIdLabe l
anchors.left: parent . lef t
anchors.top: addressLine . botto m
anchors.leftMargin: 1 7
anchors.topMargin: 1 7
text: qsTr ( "Payment ID <font size='2'>(Optional)</font>" )
fontSize: 1 4
tipText: qsTr ( "<b>Payment ID</b><br/><br/>A unique user name used in<br/>the address book. It is not a<br/>transfer of information sent<br/>during thevtransfer" )
width: 15 6
}
Label {
id: descriptionLabe l
anchors.left: paymentIdLabel . righ t
anchors.top: addressLine . botto m
anchors.leftMargin: 1 7
anchors.topMargin: 1 7
text: qsTr ( "Description <font size='2'>(Local database)</font>" )
fontSize: 1 4
tipText: qsTr ( "<b>Tip tekst test</b><br/><br/>test line 2" )
width: 15 6
}
LineEdit {
id: paymentIdLin e
anchors.left: parent . lef t
anchors.top: paymentIdLabel . botto m
anchors.leftMargin: 1 7
anchors.topMargin: 5
width: 15 6
}
LineEdit {
id: descriptionLin e
anchors.left: paymentIdLine . righ t
anchors.right: addButton . lef t
anchors.top: paymentIdLabel . botto m
anchors.leftMargin: 1 7
anchors.rightMargin: 1 7
anchors.topMargin: 5
}
StandardButton {
id: addButto n
anchors.right: parent . righ t
anchors.top: paymentIdLabel . botto m
anchors.rightMargin: 1 7
anchors.topMargin: 5
width: 6 0
shadowReleasedColor: "#FF4304 "
shadowPressedColor: "#B32D00 "
releasedColor: "#FF6C3C "
pressedColor: "#FF4304 "
text: qsTr ( "ADD" )
}
Rectangle {
anchors.left: parent . lef t
anchors.right: parent . righ t
anchors.bottom: parent . botto m
anchors.top: paymentIdLine . botto m
anchors.topMargin: 1 7
color: "#FFFFFF "
Rectangle {
anchors.left: parent . lef t
anchors.right: parent . righ t
anchors.top: parent . to p
height: 1
color: "#DBDBDB "
}
ListModel {
id: columnsMode l
ListElement { columnName: "Payment ID" ; columnWidth: 148 }
ListElement { columnName: "Description" ; columnWidth: 420 }
}
TableHeader {
id: heade r
anchors.left: parent . lef t
anchors.right: parent . righ t
anchors.top: parent . to p
anchors.topMargin: 1 7
anchors.leftMargin: 1 4
anchors.rightMargin: 1 4
dataModel: columnsMode l
onSortRequest: console . log ( "column: " + column + " desc: " + desc )
}
ListModel {
id: testMode l
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "" ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "Malkolm T." ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "Client from Australia" }
ListElement { paymentId: "" ; address: "faef56b9acf67a7dba75ec01f403497049d7cff111628edfe7b57278554dc798" ; description: "" }
}
Scroll {
id: flickableScrol l
anchors.rightMargin: - 1 4
flickable: tabl e
yPos: table . y
}
AddressBookTable {
id: tabl e
anchors.left: parent . lef t
anchors.right: parent . righ t
anchors.top: header . botto m
anchors.bottom: parent . botto m
anchors.leftMargin: 1 4
anchors.rightMargin: 1 4
onContentYChanged: flickableScroll . flickableContentYChanged ( )
model: testMode l
}
}
}