diff options
author | Timothy Pearson <[email protected]> | 2013-01-24 13:24:45 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-24 13:24:45 -0600 |
commit | 8874c8d8f787c27407de71f05419febfd83a1024 (patch) | |
tree | 2265516f2fdc044a5565e83110a37677382bafa3 /src/kpowersave.cpp | |
parent | 384d177b84c97b0fa7d9577116b692252a270d4f (diff) | |
download | tdepowersave-8874c8d8f787c27407de71f05419febfd83a1024.tar.gz tdepowersave-8874c8d8f787c27407de71f05419febfd83a1024.zip |
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'src/kpowersave.cpp')
-rw-r--r-- | src/kpowersave.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/kpowersave.cpp b/src/kpowersave.cpp index 85a9440..33a86f8 100644 --- a/src/kpowersave.cpp +++ b/src/kpowersave.cpp @@ -67,7 +67,7 @@ kpowersave::kpowersave( bool force_acpi_check, bool trace_func ) : KSystemTray(0 resume_result = 0; - config = KGlobal::config(); + config = TDEGlobal::config(); config->setGroup("General"); if(!config->readBoolEntry("AlreadyStarted", false) || force_acpi_check){ config->writeEntry("AlreadyStarted", true); @@ -504,7 +504,7 @@ void kpowersave::updateTooltip(){ /*! * \b TQT_SLOT to starts the Yast2-power-management module. This called by the menuentry * with ID \ref YAST_MODULE_MENU_ID, named "Start YaST2 Power Management Module". - * It create a new KProcess and execute "/sbin/yast2 power-management" with tdesu. + * It create a new TDEProcess and execute "/sbin/yast2 power-management" with tdesu. */ void kpowersave::do_config(){ kdDebugFuncIn(trace); @@ -512,12 +512,12 @@ void kpowersave::do_config(){ #ifdef ENABLE_YAST_ENTRY delete yast2; - yast2 = new KProcess; + yast2 = new TDEProcess; *yast2 << "tdesu" << "--nonewdcop" << "/sbin/yast2" << "power-management"; - connect(yast2, TQT_SIGNAL(processExited(KProcess *)), - TQT_SLOT(slotConfigProcessExited(KProcess *))); - if(!yast2->start(KProcess::NotifyOnExit)) + connect(yast2, TQT_SIGNAL(processExited(TDEProcess *)), + TQT_SLOT(slotConfigProcessExited(TDEProcess *))); + if(!yast2->start(TDEProcess::NotifyOnExit)) { delete yast2; yast2 = NULL; @@ -642,10 +642,10 @@ void kpowersave::observeConfigDlg(){ } /*! - * \b TQT_SLOT which called from \ref do_config() if the 'tdesu yast2' KProcess exited. + * \b TQT_SLOT which called from \ref do_config() if the 'tdesu yast2' TDEProcess exited. * This function control the return value and display if needed a errormessage on failure. */ -void kpowersave::slotConfigProcessExited(KProcess *proc){ +void kpowersave::slotConfigProcessExited(TDEProcess *proc){ kdDebugFuncIn(trace); #ifdef ENABLE_YAST_ENTRY |