cool-retro-term
43 строки · 1.4 Кб
1/*******************************************************************************
2* Copyright (c) 2013-2021 "Filippo Scognamiglio"
3* https://github.com/Swordfish90/cool-retro-term
4*
5* This file is part of cool-retro-term.
6*
7* cool-retro-term is free software: you can redistribute it and/or modify
8* it under the terms of the GNU General Public License as published by
9* the Free Software Foundation, either version 3 of the License, or
10* (at your option) any later version.
11*
12* This program is distributed in the hope that it will be useful,
13* but WITHOUT ANY WARRANTY; without even the implied warranty of
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15* GNU General Public License for more details.
16*
17* You should have received a copy of the GNU General Public License
18* along with this program. If not, see <http://www.gnu.org/licenses/>.
19*******************************************************************************/
20import QtQuick 2.2
21import QtQuick.Controls 2.0
22import QtQuick.Layouts 1.1
23
24import "Components"
25
26RowLayout {
27property alias value: slider.value
28property alias stepSize: slider.stepSize
29property alias minimumValue: slider.from
30property alias maximumValue: slider.to
31property real maxMultiplier: 100
32
33id: setting_component
34spacing: 10
35Slider {
36id: slider
37stepSize: parent.stepSize
38Layout.fillWidth: true
39}
40SizedLabel {
41text: Math.round(value * maxMultiplier) + "%"
42}
43}
44