Licensing GPLv3
[quicknewsreader] / qml / QuickNewsReader / content / view / LineInput.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 Item {
22   id: lineInput
23   property alias text: input.text
24   property alias input: input
25   height: 50
26
27   BorderImage {
28       id: borderImage
29       border.left: 10
30       border.top: 10
31       border.bottom: 10
32       border.right: 10
33       source: "../images/lineedit.png"
34       anchors.fill: parent
35   }
36   TextInput {
37       id: input
38       color: "#151515"; selectionColor: "green"
39       font.pixelSize: 24; font.bold: true
40       width: borderImage.width-16
41       anchors.centerIn: parent
42       focus: true
43   }
44 }