2013-10-23 13:34:08 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
2016-01-15 14:59:14 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2013-10-23 13:34:08 +02:00
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:59:14 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2013-10-23 13:34:08 +02:00
|
|
|
**
|
2015-09-18 11:34:48 +02:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
2016-01-15 14:59:14 +01:00
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2013-10-23 13:34:08 +02:00
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
import QtQuick 2.1
|
|
|
|
|
import HelperWidgets 2.0
|
|
|
|
|
import QtQuick.Layouts 1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Section {
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
caption: qsTr("Text Input")
|
|
|
|
|
|
2014-04-16 09:59:28 +02:00
|
|
|
property bool isTextInput: false
|
2014-03-25 15:53:55 +01:00
|
|
|
id: textInputSection
|
|
|
|
|
|
2013-10-23 13:34:08 +02:00
|
|
|
SectionLayout {
|
|
|
|
|
rows: 4
|
|
|
|
|
columns: 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Label {
|
2014-04-16 09:59:28 +02:00
|
|
|
visible: textInputSection.isTextInput
|
2013-10-23 13:34:08 +02:00
|
|
|
text: qsTr("Input mask")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LineEdit {
|
2014-04-16 09:59:28 +02:00
|
|
|
visible: textInputSection.isTextInput
|
2013-10-23 13:34:08 +02:00
|
|
|
backendValue: backendValues.inputMask
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
2014-04-16 09:59:28 +02:00
|
|
|
visible: textInputSection.isTextInput
|
2014-03-25 15:53:55 +01:00
|
|
|
text: qsTr("Echo mode")
|
2013-10-23 13:34:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ComboBox {
|
2014-04-16 09:59:28 +02:00
|
|
|
visible: textInputSection.isTextInput
|
2013-10-23 13:34:08 +02:00
|
|
|
Layout.fillWidth: true
|
|
|
|
|
backendValue: backendValues.echoMode
|
2013-12-16 12:50:32 +01:00
|
|
|
scope: "TextInput"
|
2013-10-23 13:34:08 +02:00
|
|
|
model: ["Normal", "Password", "PasswordEchoOnEdit", "NoEcho"]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
2014-04-16 09:59:28 +02:00
|
|
|
visible: textInputSection.isTextInput
|
2013-10-23 13:34:08 +02:00
|
|
|
text: qsTr("Pass. char")
|
2014-10-30 14:45:56 +01:00
|
|
|
tooltip: qsTr("Character displayed when users enter passwords.")
|
2013-10-23 13:34:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
LineEdit {
|
2014-04-16 09:59:28 +02:00
|
|
|
visible: textInputSection.isTextInput
|
2013-10-23 13:34:08 +02:00
|
|
|
backendValue: backendValues.passwordCharacter
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Label {
|
|
|
|
|
text: qsTr("Flags")
|
|
|
|
|
Layout.alignment: Qt.AlignTop
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
SecondColumnLayout {
|
|
|
|
|
ColumnLayout {
|
|
|
|
|
CheckBox {
|
|
|
|
|
text: qsTr("Read only")
|
|
|
|
|
backendValue: backendValues.readOnly;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
|
text: qsTr("Cursor visible")
|
|
|
|
|
backendValue: backendValues.cursorVisible;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
|
text: qsTr("Active focus on press")
|
|
|
|
|
backendValue: backendValues.activeFocusOnPress;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
|
text: qsTr("Auto scroll")
|
|
|
|
|
backendValue: backendValues.autoScroll;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|