Readability integration - first draft
[quicknewsreader] / qml / QuickNewsReader / content / view / GoogleReaderConfig.qml
1 /***
2 ** Copyright (C) 2012 Christophe CHAPUIS <chris.chapuis _at_ gmail _dot_ com>
3 **
4 ** This package is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This package is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this package; if not, write to the Free Software
16 ** Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
17 **
18 ***/
19 import QtQuick 1.0
20
21 Rectangle {
22     // Login : [text entry]
23     // Password : [pwd entry]
24     color: "transparent"
25
26     property alias loginValue: inputLogin.text
27     property alias passwordValue: inputPwd.text
28
29     Column {
30         anchors.fill: parent
31         anchors.margins: 30
32         spacing: 10
33
34         Row {
35             anchors.left: parent.left
36             anchors.leftMargin: 10
37             anchors.right: parent.right
38             anchors.rightMargin: 10
39
40             Text {
41                 id: labelLogin
42                 color: "white"
43                 anchors.verticalCenter: parent.verticalCenter
44                 width: 150
45                 text: qsTr("Login")
46                 font.pixelSize: 24
47                 font.bold: true
48             }
49
50             LineInput {
51                 id: inputLogin
52                 width: parent.width - 150 - 10 - 10
53                 anchors.verticalCenter: parent.verticalCenter
54             }
55         }
56
57         Row {
58             anchors.left: parent.left
59             anchors.leftMargin: 10
60             anchors.right: parent.right
61             anchors.rightMargin: 10
62
63             Text {
64                 id: labelPwd
65                 color: "white"
66                 anchors.verticalCenter: parent.verticalCenter
67                 width: 150
68                 text: qsTr("Password")
69                 font.pixelSize: 24
70                 font.bold: true
71             }
72
73             LineInput {
74                 id: inputPwd
75                 width: parent.width - 150 - 10 - 10
76                 anchors.verticalCenter: parent.verticalCenter
77                 // password specific
78                 input.echoMode: TextInput.Password
79             }
80         }
81     }
82 }