diff options
author | Kimmo Ollila <kimmo.ollila@theqtcompany.com> | 2016-01-13 09:25:29 +0200 |
---|---|---|
committer | Kimmo Ollila <kimmo.ollila@theqtcompany.com> | 2016-01-14 08:09:26 +0000 |
commit | e981ac3a5248439b2a7fdafef236dc432d61858f (patch) | |
tree | f4cc78377b724aff4f80c5f1522cfb2fc121bafa /basicsuite/launchersettings/SettingTitle.qml | |
parent | 4e7e83959734cea20141567cf3017cd35fab82cd (diff) |
Renewed Launcher Settings
Task-number: QTRD-3776
Change-Id: I69bc4f0bb1628feb73b4acc35908950095eb4515
Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
Diffstat (limited to 'basicsuite/launchersettings/SettingTitle.qml')
-rw-r--r-- | basicsuite/launchersettings/SettingTitle.qml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/basicsuite/launchersettings/SettingTitle.qml b/basicsuite/launchersettings/SettingTitle.qml new file mode 100644 index 0000000..31becd3 --- /dev/null +++ b/basicsuite/launchersettings/SettingTitle.qml @@ -0,0 +1,60 @@ +/****************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: http://www.qt.io/licensing/ +** +** This file is part of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:COMM$ +** +** 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 +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see http://www.qt.io/terms-conditions. For further +** information use the contact form at http://www.qt.io/contact-us. +** +** $QT_END_LICENSE$ +** +******************************************************************************/ +import QtQuick 2.2 +import QtQuick.Layouts 1.1 +import QtQuick.Controls 1.4 + +RowLayout { + id: root + property alias iconSource: icon.source + property alias titleText: title.text + property alias smallText: additionalText.text + + Layout.bottomMargin: engine.mm(6) + spacing: 0 + + Image { + id: icon + Layout.preferredWidth: mainLayout.width * .05 + Layout.preferredHeight: width * sourceSize.width/sourceSize.height + source: "" + fillMode: Image.PreserveAspectFit + anchors.bottom: parent.bottom + } + + Label { + id: title + text: "Display" + font.pixelSize: engine.titleFontSize() *.8 + anchors.bottom: parent.bottom + Layout.leftMargin: mainLayout.defaultMargin * .5 + Layout.preferredWidth: mainLayout.width * .5 + } + + Label { + id: additionalText + text: "" + font.pixelSize: engine.smallFontSize() + anchors.bottom: parent.bottom + Layout.fillWidth: true + elide: Label.ElideRight + } +} |