~stefan-schwarzburg/qreator/qreator-qml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Components 0.1 as Theming
import Ubuntu.Components.ListItems 0.1 as ListItem
import Ubuntu.Components.Popups 0.1
import QtQuick.LocalStorage 2.0

Page {
    id: pageSettings
    title: i18n.tr("About")
    visible: false
    Column {
        id: aboutColumn
        anchors.fill: parent
        Image {
            anchors.horizontalCenter: parent.horizontalCenter
            source: Qt.resolvedUrl("../img/qreator-128.png")
        }
        Label {
            anchors.horizontalCenter: parent.horizontalCenter
            anchors.topMargin: units.gu(1)
            text: i18n.tr("<b>Create your own QR codes!</b>")
            fontSize: "large"
            height: units.gu(8)
        }
        Label {
            id: longLabel
            width: parent.width - units.gu(2)
            anchors.horizontalCenter: parent.horizontalCenter
            text: i18n.tr("If you use Qreator and you like it, please consider giving a hand in making it better for you and for others. Thank you!")
            wrapMode: Theming.ComponentUtils.style(longLabel, "wrapMode", Text.Wrap) // FIXME: this feels aweful, why not 'wrapMode: "wrap"'?
        }

        ListItem.SingleValue {
            text: i18n.tr("Not in your language yet?")
            value: i18n.tr("Translate it!")
            onClicked: Qt.openUrlExternally("https://translations.launchpad.net/qreator")
        }

        ListItem.SingleValue {
            text: i18n.tr("Something not working?")
            value: i18n.tr("Report a bug!")
            onClicked: Qt.openUrlExternally("https://bugs.launchpad.net/qreator/+filebug")
        }

        ListItem.SingleValue {
            text: i18n.tr("Do you want to improve it?")
            value: i18n.tr("Contribute code!")
            onClicked: Qt.openUrlExternally("https://code.launchpad.net/qreator")
        }
        ListItem.Empty {
            height: units.gu(8)
            Label {
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.verticalCenter: parent.verticalCenter
                text: "<b>Qreator 13.04.1-dev</b>"
            }
            onClicked: Qt.openUrlExternally("https://launchpad.net/qreator")
        }
        ListItem.Empty {
            height: units.gu(8)
            Label {
                anchors.horizontalCenter: parent.horizontalCenter
                anchors.verticalCenter: parent.verticalCenter
                text: "Copyright (c) 2012 David Planella <br/> http://about.me/david.planella"
            }
            onClicked: Qt.openUrlExternally("http://about.me/david.planella")
        }
    }
    PageCredits {
        id: pageCredits
    }
    PageLicense {
        id: pageLicense
    }
    tools: ToolbarActions {
        Action {
            iconSource: Qt.resolvedUrl("../img/icons/at_24x24.png")
            text: i18n.tr("Credits")
            onTriggered: pageStack.push(pageCredits)
        }
        Action {
            iconSource: Qt.resolvedUrl("../img/icons/book_alt_24x24.png")
            text: i18n.tr("License")
            onTriggered: pageStack.push(pageLicense)
        }

    }
}