KCM.qml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * Copyright (C) 2015 Malte Veerman <maldela@halloarsch.de>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU Lesser General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (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 Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public License along
  15. * with this program; if not, write to the Free Software Foundation, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  17. *
  18. */
  19. import QtQuick 2.4
  20. import QtQuick.Controls 1.3
  21. import QtQuick.Controls.Styles 1.3
  22. import QtQuick.Window 2.2
  23. import QtQuick.Dialogs 1.2
  24. import QtQuick.Layouts 1.1
  25. import org.kde.kcm 1.0
  26. TabView {
  27. property real minTemp: 30.0
  28. property real maxTemp: 90.0
  29. property string unit: "Celsius"
  30. id: tabView
  31. anchors.fill: parent
  32. anchors.margins: 4
  33. frameVisible: true
  34. implicitHeight: 480
  35. implicitWidth: 640
  36. Tab {
  37. title: i18n("Sensors")
  38. SensorsTab {
  39. loader: kcm.loader
  40. }
  41. }
  42. Tab {
  43. title: i18n("PwmFans")
  44. PwmFansTab {
  45. size: sizeSlider.value
  46. minTemp: tabView.minTemp
  47. maxTemp: tabView.maxTemp
  48. unit: tabView.unit
  49. loader: kcm.loader
  50. }
  51. }
  52. Tab {
  53. title: i18n("Configfile")
  54. ConfigfileTab {
  55. loader: kcm.loader
  56. }
  57. }
  58. Tab {
  59. title: i18n("Settings")
  60. SettingsTab {
  61. id: settingsTab
  62. minTemp: tabView.minTemp
  63. maxTemp: tabView.maxTemp
  64. onMinTempChanged: tabView.minTemp = minTemp
  65. onMaxTempChanged: tabView.maxTemp = maxTemp
  66. onUnitChanged: tabView.unit = unit
  67. loader: kcm.loader
  68. systemdCom: kcm.systemdCom
  69. }
  70. }
  71. SystemPalette {
  72. id: palette
  73. }
  74. }