2
0

KCM.qml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 org.kde.kcm 1.0
  22. TabView {
  23. property real minTemp: 30.0
  24. property real maxTemp: 90.0
  25. property string unit: "Celsius"
  26. id: tabView
  27. frameVisible: true
  28. implicitHeight: 480
  29. implicitWidth: 640
  30. Tab {
  31. title: i18n("Sensors")
  32. SensorsTab {
  33. loader: kcm.loader
  34. }
  35. }
  36. Tab {
  37. title: i18n("PwmFans")
  38. PwmFansTab {
  39. size: 1
  40. minTemp: tabView.minTemp
  41. maxTemp: tabView.maxTemp
  42. unit: tabView.unit
  43. loader: kcm.loader
  44. }
  45. }
  46. Tab {
  47. title: i18n("Configfile")
  48. ConfigfileTab {
  49. loader: kcm.loader
  50. }
  51. }
  52. Tab {
  53. title: i18n("Settings")
  54. SettingsTab {
  55. id: settingsTab
  56. minTemp: tabView.minTemp
  57. maxTemp: tabView.maxTemp
  58. onMinTempChanged: tabView.minTemp = minTemp
  59. onMaxTempChanged: tabView.maxTemp = maxTemp
  60. onUnitChanged: tabView.unit = unit
  61. loader: kcm.loader
  62. systemdCom: kcm.hasSystemdCommunicator() ? kcm.systemdCom : null
  63. }
  64. }
  65. SystemPalette {
  66. id: palette
  67. }
  68. }