cool-retro-term

Форк
0
/
SimpleSlider.qml 
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
*******************************************************************************/
20
import QtQuick 2.2
21
import QtQuick.Controls 2.0
22
import QtQuick.Layouts 1.1
23

24
import "Components"
25

26
RowLayout {
27
    property alias value: slider.value
28
    property alias stepSize: slider.stepSize
29
    property alias minimumValue: slider.from
30
    property alias maximumValue: slider.to
31
    property real maxMultiplier: 100
32

33
    id: setting_component
34
    spacing: 10
35
    Slider {
36
        id: slider
37
        stepSize: parent.stepSize
38
        Layout.fillWidth: true
39
    }
40
    SizedLabel {
41
        text: Math.round(value * maxMultiplier) + "%"
42
    }
43
}
44

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.