Warning, /plasma/kwin/tests/inputmethodstest.qml is written in an unsupported language. File is not indexed.

0001 /*
0002     KWin - the KDE window manager
0003     This file is part of the KDE project.
0004 
0005     SPDX-FileCopyrightText: 2016 Martin Gräßlin <mgraesslin@kde.org>
0006 
0007     SPDX-License-Identifier: GPL-2.0-or-later
0008 */
0009 import QtQuick.Controls
0010 import QtQuick.Layouts
0011 
0012 GridLayout {
0013     columns: 2
0014     Label {
0015         text: "Normal:"
0016     }
0017     TextField {
0018     }
0019     Label {
0020         text: "Digits:"
0021     }
0022     TextField {
0023         inputMethodHints: Qt.ImhDigitsOnly
0024     }
0025     Label {
0026         text: "Numbers:"
0027     }
0028     TextField {
0029         inputMethodHints: Qt.ImhFormattedNumbersOnly
0030     }
0031     Label {
0032         text: "Uppercase:"
0033     }
0034     TextField {
0035         inputMethodHints: Qt.ImhUppercaseOnly
0036     }
0037     Label {
0038         text: "Lowercase:"
0039     }
0040     TextField {
0041         inputMethodHints: Qt.ImhLowercaseOnly
0042     }
0043     Label {
0044         text: "Phone:"
0045     }
0046     TextField {
0047         inputMethodHints: Qt.ImhDialableCharactersOnly
0048     }
0049     Label {
0050         text: "Email:"
0051     }
0052     TextField {
0053         inputMethodHints: Qt.ImhEmailCharactersOnly
0054     }
0055     Label {
0056         text: "Url:"
0057     }
0058     TextField {
0059         inputMethodHints: Qt.ImhUrlCharactersOnly
0060     }
0061     Label {
0062         text: "Date:"
0063     }
0064     TextField {
0065         inputMethodHints: Qt.ImhDate
0066     }
0067     Label {
0068         text: "Time:"
0069     }
0070     TextField {
0071         inputMethodHints: Qt.ImhTime
0072     }
0073 }