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
85681154
Commit
85681154
authored
Oct 15, 2017
by
Aleksi Suomalainen
Committed by
eekkelund
Apr 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add in support for Qt virtual keyboard.
parent
6a9017c0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
21 deletions
+11
-21
nemowindow.cpp
src/controls/nemowindow.cpp
+2
-2
ApplicationWindow.qml
src/controls/qml/ApplicationWindow.qml
+9
-15
TextField.qml
src/controls/qml/TextField.qml
+0
-4
No files found.
src/controls/nemowindow.cpp
View file @
85681154
...
@@ -26,8 +26,8 @@ NemoWindow::NemoWindow(QWindow *parent) :
...
@@ -26,8 +26,8 @@ NemoWindow::NemoWindow(QWindow *parent) :
m_defaultAllowedOrientations
(
Qt
::
PortraitOrientation
|
Qt
::
LandscapeOrientation
)
m_defaultAllowedOrientations
(
Qt
::
PortraitOrientation
|
Qt
::
LandscapeOrientation
)
{
{
m_allowedOrientations
=
m_defaultAllowedOrientations
;
m_allowedOrientations
=
m_defaultAllowedOrientations
;
m_filter
=
new
EditFilter
();
//
m_filter = new EditFilter();
this
->
installEventFilter
(
m_filter
);
//
this->installEventFilter(m_filter);
}
}
Qt
::
ScreenOrientations
NemoWindow
::
allowedOrientations
()
const
Qt
::
ScreenOrientations
NemoWindow
::
allowedOrientations
()
const
...
...
src/controls/qml/ApplicationWindow.qml
View file @
85681154
...
@@ -26,7 +26,7 @@ import QtQuick.Layouts 1.0
...
@@ -26,7 +26,7 @@ import QtQuick.Layouts 1.0
import
QtQuick
.
Controls
.
Private
1.0
import
QtQuick
.
Controls
.
Private
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
VirtualKeyboard
2.1
NemoWindow
{
NemoWindow
{
id
:
root
id
:
root
...
@@ -206,6 +206,14 @@ NemoWindow {
...
@@ -206,6 +206,14 @@ NemoWindow {
Item
{
Item
{
id
:
contentArea
id
:
contentArea
anchors.centerIn
:
parent
anchors.centerIn
:
parent
InputPanel
{
z
:
99
id
:
inputPanel
visible
:
Qt
.
inputMethod
.
visible
y
:
Qt
.
inputMethod
.
visible
?
parent
.
height
-
inputPanel
.
height
:
parent
.
height
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
}
transform
:
Scale
{
transform
:
Scale
{
id
:
contentScale
id
:
contentScale
...
@@ -240,20 +248,6 @@ NemoWindow {
...
@@ -240,20 +248,6 @@ NemoWindow {
:
Qt
.
inputMethod
.
keyboardRectangle
.
height
)
:
Qt
.
inputMethod
.
keyboardRectangle
.
height
)
:
(
root
.
_transpose
?
Qt
.
inputMethod
.
keyboardRectangle
.
height
:
(
root
.
_transpose
?
Qt
.
inputMethod
.
keyboardRectangle
.
height
:
Qt
.
inputMethod
.
keyboardRectangle
.
width
))
:
Qt
.
inputMethod
.
keyboardRectangle
.
width
))
onImSizeChanged
:
{
if
(
imSize
<=
0
&&
previousImSize
>
0
)
{
imShowAnimation
.
stop
()
imHideAnimation
.
start
()
}
else
if
(
imSize
>
0
&&
previousImSize
<=
0
)
{
imHideAnimation
.
stop
()
imShowAnimation
.
to
=
imSize
imShowAnimation
.
start
()
}
else
{
panelSize
=
imSize
}
previousImSize
=
imSize
}
clip
:
true
clip
:
true
Component.onCompleted
:
{
Component.onCompleted
:
{
...
...
src/controls/qml/TextField.qml
View file @
85681154
...
@@ -35,9 +35,5 @@ import QtQuick.Controls.Nemo 1.0
...
@@ -35,9 +35,5 @@ import QtQuick.Controls.Nemo 1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
import
QtQuick
.
Controls
.
Styles
.
Nemo
1.0
TextField
{
TextField
{
onActiveFocusChanged
:
{
if
(
activeFocus
)
NemoFocus
.
nemoregister
(
this
)
else
NemoFocus
.
nemoregister
(
null
)
}
style
:
TextFieldStyle
{
}
style
:
TextFieldStyle
{
}
}
}
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