diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-07-18 15:00:53 +0200 |
|---|---|---|
| committer | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-07-18 16:16:46 +0200 |
| commit | 4f4d969416d2b56d0efc3b9a3c5b6d979e3b631e (patch) | |
| tree | 3f71e03d828905d7c93d77f316f528cf67257e3d /components/InputMulti.qml | |
| parent | 15c5269e350354e864e5ece458d762e76387eebe (diff) | |
| download | monzero-gui-4f4d969416d2b56d0efc3b9a3c5b6d979e3b631e.tar.gz monzero-gui-4f4d969416d2b56d0efc3b9a3c5b6d979e3b631e.tar.xz monzero-gui-4f4d969416d2b56d0efc3b9a3c5b6d979e3b631e.zip | |
Extra properties for components LineEditMulti and RemoteNodeEdit
Diffstat (limited to 'components/InputMulti.qml')
| -rw-r--r-- | components/InputMulti.qml | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/components/InputMulti.qml b/components/InputMulti.qml index b8005354..f7706d75 100644 --- a/components/InputMulti.qml +++ b/components/InputMulti.qml @@ -32,31 +32,25 @@ import QtQuick 2.7 import "../js/TxUtils.js" as TxUtils import "../components" as MoneroComponents - TextArea { - property bool error: false - property bool addressValidation: false - property bool wrapAnywhere: true property int fontSize: 18 * scaleRatio property bool fontBold: false + property string fontColor: MoneroComponents.Style.defaultFontColor + + property bool mouseSelection: true + property bool error: false + property bool addressValidation: false id: textArea font.family: MoneroComponents.Style.fontRegular.name + color: fontColor font.pixelSize: fontSize font.bold: fontBold horizontalAlignment: TextInput.AlignLeft - selectByMouse: true - color: MoneroComponents.Style.defaultFontColor + selectByMouse: mouseSelection selectionColor: MoneroComponents.Style.dimmedFontColor selectedTextColor: MoneroComponents.Style.defaultFontColor - wrapMode: { - if(wrapAnywhere){ - return Text.WrapAnywhere; - } else { - return Text.WordWrap; - } - } onTextChanged: { if(addressValidation){ // js replacement for `RegExpValidator { regExp: /[0-9A-Fa-f]{95}/g }` |
