Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Q
qtquickcontrols-nemo
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
NemoMobile
qtquickcontrols-nemo
Commits
0788338b
Commit
0788338b
authored
Apr 08, 2017
by
Chupligin Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TextField] fix issue #4
parent
48057b7a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
+14
-11
TextInputPage.qml
examples/touch/content/TextInputPage.qml
+11
-11
TextFieldStyle.qml
src/styles/TextFieldStyle.qml
+3
-0
No files found.
examples/touch/content/TextInputPage.qml
View file @
0788338b
...
@@ -65,36 +65,36 @@ Page {
...
@@ -65,36 +65,36 @@ Page {
headerTools
:
HeaderToolsLayout
{
showBackButton
:
true
;
title
:
"
Text input
"
}
headerTools
:
HeaderToolsLayout
{
showBackButton
:
true
;
title
:
"
Text input
"
}
Column
{
Column
{
spacing
:
40
spacing
:
size
.
dp
(
40
)
anchors.centerIn
:
parent
anchors.centerIn
:
parent
TextField
{
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Text input
"
text
:
"
Text input
"
//style: touchStyle
//style: touchStyle
}
}
TextField
{
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Readonly Text input
"
text
:
"
Readonly Text input
"
//style: touchStyle
//style: touchStyle
readOnly
:
true
readOnly
:
true
}
}
TextField
{
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Disabled textfield
"
text
:
"
Disabled textfield
"
enabled
:
false
enabled
:
false
}
}
TextField
{
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Text input
"
text
:
"
Text input
"
style
:
touchStyle
style
:
touchStyle
}
}
TextField
{
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Readonly Text input
"
text
:
"
Readonly Text input
"
style
:
touchStyle
style
:
touchStyle
readOnly
:
true
readOnly
:
true
...
@@ -107,14 +107,14 @@ Page {
...
@@ -107,14 +107,14 @@ Page {
TextFieldStyle
{
TextFieldStyle
{
textColor
:
"
white
"
textColor
:
"
white
"
font.pixelSize
:
28
font.pixelSize
:
size
.
dp
(
28
)
background
:
Item
{
background
:
Item
{
implicitHeight
:
50
implicitHeight
:
size
.
dp
(
50
)
implicitWidth
:
320
implicitWidth
:
size
.
dp
(
320
)
BorderImage
{
BorderImage
{
source
:
"
../images/textinput.png
"
source
:
"
../images/textinput.png
"
border.left
:
8
border.left
:
size
.
dp
(
8
)
border.right
:
8
border.right
:
size
.
dp
(
8
)
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
...
...
src/styles/TextFieldStyle.qml
View file @
0788338b
...
@@ -27,9 +27,12 @@ TextFieldStyle {
...
@@ -27,9 +27,12 @@ TextFieldStyle {
textColor
:
Theme
.
textField
.
selectedTextColor
textColor
:
Theme
.
textField
.
selectedTextColor
font.pointSize
:
size
.
dp
(
14
)
font.pointSize
:
size
.
dp
(
14
)
font.family
:
Theme
.
textField
.
font
font.family
:
Theme
.
textField
.
font
background
:
Item
{
background
:
Item
{
anchors.leftMargin
:
size
.
dp
(
16
)
anchors.leftMargin
:
size
.
dp
(
16
)
anchors.rightMargin
:
size
.
dp
(
16
)
anchors.rightMargin
:
size
.
dp
(
16
)
implicitHeight
:
size
.
dp
(
50
)
implicitWidth
:
size
.
dp
(
320
)
opacity
:
control
.
enabled
?
1
:
0.6
opacity
:
control
.
enabled
?
1
:
0.6
Image
{
Image
{
anchors.fill
:
parent
anchors.fill
:
parent
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment