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
Hide 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 {
headerTools
:
HeaderToolsLayout
{
showBackButton
:
true
;
title
:
"
Text input
"
}
Column
{
spacing
:
40
spacing
:
size
.
dp
(
40
)
anchors.centerIn
:
parent
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Text input
"
//style: touchStyle
}
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Readonly Text input
"
//style: touchStyle
readOnly
:
true
}
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Disabled textfield
"
enabled
:
false
}
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Text input
"
style
:
touchStyle
}
TextField
{
anchors.margins
:
20
anchors.margins
:
size
.
dp
(
20
)
text
:
"
Readonly Text input
"
style
:
touchStyle
readOnly
:
true
...
...
@@ -107,14 +107,14 @@ Page {
TextFieldStyle
{
textColor
:
"
white
"
font.pixelSize
:
28
font.pixelSize
:
size
.
dp
(
28
)
background
:
Item
{
implicitHeight
:
50
implicitWidth
:
320
implicitHeight
:
size
.
dp
(
50
)
implicitWidth
:
size
.
dp
(
320
)
BorderImage
{
source
:
"
../images/textinput.png
"
border.left
:
8
border.right
:
8
border.left
:
size
.
dp
(
8
)
border.right
:
size
.
dp
(
8
)
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
...
...
src/styles/TextFieldStyle.qml
View file @
0788338b
...
...
@@ -27,9 +27,12 @@ TextFieldStyle {
textColor
:
Theme
.
textField
.
selectedTextColor
font.pointSize
:
size
.
dp
(
14
)
font.family
:
Theme
.
textField
.
font
background
:
Item
{
anchors.leftMargin
:
size
.
dp
(
16
)
anchors.rightMargin
:
size
.
dp
(
16
)
implicitHeight
:
size
.
dp
(
50
)
implicitWidth
:
size
.
dp
(
320
)
opacity
:
control
.
enabled
?
1
:
0.6
Image
{
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