blob: 4350c2c8f2c05be05ec99bc33f4df5d2084f5b64 (
plain)
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
|
import QtQuick 2.0
import "custom" as Components
import QtDesktop 0.1
Components.TextField {
id: textfield
minimumWidth: 200
placeholderText: ""
topMargin: 2
bottomMargin: 2
leftMargin: 6
rightMargin: 6
height: backgroundItem.sizeFromContents(200, 25).height
width: 200
clip: false
background: StyleItem {
anchors.fill: parent
elementType: "edit"
sunken: true
focus: textfield.activeFocus
hover: containsMouse
}
Item{
id: focusFrame
anchors.fill: textfield
parent: textfield
visible: framestyle.styleHint("focuswidget")
StyleItem {
id: framestyle
anchors.margins: -2
anchors.rightMargin:-4
anchors.bottomMargin:-4
anchors.fill: parent
visible: textfield.activeFocus
elementType: "focusframe"
}
}
}
|