summaryrefslogtreecommitdiffstats
path: root/src/settingsui/settingsuiplugin
diff options
context:
space:
mode:
Diffstat (limited to 'src/settingsui/settingsuiplugin')
-rw-r--r--src/settingsui/settingsuiplugin/ShutdownPopup.qml108
-rw-r--r--src/settingsui/settingsuiplugin/icons.qrc5
-rw-r--r--src/settingsui/settingsuiplugin/newIcons/bluetooth_icon.svg1
-rw-r--r--src/settingsui/settingsuiplugin/newIcons/date-time_icon.svg1
-rw-r--r--src/settingsui/settingsuiplugin/newIcons/display_icon.svg1
-rw-r--r--src/settingsui/settingsuiplugin/newIcons/language_icon.svg1
-rw-r--r--src/settingsui/settingsuiplugin/newIcons/power_icon.svg1
-rw-r--r--src/settingsui/settingsuiplugin/pluginMain.qml17
-rw-r--r--src/settingsui/settingsuiplugin/settingsui.qrc21
-rw-r--r--src/settingsui/settingsuiplugin/settingsview.xml30
10 files changed, 0 insertions, 186 deletions
diff --git a/src/settingsui/settingsuiplugin/ShutdownPopup.qml b/src/settingsui/settingsuiplugin/ShutdownPopup.qml
deleted file mode 100644
index 4ae9480..0000000
--- a/src/settingsui/settingsuiplugin/ShutdownPopup.qml
+++ /dev/null
@@ -1,108 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the Device Utilities module of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:GPL$
-** 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 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$
-**
-****************************************************************************/
-import QtQuick 2.0
-import QtDeviceUtilities.QtButtonImageProvider 1.0
-
-Rectangle {
- id: shutdownPopup
- width: parent.width
- height: parent.height
- color: viewSettings.backgroundColor
- opacity: 0.9
-
- signal accepted()
- property bool shutdown: false
-
- function open(sd)
- {
- shutdown = sd
- if (sd) {
- shutDownConfirmText.text = qsTr("Shut down the system?")
- shutDownConfirm.text = qsTr("SHUT DOWN")
- }
- else {
- shutDownConfirmText.text = qsTr("Reboot the system?")
- shutDownConfirm.text = qsTr("REBOOT")
- }
-
- visible = true;
- }
-
- function close()
- {
- visible = false;
- }
-
- Rectangle {
- id: frame
- color: viewSettings.backgroundColor
- border.color: viewSettings.borderColor
- border.width: 3
- anchors.centerIn: parent
- width: parent.width * 0.35
- height: parent.height * 0.4
-
- Column {
- anchors.centerIn: parent
- spacing: viewSettings.pageMargin
-
- Text {
- id: shutDownConfirmText
- width: frame.width * 0.75
- height: frame.height * 0.25
- horizontalAlignment: Text.AlignHCenter
- anchors.horizontalCenter: parent.horizontalCenter
- fontSizeMode: Text.Fit
- minimumPixelSize: 1
- font.pixelSize: frame.width * 0.3
- color: "white"
- font.family: viewSettings.appFont
- font.styleName: "SemiBold"
- text: ""
- }
- QtButton {
- id: shutDownConfirm
- height: frame.height * 0.15
- width: frame.width * 0.45
- anchors.horizontalCenter: parent.horizontalCenter
- text: ""
- onClicked: shutdownPopup.accepted()
- }
- QtButton {
- height: frame.height * 0.15
- width: frame.width * 0.45
- anchors.horizontalCenter: parent.horizontalCenter
- borderColor: "transparent"
- fillColor: viewSettings.buttonGrayColor
- text: qsTr("CANCEL")
- onClicked: shutdownPopup.close()
- }
- }
- }
-}
diff --git a/src/settingsui/settingsuiplugin/icons.qrc b/src/settingsui/settingsuiplugin/icons.qrc
index 91c3a76..eddec64 100644
--- a/src/settingsui/settingsuiplugin/icons.qrc
+++ b/src/settingsui/settingsuiplugin/icons.qrc
@@ -31,21 +31,16 @@
<file>icons/Chevron-left_black.png</file>
<file>icons/Power_black_6x.png</file>
<file>newIcons/back_icon.svg</file>
- <file>newIcons/bluetooth_icon.svg</file>
<file>newIcons/close_icon.svg</file>
- <file>newIcons/date-time_icon.svg</file>
<file>newIcons/detail_icon.svg</file>
- <file>newIcons/display_icon.svg</file>
<file>newIcons/grid_icon.svg</file>
<file>newIcons/header_toggle_icon.svg</file>
<file>newIcons/info_icon.svg</file>
- <file>newIcons/language_icon.svg</file>
<file>newIcons/mouse_icon.svg</file>
<file>newIcons/mute_icon.svg</file>
<file>newIcons/network_icon.svg</file>
<file>newIcons/pause_icon.svg</file>
<file>newIcons/play_icon.svg</file>
- <file>newIcons/power_icon.svg</file>
<file>newIcons/settings_icon.svg</file>
<file>newIcons/settingsmenu_launcher_icon.svg</file>
<file>newIcons/stop_icon.svg</file>
diff --git a/src/settingsui/settingsuiplugin/newIcons/bluetooth_icon.svg b/src/settingsui/settingsuiplugin/newIcons/bluetooth_icon.svg
deleted file mode 100644
index 5dfaa97..0000000
--- a/src/settingsui/settingsuiplugin/newIcons/bluetooth_icon.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg id="bluetooth" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><title>bluetooth_icon</title><path d="M22.38,43.5a1.79,1.79,0,0,1-1.79-1.79V25.82l-9.08,7.86A1.79,1.79,0,1,1,9.18,31l10.37-9L9.1,13a1.79,1.79,0,0,1,2.34-2.7l9.16,7.92V2.29a1.79,1.79,0,0,1,3-1.35l11.34,9.81a1.79,1.79,0,0,1,0,2.7L25,22l9.88,8.55a1.79,1.79,0,0,1,0,2.7L23.55,43.06A1.79,1.79,0,0,1,22.38,43.5ZM24.17,26V37.81L31,31.9Zm0-19.8V18L31,12.1Z" style="fill:#fff"/></svg> \ No newline at end of file
diff --git a/src/settingsui/settingsuiplugin/newIcons/date-time_icon.svg b/src/settingsui/settingsuiplugin/newIcons/date-time_icon.svg
deleted file mode 100644
index 2b86128..0000000
--- a/src/settingsui/settingsuiplugin/newIcons/date-time_icon.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg id="date_time" data-name="date time" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><title>date-time_icon</title><polygon points="9.98 20.74 6.69 20.74 6.69 24.03 9.98 24.03 9.98 20.74 9.98 20.74" style="fill:#fff"/><polygon points="15.68 20.74 12.39 20.74 12.39 24.03 15.68 24.03 15.68 20.74 15.68 20.74" style="fill:#fff"/><polygon points="21.39 20.74 18.09 20.74 18.09 24.03 21.39 24.03 21.39 20.74 21.39 20.74" style="fill:#fff"/><polygon points="9.98 26.03 6.69 26.03 6.69 29.32 9.98 29.32 9.98 26.03 9.98 26.03" style="fill:#fff"/><polygon points="15.68 26.03 12.39 26.03 12.39 29.32 15.68 29.32 15.68 26.03 15.68 26.03" style="fill:#fff"/><polygon points="21.39 26.03 18.09 26.03 18.09 29.32 21.39 29.32 21.39 26.03 21.39 26.03" style="fill:#fff"/><path d="M38.59,21.72V7.28a1.7,1.7,0,0,0-1.7-1.7H32.08V4.45a1.7,1.7,0,1,0-3.4,0V5.58H10.44V4.45a1.7,1.7,0,1,0-3.4,0V5.58H2a1.7,1.7,0,0,0-1.7,1.7V35A1.7,1.7,0,0,0,2,36.69H24.43v0a10.53,10.53,0,1,0,14.16-15ZM3.74,9H7V10.1a1.7,1.7,0,0,0,3.4,0V9H28.68V10.1a1.7,1.7,0,0,0,3.4,0V9h3.11V15.6H3.74Zm0,24.33v-16H35.19v3.08a11,11,0,0,0-2.08-.2,10.43,10.43,0,0,0-6,1.9V20.74h-3.3V24H25A10.53,10.53,0,0,0,22.9,33.3Zm29.37,6.25A8.84,8.84,0,1,1,42,30.71,8.85,8.85,0,0,1,33.11,39.55Z" style="fill:#fff"/><path d="M39.47,30.71a.87.87,0,0,1-.88.88H33.11a.89.89,0,0,1-.88-.88V25.24a.88.88,0,1,1,1.76,0v4.59h4.6A.88.88,0,0,1,39.47,30.71Z" style="fill:#fff"/><path d="M33.2,31.59h-.09a.81.81,0,0,1-.62-.27.84.84,0,0,0,.62.26Z" style="fill:#fff"/></svg> \ No newline at end of file
diff --git a/src/settingsui/settingsuiplugin/newIcons/display_icon.svg b/src/settingsui/settingsuiplugin/newIcons/display_icon.svg
deleted file mode 100644
index 598d2ee..0000000
--- a/src/settingsui/settingsuiplugin/newIcons/display_icon.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg id="display" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><title>display_icon</title><path d="M42.16,32.5H1.83A1.83,1.83,0,0,1,0,30.67V5A1.83,1.83,0,0,1,1.83,3.17H42.16A1.83,1.83,0,0,1,44,5V30.67a1.83,1.83,0,0,1-1.84,1.83ZM3.67,28.84H40.33v-22H3.67v22Z" style="fill:#fff"/><path d="M28.76,40.83H15.24a1.83,1.83,0,1,1,0-3.67H28.76a1.83,1.83,0,1,1,0,3.67Z" style="fill:#fff"/><path d="M17.34,40.29a1.83,1.83,0,0,1-1.83-1.83V31.05a1.83,1.83,0,1,1,3.67,0v7.41a1.83,1.83,0,0,1-1.83,1.83Z" style="fill:#fff"/><path d="M26.66,40.29a1.83,1.83,0,0,1-1.83-1.83V31.05a1.83,1.83,0,1,1,3.67,0v7.41a1.83,1.83,0,0,1-1.83,1.83Z" style="fill:#fff"/></svg> \ No newline at end of file
diff --git a/src/settingsui/settingsuiplugin/newIcons/language_icon.svg b/src/settingsui/settingsuiplugin/newIcons/language_icon.svg
deleted file mode 100644
index f1235c5..0000000
--- a/src/settingsui/settingsuiplugin/newIcons/language_icon.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg id="language" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><title>language_icon</title><path d="M22,43.5A21.5,21.5,0,1,1,43.5,22,21.52,21.52,0,0,1,22,43.5ZM22,4.12A17.88,17.88,0,1,0,39.88,22,17.9,17.9,0,0,0,22,4.12Z" style="fill:#fff"/><path d="M22,42.6C15.22,42.6,9.7,33.36,9.7,22S15.22,1.41,22,1.41,34.29,10.64,34.29,22,28.78,42.6,22,42.6ZM22,3.22c-5.78,0-10.48,8.43-10.48,18.78S16.22,40.78,22,40.78,32.48,32.36,32.48,22,27.78,3.22,22,3.22Z" style="fill:#fff"/><path d="M22,42.6a.9.9,0,0,1-.91-.91V2.31A.9.9,0,0,1,22,1.41,20.59,20.59,0,0,1,22,42.6ZM22.9,3.24V40.76a18.78,18.78,0,0,0,0-37.53Z" style="fill:#fff"/><path d="M40.41,29.85H3.59a.91.91,0,0,1-.85-.59,20.37,20.37,0,0,1,0-14.52.91.91,0,0,1,.85-.59H40.41a.91.91,0,0,1,.85.59,20.34,20.34,0,0,1,0,14.52.91.91,0,0,1-.85.59ZM4.23,28H39.77a18.45,18.45,0,0,0,0-12.07H4.23A18.49,18.49,0,0,0,4.23,28Z" style="fill:#fff"/></svg> \ No newline at end of file
diff --git a/src/settingsui/settingsuiplugin/newIcons/power_icon.svg b/src/settingsui/settingsuiplugin/newIcons/power_icon.svg
deleted file mode 100644
index b922c0e..0000000
--- a/src/settingsui/settingsuiplugin/newIcons/power_icon.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg id="power" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 44 44"><title>power_icon</title><path d="M22,17.4a1.82,1.82,0,0,1-1.82-1.82V2.3a1.82,1.82,0,0,1,3.65,0V15.57A1.82,1.82,0,0,1,22,17.4Z" style="fill:#fff"/><path d="M22,43.48A19.15,19.15,0,0,1,15.7,6.25,1.82,1.82,0,0,1,16.9,9.7a15.51,15.51,0,1,0,10.19,0,1.82,1.82,0,0,1,1.2-3.45A19.15,19.15,0,0,1,22,43.48Z" style="fill:#fff"/></svg> \ No newline at end of file
diff --git a/src/settingsui/settingsuiplugin/pluginMain.qml b/src/settingsui/settingsuiplugin/pluginMain.qml
index 28e2464..5701034 100644
--- a/src/settingsui/settingsuiplugin/pluginMain.qml
+++ b/src/settingsui/settingsuiplugin/pluginMain.qml
@@ -31,7 +31,6 @@ import QtQuick.Layouts 1.2
import QtQuick.Controls 2.0
import Qt.labs.settings 1.0
import QtQuick.XmlListModel 2.0
-import QtDeviceUtilities.LocalDeviceSettings 1.0
import QtDeviceUtilities.NetworkSettings 1.0
import QtGraphicalEffects 1.0
@@ -125,20 +124,4 @@ Rectangle {
anchors.leftMargin: pluginMain.margin * 2
anchors.rightMargin: pluginMain.margin * 2
}
-
- ShutdownPopup {
- id: shutdownPopup
- visible: false
-
- onAccepted: {
- if (shutdown) {
- console.log("Powering off!")
- LocalDevice.powerOff()
- }
- else {
- console.log("Rebooting!")
- LocalDevice.reboot()
- }
- }
- }
}
diff --git a/src/settingsui/settingsuiplugin/settingsui.qrc b/src/settingsui/settingsuiplugin/settingsui.qrc
index ad2a9b6..673bb6a 100644
--- a/src/settingsui/settingsuiplugin/settingsui.qrc
+++ b/src/settingsui/settingsuiplugin/settingsui.qrc
@@ -1,13 +1,8 @@
<RCC>
<qresource prefix="/">
<file>pluginMain.qml</file>
- <file>../bluetooth/Bluetooth.qml</file>
- <file>../bluetooth/Discovery.qml</file>
<file>../common/CustomTableView.qml</file>
<file>../common/HandwritingModeButton.qml</file>
- <file>../display/Display.qml</file>
- <file>../locale/Language.qml</file>
- <file>../locale/RegionSelect.qml</file>
<file>../network/AddressListEntry.qml</file>
<file>../network/ComboBoxEntry.qml</file>
<file>../network/EditWiredSettings.qml</file>
@@ -18,24 +13,13 @@
<file>../network/WifiSettings.qml</file>
<file>../network/WifiSignalMonitor.qml</file>
<file>../network/WiredSettings.qml</file>
- <file>../timedate/AnalogClock.qml</file>
- <file>../timedate/ClockHand.qml</file>
- <file>../timedate/CustomCalendar.qml</file>
- <file>../timedate/TimeDate.qml</file>
- <file>../timedate/TimezonesView.qml</file>
<file>settingsview.xml</file>
- <file>../power/Power.qml</file>
- <file>../timedate/ManualTime.qml</file>
- <file>../timedate/CustomComboBox.qml</file>
<file>../common/CustomSwitch.qml</file>
<file>../network/NetworkListView.qml</file>
<file>../network/PassphraseEnter.qml</file>
- <file>../locale/TableKey.qml</file>
- <file>../locale/TableValue.qml</file>
<file>SettingsHeader.qml</file>
<file>SettingsDelegate.qml</file>
<file>SettingsTitleItem.qml</file>
- <file>ShutdownPopup.qml</file>
<file>icons/Alert_yellow_1x.png</file>
<file>icons/Audio_qt_6x.png</file>
<file>icons/Bluetooth_qt_1x.png</file>
@@ -67,21 +51,16 @@
<file>icons/Chevron-left_black.png</file>
<file>icons/Power_black_6x.png</file>
<file>newIcons/back_icon.svg</file>
- <file>newIcons/bluetooth_icon.svg</file>
<file>newIcons/close_icon.svg</file>
- <file>newIcons/date-time_icon.svg</file>
<file>newIcons/detail_icon.svg</file>
- <file>newIcons/display_icon.svg</file>
<file>newIcons/grid_icon.svg</file>
<file>newIcons/header_toggle_icon.svg</file>
<file>newIcons/info_icon.svg</file>
- <file>newIcons/language_icon.svg</file>
<file>newIcons/mouse_icon.svg</file>
<file>newIcons/mute_icon.svg</file>
<file>newIcons/network_icon.svg</file>
<file>newIcons/pause_icon.svg</file>
<file>newIcons/play_icon.svg</file>
- <file>newIcons/power_icon.svg</file>
<file>newIcons/settings_icon.svg</file>
<file>newIcons/settingsmenu_launcher_icon.svg</file>
<file>newIcons/stop_icon.svg</file>
diff --git a/src/settingsui/settingsuiplugin/settingsview.xml b/src/settingsui/settingsuiplugin/settingsview.xml
index 2749cb8..d7285ea 100644
--- a/src/settingsui/settingsuiplugin/settingsview.xml
+++ b/src/settingsui/settingsuiplugin/settingsview.xml
@@ -7,35 +7,5 @@
<path>network</path>
<icon>newIcons/network_icon.svg</icon>
</item>
- <item>
- <title>Display</title>
- <view>Display</view>
- <path>display</path>
- <icon>newIcons/display_icon.svg</icon>
- </item>
- <item>
- <title>Date &amp; Time</title>
- <view>TimeDate</view>
- <path>timedate</path>
- <icon>newIcons/date-time_icon.svg</icon>
- </item>
- <item>
- <title>Language &amp; Region</title>
- <view>Language</view>
- <path>locale</path>
- <icon>newIcons/language_icon.svg</icon>
- </item>
- <item>
- <title>Bluetooth</title>
- <view>Bluetooth</view>
- <path>bluetooth</path>
- <icon>newIcons/bluetooth_icon.svg</icon>
- </item>
- <item>
- <title>Power</title>
- <view>Power</view>
- <path>power</path>
- <icon>newIcons/power_icon.svg</icon>
- </item>
</settings>
</xml>