From d6d75dc9ff326e0bd6fc673adae71d53277fb8e4 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 Jan 2013 00:23:08 -0600 Subject: Rename KApplication to TDEApplication to avoid conflicts with KDE4 --- akregator/src/akregator_view.cpp | 2 +- akregator/src/articlefilter.cpp | 4 ++-- akregator/src/librss/testlibrss.cpp | 2 +- akregator/src/nodelist.cpp | 2 +- akregator/src/speechclient.cpp | 2 +- akregator/src/tagnodelist.cpp | 2 +- akregator/src/trayicon.cpp | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) (limited to 'akregator/src') diff --git a/akregator/src/akregator_view.cpp b/akregator/src/akregator_view.cpp index ab0e430e..7a14c289 100644 --- a/akregator/src/akregator_view.cpp +++ b/akregator/src/akregator_view.cpp @@ -1143,7 +1143,7 @@ void View::slotRemoveTag(const Tag& tag) */ void View::slotNewTag() { - Tag tag(KApplication::randomString(8), "New Tag"); + Tag tag(TDEApplication::randomString(8), "New Tag"); Kernel::self()->tagSet()->insert(tag); TagNode* node = m_tagNodeList->findByTagID(tag.id()); if (node) diff --git a/akregator/src/articlefilter.cpp b/akregator/src/articlefilter.cpp index a8bf8a36..080d61e7 100644 --- a/akregator/src/articlefilter.cpp +++ b/akregator/src/articlefilter.cpp @@ -506,14 +506,14 @@ class ArticleFilter::ArticleFilterPrivate : public Shared ArticleFilter::ArticleFilter() : d(new ArticleFilterPrivate) { - d->id = KApplication::random(); + d->id = TDEApplication::random(); d->action = 0; d->matcher = 0; } ArticleFilter::ArticleFilter(const AbstractMatcher& matcher, const AbstractAction& action) : d(new ArticleFilterPrivate) { - d->id = KApplication::random(); + d->id = TDEApplication::random(); d->matcher = matcher.clone(); d->action = action.clone(); } diff --git a/akregator/src/librss/testlibrss.cpp b/akregator/src/librss/testlibrss.cpp index f66a53d9..721c1123 100644 --- a/akregator/src/librss/testlibrss.cpp +++ b/akregator/src/librss/testlibrss.cpp @@ -61,7 +61,7 @@ int main( int argc, char **argv ) KAboutData aboutData( "testlibrss", "testlibrss", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); if ( args->count() != 1 ) args->usage(); diff --git a/akregator/src/nodelist.cpp b/akregator/src/nodelist.cpp index e79acb20..4af5def2 100644 --- a/akregator/src/nodelist.cpp +++ b/akregator/src/nodelist.cpp @@ -210,7 +210,7 @@ NodeList::~NodeList() int NodeList::generateID() { - return KApplication::random(); + return TDEApplication::random(); } void NodeList::slotNodeAdded(TreeNode* node) diff --git a/akregator/src/speechclient.cpp b/akregator/src/speechclient.cpp index 8665213d..6b96fe1e 100644 --- a/akregator/src/speechclient.cpp +++ b/akregator/src/speechclient.cpp @@ -170,7 +170,7 @@ void SpeechClient::setupSpeechSystem() else { TQString error; - if (KApplication::startServiceByDesktopName("kttsd", TQStringList(), &error)) + if (TDEApplication::startServiceByDesktopName("kttsd", TQStringList(), &error)) { kdDebug() << "Starting KTTSD failed with message " << error << endl; d->isTextSpeechInstalled = false; diff --git a/akregator/src/tagnodelist.cpp b/akregator/src/tagnodelist.cpp index 46acb9d1..becd5b96 100644 --- a/akregator/src/tagnodelist.cpp +++ b/akregator/src/tagnodelist.cpp @@ -90,7 +90,7 @@ TagNode* TagNodeList::findByTagID(const TQString& tagID) bool TagNodeList::insert(TagNode* tagNode) { - tagNode->setId(KApplication::random()); + tagNode->setId(TDEApplication::random()); TQString id = tagNode->tag().id(); if (!containsTagId(id)) { diff --git a/akregator/src/trayicon.cpp b/akregator/src/trayicon.cpp index 67c3903f..0ba92b09 100644 --- a/akregator/src/trayicon.cpp +++ b/akregator/src/trayicon.cpp @@ -109,14 +109,14 @@ TQPixmap TrayIcon::takeScreenshot() const const int WIDTH = 3; int ax = g.x() - x - MARGINS -1; int ay = g.y() - y - MARGINS -1; - painter.setPen( TQPen(TQt::red/*KApplication::palette().active().highlight()*/, WIDTH) ); + painter.setPen( TQPen(TQt::red/*TDEApplication::palette().active().highlight()*/, WIDTH) ); painter.drawArc(ax, ay, tw + 2*MARGINS, th + 2*MARGINS, 0, 16*360); painter.end(); // Paint the border const int BORDER = 1; TQPixmap finalShot(w + 2*BORDER, h + 2*BORDER); - finalShot.fill(KApplication::palette().active().foreground()); + finalShot.fill(TDEApplication::palette().active().foreground()); painter.begin(&finalShot); painter.drawPixmap(BORDER, BORDER, shot); painter.end(); -- cgit v1.2.3