diff options
author | Bramastyo Harimukti Santoso <bramastyo.harimukti.santoso@pelagicore.com> | 2018-10-10 14:51:51 +0200 |
---|---|---|
committer | Daniel d'Andrada <daniel.dandrada@luxoft.com> | 2018-10-17 12:31:15 +0000 |
commit | f3fe6919cabf131d10265c53ec4fbb0daeeb5329 (patch) | |
tree | 214ed6f073c5e8f6b437f0ee49fee670eff5f72e /apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml | |
parent | 060b4302f3ae662b4137f222caf7b4ea23faa0d4 (diff) |
[downloads] rename appstore to downloads
- app store is not the correct name as we have nothing to purchase.
hence, the application is renamed to downloads instead.
Task-number: AUTOSUITE-634
Change-Id: I390d893e2dae3001a00a24223f6fd6444b25df21
Reviewed-by: Daniel d'Andrada <daniel.dandrada@luxoft.com>
Diffstat (limited to 'apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml')
-rw-r--r-- | apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml b/apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml new file mode 100644 index 00000000..154f0ef8 --- /dev/null +++ b/apps/com.pelagicore.downloads/controls/DownloadsToolsColumn.qml @@ -0,0 +1,69 @@ +/**************************************************************************** +** +** Copyright (C) 2017-2018 Pelagicore AG +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the Neptune 3 IVI UI. +** +** $QT_BEGIN_LICENSE:GPL-QTAS$ +** Commercial License Usage +** Licensees holding valid commercial Qt Automotive Suite 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 https://www.qt.io/terms-conditions. +** For further information use the contact form at https://www.qt.io/contact-us. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3 or (at your option) any later version +** approved by the KDE Free Qt Foundation. The licenses are as published by +** the Free Software Foundation and appearing in the file LICENSE.GPL3 +** 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. +** +** $QT_END_LICENSE$ +** +** SPDX-License-Identifier: GPL-3.0 +** +****************************************************************************/ + +import QtQuick 2.10 +import QtQuick.Controls 2.3 +import shared.utils 1.0 +import shared.com.pelagicore.styles.neptune 3.0 +import QtQuick.Controls 2.2 +import QtQuick.Layouts 1.2 + +// FIXME: Delete this in favor of ToolsColumn from controls module +ColumnLayout { + id: root + + property alias model: toolsRepeater.model + property string currentTool: "installed" + signal toolClicked(var storeType, var index) + + ButtonGroup { id: buttonGroup } + + Repeater { + id: toolsRepeater + Layout.alignment: Qt.AlignHCenter + + ToolButton { + Layout.alignment: Qt.AlignHCenter + baselineOffset: 0 + checkable: true + checked: root.currentTool === model.name + icon.name: model.name ? (checked ? "ic-" + model.name.toLowerCase() + "_ON" : "ic-" + model.name.toLowerCase() + "_OFF") : "" + display: AbstractButton.TextUnderIcon + text: qsTr(model.name) + font.pixelSize: NeptuneStyle.fontSizeXS + onClicked: { + root.toolClicked(model.name, index); + root.currentTool = model.name; + } + ButtonGroup.group: buttonGroup + } + } +} |