From 7d335195a06f3453de82ee870c699652a55a2bfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 22 Sep 2013 14:57:26 +0200 Subject: Add support for freeze suspend state --- kcontrol/hwmanager/devicepropsdlg.cpp | 1 + kcontrol/hwmanager/devicepropsdlgbase.ui | 23 ++++++++++++++++++----- kcontrol/hwmanager/hwmanager.desktop | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) (limited to 'kcontrol/hwmanager') diff --git a/kcontrol/hwmanager/devicepropsdlg.cpp b/kcontrol/hwmanager/devicepropsdlg.cpp index a4849af54..30778dac2 100644 --- a/kcontrol/hwmanager/devicepropsdlg.cpp +++ b/kcontrol/hwmanager/devicepropsdlg.cpp @@ -714,6 +714,7 @@ void DevicePropertiesDialog::populateDeviceInformation() { base->comboSystemHibernationMethod->setCurrentItem(m_hibernationComboMap[rdevice->hibernationMethod()]); base->labelSystemUserCanStandby->setText((rdevice->canStandby())?i18n("Yes"):i18n("No")); + base->labelSystemUserCanFreeze->setText((rdevice->canFreeze())?i18n("Yes"):i18n("No")); base->labelSystemUserCanSuspend->setText((rdevice->canSuspend())?i18n("Yes"):i18n("No")); base->labelSystemUserCanHibernate->setText((rdevice->canHibernate())?i18n("Yes"):i18n("No")); base->labelSystemUserCanPowerOff->setText((rdevice->canPowerOff())?i18n("Yes"):i18n("No")); diff --git a/kcontrol/hwmanager/devicepropsdlgbase.ui b/kcontrol/hwmanager/devicepropsdlgbase.ui index 5f6c2c166..74afdf5f3 100644 --- a/kcontrol/hwmanager/devicepropsdlgbase.ui +++ b/kcontrol/hwmanager/devicepropsdlgbase.ui @@ -1385,12 +1385,12 @@ unnamed - User Can Request Suspend + User Can Request Freeze - labelSystemUserCanSuspend + labelSystemUserCanFreeze @@ -1398,12 +1398,12 @@ unnamed - User Can Request Hibernation + User Can Request Suspend - labelSystemUserCanHibernate + labelSystemUserCanSuspend @@ -1411,10 +1411,23 @@ unnamed - User Can Request Shutdown + User Can Request Hibernation + + labelSystemUserCanHibernate + + + + + unnamed + + + User Can Request Shutdown + + + labelSystemUserCanPowerOff diff --git a/kcontrol/hwmanager/hwmanager.desktop b/kcontrol/hwmanager/hwmanager.desktop index 1b006504b..d8a870f98 100644 --- a/kcontrol/hwmanager/hwmanager.desktop +++ b/kcontrol/hwmanager/hwmanager.desktop @@ -1,5 +1,5 @@ [Desktop Entry] -Exec=tdecmshell kwmanager +Exec=tdecmshell hwmanager Icon=background Type=Application DocPath=kcontrol/hwmanager/index.html -- cgit v1.2.1