Changeset View
Changeset View
Standalone View
Standalone View
applets/mediacontroller/contents/ui/configView.qml
- This file was added.
1 | /*************************************************************************** | ||||
---|---|---|---|---|---|
2 | * Copyright 2020 Carson Black <uhhadd@gmail.com> * | ||||
3 | * * | ||||
4 | * This program is free software; you can redistribute it and/or modify * | ||||
5 | * it under the terms of the GNU Library General Public License as * | ||||
6 | * published by the Free Software Foundation; either version 2 of the * | ||||
7 | * License, or (at your option) any later version. * | ||||
8 | * * | ||||
9 | * This program is distributed in the hope that it will be useful, * | ||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||||
12 | * GNU Library General Public License for more details. * | ||||
13 | * * | ||||
14 | * You should have received a copy of the GNU Library General Public * | ||||
15 | * License along with this program; if not, write to the * | ||||
16 | * Free Software Foundation, Inc., * | ||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||||
18 | ***************************************************************************/ | ||||
19 | | ||||
20 | import QtQuick 2.5 | ||||
21 | import QtQuick.Controls 2.7 | ||||
22 | | ||||
23 | import org.kde.kirigami 2.3 as Kirigami | ||||
24 | | ||||
25 | Item { | ||||
26 | id: viewConfig | ||||
27 | | ||||
28 | property alias cfg_allowChangingSources: allowOverride.checked | ||||
29 | | ||||
30 | ButtonGroup { | ||||
31 | buttons: formLayout.children | ||||
32 | } | ||||
33 | | ||||
34 | Kirigami.FormLayout { | ||||
35 | id: formLayout | ||||
36 | RadioButton { | ||||
37 | id: automatic | ||||
38 | text: i18n("Automatically show current media player") | ||||
39 | checked: !cfg_allowChangingSources | ||||
40 | } | ||||
41 | RadioButton { | ||||
42 | id: allowOverride | ||||
43 | text: i18n("Allow me to override which media player is shown") | ||||
44 | } | ||||
45 | } | ||||
46 | } | ||||
47 | No newline at end of file |