fix virtual keyboard on Plasma Mobile
Summary: the newly introduced resize button shouldn't be visible on the phone and for some reason using a ToolButton prevents the qml to load at all on the phone (the problem seems right into the C++ part of ToolButton as is broken on every QQC2 style) Test Plan: work again on phone, still work on laptop Reviewers: #plasma, bshah Reviewed By: #plasma, bshah Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D17483
This commit is contained in:
parent
533f43ad02
commit
4001834da8
1 changed files with 4 additions and 1 deletions
|
@ -20,6 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
import QtQuick 2.0
|
||||
import QtQuick.Controls 2.3
|
||||
import QtQuick.VirtualKeyboard 2.1
|
||||
import org.kde.kirigami 2.5 as Kirigami
|
||||
|
||||
Item {
|
||||
id: window
|
||||
|
@ -32,8 +33,10 @@ Item {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.bottom: parent.bottom
|
||||
}
|
||||
ToolButton {
|
||||
//NOTE: ToolButton for some reasons breaks the virtual keyboard loading on Plasma Mobile
|
||||
Button {
|
||||
id: resizeButton
|
||||
visible: !Kirigami.Settings.isMobile //don't show on handheld devices
|
||||
flat: true
|
||||
display: AbstractButton.IconOnly
|
||||
icon.name: "transform-scale"
|
||||
|
|
Loading…
Reference in a new issue