From f7e71d47719ab6094cf4a9fafffa5ea351973522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 13 Jan 2011 08:32:36 +0000 Subject: Initial conversion for TQt for Qt4 3.4.0 TP2 This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- arts/knotify/knotify.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'arts/knotify') diff --git a/arts/knotify/knotify.cpp b/arts/knotify/knotify.cpp index ea20608ba..40d85d460 100644 --- a/arts/knotify/knotify.cpp +++ b/arts/knotify/knotify.cpp @@ -351,13 +351,13 @@ void KNotify::notify(const TQString &event, const TQString &fromApp, if ( !event.isEmpty() ) { // get config file - if ( d->events.contains( fromApp ) ) { + if ( d->events.tqcontains( fromApp ) ) { eventsFile = d->events[fromApp]; } else { eventsFile=new KConfig(locate("data", fromApp+"/eventsrc"),true,false); d->events.insert( fromApp, eventsFile ); } - if ( d->configs.contains( fromApp) ) { + if ( d->configs.tqcontains( fromApp) ) { configFile = d->configs[fromApp]; } else { configFile=new KConfig(fromApp+".eventsrc",true,false); @@ -550,7 +550,7 @@ bool KNotify::notifyBySound( const TQString &sound, const TQString &appname, int return false; // Skip } proc->clearArguments(); - (*proc) << d->externalPlayer << TQFile::encodeName( soundFile ); + (*proc) << d->externalPlayer << TQFile::encodeName( soundFile ).data(); d->externalPlayerEventId = eventId; proc->start(KProcess::NotifyOnExit); return true; @@ -642,7 +642,7 @@ bool KNotify::notifyByLogfile(const TQString &text, const TQString &file) // append msg TQTextStream strm( &logFile ); - strm << "- KNotify " << TQDateTime::currentDateTime().toString() << ": "; + strm << "- KNotify " << TQDateTime::tqcurrentDateTime().toString() << ": "; strm << text << endl; // close file @@ -660,7 +660,7 @@ bool KNotify::notifyByStderr(const TQString &text) TQTextStream strm( stderr, IO_WriteOnly ); // output msg - strm << "KNotify " << TQDateTime::currentDateTime().toString() << ": "; + strm << "KNotify " << TQDateTime::tqcurrentDateTime().toString() << ": "; strm << text << endl; return true; @@ -695,7 +695,7 @@ void KNotify::playTimeout() ++it; if ( (*current)->state() != Arts::posPlaying ) { - TQMap::Iterator eit = d->playObjectEventMap.find( *current ); + TQMap::Iterator eit = d->playObjectEventMap.tqfind( *current ); if ( eit != d->playObjectEventMap.end() ) { soundFinished( *eit, PlayedOK ); @@ -730,7 +730,7 @@ void KNotify::slotPlayerProcessExited( KProcess *proc ) void KNotify::abortFirstPlayObject() { #ifndef WITHOUT_ARTS - TQMap::Iterator it = d->playObjectEventMap.find( d->playObjects.getFirst() ); + TQMap::Iterator it = d->playObjectEventMap.tqfind( d->playObjects.getFirst() ); if ( it != d->playObjectEventMap.end() ) { soundFinished( it.data(), Aborted ); -- cgit v1.2.3