~matti-rintanikkola-d/my-webapp-group/trunk

« back to all changes in this revision

Viewing changes to qml/CategoryWebSiteComponent.qml

  • Committer: Matti Rinta-Nikkola
  • Date: 2016-02-28 13:20:34 UTC
  • Revision ID: matti.rintanikkola@gmail.com-20160228132034-1qy281lfzu1l7qyo
Alexa Rank, step I

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
    property string url
12
12
    property string pattern
13
13
    property string secondaryPatterns
 
14
    property string rank
14
15
    property var safe
15
16
    property string categoryWebSiteId
16
17
    property string categoryId
57
58
            subtitle.text: url
58
59
            subtitle.color: "darkGrey"
59
60
        }
60
 
        Button {
 
61
        Rectangle {
 
62
            width: units.gu(12)
 
63
            height: units.gu(3)
61
64
            anchors {
62
65
                right: parent.right
63
66
                rightMargin: units.gu(1)
64
67
            }
65
 
            width: url ? units.gu(3) : 0
66
 
            height: units.gu(3)
67
 
            iconSource: safe.icon ? Qt.resolvedUrl("../icons/"+safe.icon+".svg") : ""
68
 
            color: safe.color ? safe.color : ""
69
 
            onClicked: {
70
 
                util.urlCheckView(url)
71
 
                checkUrl()
 
68
            Label {
 
69
                anchors {
 
70
                    right: parent.right
 
71
                    rightMargin: units.gu(4)
 
72
                }
 
73
                text: rank
 
74
                fontSize: "xx-small"
 
75
            }
 
76
            Button {
 
77
                anchors {
 
78
                    right: parent.right
 
79
                }
 
80
                width: url ? units.gu(3) : 0
 
81
                height: units.gu(3)
 
82
                iconSource: safe.icon ? Qt.resolvedUrl("../icons/"+safe.icon+".svg") : ""
 
83
                color: safe.color ? safe.color : ""
 
84
                onClicked: {
 
85
                    util.urlCheckView(url)
 
86
                    checkUrl()
 
87
                }
72
88
            }
73
89
        }
74
90
        Icon {