From 2877440fbda2e245d04f534ed51d7cb7c0a06482 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 Jan 2013 00:23:57 -0600 Subject: Rename KApplication to TDEApplication to avoid conflicts with KDE4 --- kdelirc/kcmlirc/addaction.cpp | 4 ++-- kdelirc/kcmlirc/editaction.cpp | 4 ++-- kdelirc/kcmlirc/kcmlirc.cpp | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'kdelirc/kcmlirc') diff --git a/kdelirc/kcmlirc/addaction.cpp b/kdelirc/kcmlirc/addaction.cpp index c12b9f0..d5df7ec 100644 --- a/kdelirc/kcmlirc/addaction.cpp +++ b/kdelirc/kcmlirc/addaction.cpp @@ -143,7 +143,7 @@ void AddAction::updateButtonStates() const TQStringList AddAction::getFunctions(const TQString app, const TQString obj) { TQStringList ret; - DCOPClient *theClient = KApplication::kApplication()->dcopClient(); + DCOPClient *theClient = TDEApplication::kApplication()->dcopClient(); QCStringList theApps = theClient->remoteFunctions(app.utf8(), obj.utf8()); for(QCStringList::iterator i = theApps.begin(); i != theApps.end(); ++i) if( *i != "QCStringList interfaces()" && @@ -335,7 +335,7 @@ void AddAction::updateObjects() uniqueProgramMap.clear(); nameProgramMap.clear(); - DCOPClient *theClient = KApplication::kApplication()->dcopClient(); + DCOPClient *theClient = TDEApplication::kApplication()->dcopClient(); QCStringList theApps = theClient->registeredApplications(); for(QCStringList::iterator i = theApps.begin(); i != theApps.end(); ++i) { diff --git a/kdelirc/kcmlirc/editaction.cpp b/kdelirc/kcmlirc/editaction.cpp index 8b1b03b..be113e6 100644 --- a/kdelirc/kcmlirc/editaction.cpp +++ b/kdelirc/kcmlirc/editaction.cpp @@ -315,7 +315,7 @@ void EditAction::updateDCOPApplications() TQStringList names; theDCOPApplications->clear(); - DCOPClient *theClient = KApplication::kApplication()->dcopClient(); + DCOPClient *theClient = TDEApplication::kApplication()->dcopClient(); QCStringList theApps = theClient->registeredApplications(); for(QCStringList::iterator i = theApps.begin(); i != theApps.end(); ++i) { @@ -337,7 +337,7 @@ void EditAction::updateDCOPApplications() void EditAction::updateDCOPObjects() { theDCOPObjects->clear(); - DCOPClient *theClient = KApplication::kApplication()->dcopClient(); + DCOPClient *theClient = TDEApplication::kApplication()->dcopClient(); if(theDCOPApplications->currentText().isNull() || theDCOPApplications->currentText().isEmpty()) return; QCStringList theObjects = theClient->remoteObjects(nameProgramMap[theDCOPApplications->currentText()].utf8()); if(!theObjects.size() && theDCOPApplications->currentText() == (*theAction).program()) theDCOPObjects->insertItem((*theAction).object()); diff --git a/kdelirc/kcmlirc/kcmlirc.cpp b/kdelirc/kcmlirc/kcmlirc.cpp index c59632a..ccd9d2f 100644 --- a/kdelirc/kcmlirc/kcmlirc.cpp +++ b/kdelirc/kcmlirc/kcmlirc.cpp @@ -56,10 +56,10 @@ KCMLirc::KCMLirc(TQWidget *parent, const char *name, TQStringList /*args*/) : DC setButtons(KCModule::Help); setQuickHelp(i18n("

Remote Controls

This module allows you to configure bindings between your remote controls and TDE applications. Simply select your remote control and click Add under the Actions/Buttons list. If you want TDE to attempt to automatically assign buttons to a supported application's actions, try clicking the Auto-Populate button.

To view the recognised applications and remote controls, simply select the Loaded Extensions tab.

")); bool ok; - KApplication::kApplication()->dcopClient()->remoteInterfaces("irkick", "IRKick", &ok); + TDEApplication::kApplication()->dcopClient()->remoteInterfaces("irkick", "IRKick", &ok); if(!ok) if(KMessageBox::questionYesNo(this, i18n("The Infrared Remote Control software is not currently running. This configuration module will not work properly without it. Would you like to start it now?"), i18n("Software Not Running"), i18n("Start"), i18n("Do Not Start")) == KMessageBox::Yes) - { kdDebug() << "S" << KApplication::startServiceByDesktopName("irkick") << endl; + { kdDebug() << "S" << TDEApplication::startServiceByDesktopName("irkick") << endl; KSimpleConfig theConfig("irkickrc"); theConfig.setGroup("General"); if(theConfig.readBoolEntry("AutoStart", true) == false) @@ -67,7 +67,7 @@ KCMLirc::KCMLirc(TQWidget *parent, const char *name, TQStringList /*args*/) : DC theConfig.writeEntry("AutoStart", true); } - KApplication::kApplication()->dcopClient()->remoteInterfaces("irkick", "IRKick", &ok); + TDEApplication::kApplication()->dcopClient()->remoteInterfaces("irkick", "IRKick", &ok); kdDebug() << "OK" << ok << endl; -- cgit v1.2.1