Summary: This change integrates QtVirtualKeyboard into the Lock screen UI. A new button is added to the bottom row to toggle the appearance of the virtual keyboard. The actual keyboard is integrated through a Loader so that not having qtvirtualkeyboard plugin installed results in a graceful error instead of a failing lock screen. When the virtual keyboard is shown the remaining UI shifts upwards. This is done through adding the stack view into a ColumnLayout. Unfortunately this can result in an overlap with the clock. This needs some general improvement as on e.g. my system the clock is never really visible. To have the virtual keyboard working in the lock screen one also needs another change to kscreenlocker_greet. Test Plan: See screenshots Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D4870wilder-5.14
parent
1ce5ed3b7e
commit
b6705f8d73
3 changed files with 93 additions and 40 deletions
@ -0,0 +1,28 @@ |
||||
/******************************************************************** |
||||
This file is part of the KDE project. |
||||
|
||||
Copyright (C) 2017 Martin Gräßlin <mgraesslin@kde.org> |
||||
|
||||
This program is free software; you can redistribute it and/or modify |
||||
it under the terms of the GNU General Public License as published by |
||||
the Free Software Foundation; either version 2 of the License, or |
||||
(at your option) any later version. |
||||
|
||||
This program is distributed in the hope that it will be useful, |
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
GNU General Public License for more details. |
||||
|
||||
You should have received a copy of the GNU General Public License |
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. |
||||
*********************************************************************/ |
||||
import QtQuick 2.5 |
||||
import QtQuick.VirtualKeyboard 2.1 |
||||
|
||||
InputPanel { |
||||
id: inputPanel |
||||
property bool activated: false |
||||
active: activated && Qt.inputMethod.visible |
||||
visible: active |
||||
width: parent.width |
||||
} |
||||
Loading…
Reference in new issue