KCM.qml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.4
  21. import QtQuick.Window 2.2
  22. import QtQuick.Dialogs 1.2
  23. import QtQuick.Layouts 1.1
  24. import org.kde.kcm 1.0
  25. TabView {
  26. property real minTemp: 30.0
  27. property real maxTemp: 90.0
  28. property string unit: "Celsius"
  29. id: tabView
  30. anchors.fill: parent
  31. anchors.margins: 4
  32. frameVisible: true
  33. implicitHeight: 480
  34. implicitWidth: 640
  35. Tab {
  36. title: i18n("Sensors")
  37. SensorsTab {
  38. loader: kcm.loader
  39. }
  40. }
  41. Tab {
  42. title: i18n("PwmFans")
  43. PwmFansTab {
  44. size: sizeSlider.value
  45. minTemp: tabView.minTemp
  46. maxTemp: tabView.maxTemp
  47. unit: tabView.unit
  48. loader: kcm.loader
  49. }
  50. }
  51. Tab {
  52. title: i18n("Configfile")
  53. ConfigfileTab {
  54. loader: kcm.loader
  55. }
  56. }
  57. Tab {
  58. title: i18n("Settings")
  59. SettingsTab {
  60. id: settingsTab
  61. minTemp: tabView.minTemp
  62. maxTemp: tabView.maxTemp
  63. onMinTempChanged: tabView.minTemp = minTemp
  64. onMaxTempChanged: tabView.maxTemp = maxTemp
  65. onUnitChanged: tabView.unit = unit
  66. loader: kcm.loader
  67. systemdCom: kcm.systemdCom
  68. }
  69. }
  70. SystemPalette {
  71. id: palette
  72. }
  73. }