diff options
| author | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-03-31 03:25:20 +0200 |
|---|---|---|
| committer | Sander Ferdinand <sa.ferdinand@gmail.com> | 2018-03-31 03:25:20 +0200 |
| commit | e638ed0272ca042f3ad77b680665a91ed8a35cce (patch) | |
| tree | 1c91223dd243221d644a0b22d2dc94563b264fdf /components/LineEdit.qml | |
| parent | 959c2fcc32d515f90cb39933689a37418197a095 (diff) | |
| download | monzero-gui-e638ed0272ca042f3ad77b680665a91ed8a35cce.tar.gz monzero-gui-e638ed0272ca042f3ad77b680665a91ed8a35cce.tar.xz monzero-gui-e638ed0272ca042f3ad77b680665a91ed8a35cce.zip | |
Explicitly import MoneroComponents; prevent namespace pollution
Diffstat (limited to 'components/LineEdit.qml')
| -rw-r--r-- | components/LineEdit.qml | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/components/LineEdit.qml b/components/LineEdit.qml index f7266d2c..50d40ae3 100644 --- a/components/LineEdit.qml +++ b/components/LineEdit.qml @@ -27,7 +27,8 @@ // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import QtQuick 2.0 -import "." 1.0 + +import "../components" as MoneroComponents Item { id: item @@ -35,10 +36,10 @@ Item { property alias placeholderText: placeholderLabel.text property bool placeholderCenter: false - property string placeholderFontFamily: Style.fontRegular.name + property string placeholderFontFamily: MoneroComponents.Style.fontRegular.name property bool placeholderFontBold: false property int placeholderFontSize: 18 * scaleRatio - property string placeholderColor: Style.defaultFontColor + property string placeholderColor: MoneroComponents.Style.defaultFontColor property real placeholderOpacity: 0.25 property alias validator: input.validator @@ -105,11 +106,11 @@ Item { anchors.top: parent.top anchors.left: parent.left anchors.topMargin: 2 * scaleRatio - font.family: Style.fontLight.name + font.family: MoneroComponents.Style.fontLight.name font.pixelSize: labelFontSize font.bold: labelFontBold textFormat: Text.RichText - color: Style.defaultFontColor + color: MoneroComponents.Style.defaultFontColor onLinkActivated: item.labelLinkActivated() MouseArea { @@ -119,7 +120,7 @@ Item { } } - LabelButton { + MoneroComponents.LabelButton { id: copyButtonId text: qsTr("Copy") anchors.right: parent.right @@ -190,7 +191,7 @@ Item { visible: false } - Input { + MoneroComponents.Input { id: input anchors.fill: parent anchors.leftMargin: inlineIcon.visible ? 38 : 0 @@ -201,7 +202,7 @@ Item { onTextChanged: item.textUpdated() } - InlineButton { + MoneroComponents.InlineButton { id: inlineButtonId visible: item.inlineButtonText ? true : false anchors.right: parent.right |
