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(); diff --git a/certmanager/lib/tests/test_cryptoconfig.cpp b/certmanager/lib/tests/test_cryptoconfig.cpp index 8eb99891..e11ca2ab 100644 --- a/certmanager/lib/tests/test_cryptoconfig.cpp +++ b/certmanager/lib/tests/test_cryptoconfig.cpp @@ -44,7 +44,7 @@ int main( int argc, char** argv ) { KAboutData aboutData( "test_cryptoconfig", "CryptoConfig Test", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app( false, false ); + TDEApplication app( false, false ); Kleo::CryptoConfig * config = new QGpgMECryptoConfig(); diff --git a/certmanager/lib/tests/test_gnupgprocessbase.cpp b/certmanager/lib/tests/test_gnupgprocessbase.cpp index c1ac90b9..35a350ad 100644 --- a/certmanager/lib/tests/test_gnupgprocessbase.cpp +++ b/certmanager/lib/tests/test_gnupgprocessbase.cpp @@ -121,7 +121,7 @@ int main( int argc, char** argv ) { } KAboutData aboutData( "test_gnupgprocessbase", "GnuPGProcessBase Test", "0.1" ); TDECmdLineArgs::init( &aboutData ); - KApplication app; + TDEApplication app; Kleo::GnuPGProcessBase gpg; for ( int i = 1 ; i < argc ; ++i ) diff --git a/certmanager/lib/tests/test_jobs.cpp b/certmanager/lib/tests/test_jobs.cpp index ba07792f..92aaf9b4 100644 --- a/certmanager/lib/tests/test_jobs.cpp +++ b/certmanager/lib/tests/test_jobs.cpp @@ -102,7 +102,7 @@ int main( int argc, char** argv ) { } KAboutData aboutData( "test_jobs", "Signing Job Test", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; testSign(); } diff --git a/certmanager/lib/tests/test_keygen.cpp b/certmanager/lib/tests/test_keygen.cpp index a17404fa..4ec5c29e 100644 --- a/certmanager/lib/tests/test_keygen.cpp +++ b/certmanager/lib/tests/test_keygen.cpp @@ -148,7 +148,7 @@ int main( int argc, char** argv ) { } KAboutData aboutData( "test_keygen", "KeyGenerationJob Test", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; KeyGenerator * keygen = new KeyGenerator( 0, "KeyGenerator top-level" ); app.setMainWidget( keygen ); diff --git a/certmanager/lib/tests/test_keylister.cpp b/certmanager/lib/tests/test_keylister.cpp index 1947d1d6..904671fb 100644 --- a/certmanager/lib/tests/test_keylister.cpp +++ b/certmanager/lib/tests/test_keylister.cpp @@ -132,7 +132,7 @@ int main( int argc, char** argv ) { KAboutData aboutData( "test_keylister", "KeyLister Test", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; CertListView * clv = new CertListView( 0, "CertListView top-level" ); app.setMainWidget( clv ); diff --git a/certmanager/lib/tests/test_keyselectiondialog.cpp b/certmanager/lib/tests/test_keyselectiondialog.cpp index 1af2184a..eacbb5f6 100644 --- a/certmanager/lib/tests/test_keyselectiondialog.cpp +++ b/certmanager/lib/tests/test_keyselectiondialog.cpp @@ -46,7 +46,7 @@ int main( int argc, char ** argv ) { KAboutData aboutData( "test_keyselectiondialog", "KeySelectionDialog Test", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; KGlobal::iconLoader()->addAppDir( "libkleopatra" ); diff --git a/certmanager/lib/tests/test_verify.cpp b/certmanager/lib/tests/test_verify.cpp index 15eacfec..469d1895 100644 --- a/certmanager/lib/tests/test_verify.cpp +++ b/certmanager/lib/tests/test_verify.cpp @@ -55,7 +55,7 @@ int main( int argc, char **argv ) KAboutData aboutData( "test_verify", "verify job test", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app( false, false ); + TDEApplication app( false, false ); const TQString sigFileName = TDESRCDIR "/test.data.sig"; const TQString dataFileName = TDESRCDIR "/test.data"; diff --git a/certmanager/lib/ui/keyselectiondialog.cpp b/certmanager/lib/ui/keyselectiondialog.cpp index 640f2e96..5bd858ff 100644 --- a/certmanager/lib/ui/keyselectiondialog.cpp +++ b/certmanager/lib/ui/keyselectiondialog.cpp @@ -396,7 +396,7 @@ void Kleo::KeySelectionDialog::init( bool rememberChoice, bool extendedSelection le->setText( initialQuery ); TQToolButton *clearButton = new TQToolButton( page ); clearButton->setIconSet( KGlobal::iconLoader()->loadIconSet( - KApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); + TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); hlay->addWidget( clearButton ); hlay->addWidget( new TQLabel( le, i18n("&Search for:"), page ) ); hlay->addWidget( le, 1 ); diff --git a/certmanager/main.cpp b/certmanager/main.cpp index 4db304c2..def899b7 100644 --- a/certmanager/main.cpp +++ b/certmanager/main.cpp @@ -59,7 +59,7 @@ int main( int argc, char** argv ) }; TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kabc/frontend/main.cpp b/kabc/frontend/main.cpp index 9f35c359..169e52a3 100644 --- a/kabc/frontend/main.cpp +++ b/kabc/frontend/main.cpp @@ -11,7 +11,7 @@ int main( int argc, char ** argv ) KAboutData aboutData("testkabc",I18N_NOOP("TestKabc"),"0.1"); TDECmdLineArgs::init(argc,argv,&aboutData); - KApplication app; + TDEApplication app; MainWindow *w = new MainWindow; w->show(); diff --git a/kabc/kabc2mutt/main.cpp b/kabc/kabc2mutt/main.cpp index 4a406a39..f9f41f8a 100644 --- a/kabc/kabc2mutt/main.cpp +++ b/kabc/kabc2mutt/main.cpp @@ -43,11 +43,11 @@ static KCmdLineOptions k2moptions[] = int main( int argc, char **argv ) { - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); TDECmdLineArgs::init( argc, argv, appName, programName, description, version ); TDECmdLineArgs::addCmdLineOptions( k2moptions ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kabc/kabcdistlistupdater/kabcdistlistupdater.cpp b/kabc/kabcdistlistupdater/kabcdistlistupdater.cpp index 33dcd915..78fa54ee 100644 --- a/kabc/kabcdistlistupdater/kabcdistlistupdater.cpp +++ b/kabc/kabcdistlistupdater/kabcdistlistupdater.cpp @@ -50,7 +50,7 @@ void convertDistributionLists() const TQStringList entries = TQStringList::split( ',', it.data(), true ); KPIM::DistributionList distList; - distList.setUid( KApplication::randomString( 10 ) ); + distList.setUid( TDEApplication::randomString( 10 ) ); distList.setName( listName ); if ( entries.count() > 1 ) { @@ -70,7 +70,7 @@ void convertDistributionLists() int main( int argc, char **argv ) { - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); KAboutData aboutData( "kabcdistlistupdater", "Converter tool for distribution lists", "0.1" ); aboutData.addAuthor( "Tobias Koenig", 0, "tokoe@kde.org" ); @@ -78,7 +78,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kaddressbook/distributionlisteditor.cpp b/kaddressbook/distributionlisteditor.cpp index 0084fe86..09da74d7 100644 --- a/kaddressbook/distributionlisteditor.cpp +++ b/kaddressbook/distributionlisteditor.cpp @@ -74,7 +74,7 @@ KPIM::DistributionListEditor::Line::Line( KABC::AddressBook* book, TQWidget* par this, TQT_SLOT( textChanged( const TQString& ) ) ); layout->addWidget( m_lineEdit ); m_clearButton = new TQToolButton( this ); - m_clearButton->setIconSet( KApplication::reverseLayout() ? SmallIconSet("locationbar_erase") : SmallIconSet( "clear_left" ) ); + m_clearButton->setIconSet( TDEApplication::reverseLayout() ? SmallIconSet("locationbar_erase") : SmallIconSet( "clear_left" ) ); m_clearButton->setEnabled( false ); layout->addWidget( m_clearButton ); connect( m_clearButton, TQT_SIGNAL( clicked() ), m_lineEdit, TQT_SLOT( clear() ) ); @@ -119,7 +119,7 @@ KABC::Addressee KPIM::DistributionListEditor::Line::findAddressee( const TQStrin } // no entry found, create new addressee: KABC::Addressee addressee; - addressee.setUid( KApplication::randomString( 10 ) ); + addressee.setUid( TDEApplication::randomString( 10 ) ); addressee.setFormattedName( name ); addressee.setEmails( email ); m_addressBook->insertAddressee( addressee ); @@ -272,7 +272,7 @@ void KPIM::DistributionListEditor::EditorWidget::slotOk() } KPIM::DistributionList list; - list.setUid( d->distListUid.isNull() ? KApplication::randomString( 10 ) :d->distListUid ); + list.setUid( d->distListUid.isNull() ? TDEApplication::randomString( 10 ) :d->distListUid ); list.setName( name ); list.setResource( d->resource ); typedef TQValueList::ConstIterator ListIterator; diff --git a/kaddressbook/distributionlistpicker.cpp b/kaddressbook/distributionlistpicker.cpp index d82dc69f..d3aef15e 100644 --- a/kaddressbook/distributionlistpicker.cpp +++ b/kaddressbook/distributionlistpicker.cpp @@ -103,7 +103,7 @@ void KPIM::DistributionListPickerDialog::slotUser1() { KPIM::DistributionList list; list.setName( name ); - list.setUid( KApplication::randomString( 10 ) ); + list.setUid( TDEApplication::randomString( 10 ) ); m_book->insertAddressee( list ); m_listBox->insertItem( name ); diff --git a/kaddressbook/interfaces/xxport.cpp b/kaddressbook/interfaces/xxport.cpp index 6b4340fd..ea4a93ce 100644 --- a/kaddressbook/interfaces/xxport.cpp +++ b/kaddressbook/interfaces/xxport.cpp @@ -37,7 +37,7 @@ class XXPort::XXPortPrivate public: TQSignalMapper *mExportMapper; TQSignalMapper *mImportMapper; - KApplication *mKApp; + TDEApplication *mKApp; }; XXPort::XXPort( KABC::AddressBook *ab, TQWidget *parent, @@ -104,7 +104,7 @@ TQWidget *XXPort::parentWidget() const return mParentWidget; } -void XXPort::setKApplication( KApplication *app ) +void XXPort::setTDEApplication( TDEApplication *app ) { d->mKApp = app; } diff --git a/kaddressbook/interfaces/xxport.h b/kaddressbook/interfaces/xxport.h index 7307524d..021275d5 100644 --- a/kaddressbook/interfaces/xxport.h +++ b/kaddressbook/interfaces/xxport.h @@ -34,7 +34,7 @@ #define KAB_XXPORT_PLUGIN_VERSION 1 -class KApplication; +class TDEApplication; /** K_EXPORT_KADDRESSBOOK_XXFILTER_CATALOG() creates the stub for a KAddressbook import/export filter. @@ -87,13 +87,13 @@ class KDE_EXPORT XXPort : public TQObject, virtual public KXMLGUIClient virtual bool requiresSorting() const { return false; } /** - set the KApplication pointer. + set the TDEApplication pointer. @see: processEvents() */ - void setKApplication( KApplication *app ); + void setTDEApplication( TDEApplication *app ); /** - Processes outstanding KApplication events. It should be called + Processes outstanding TDEApplication events. It should be called occasionally when the import/export filter is busy performing a long operation (e.g. reading from slow external devices). @see: TQApplication::processEvents() diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index 43f5e5bc..6e3c3510 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp @@ -725,7 +725,7 @@ void KABCore::newDistributionList() } } KPIM::DistributionList list; - list.setUid( KApplication::randomString( 10 ) ); + list.setUid( TDEApplication::randomString( 10 ) ); list.setName( name ); list.setResource( resource ); editDistributionList( list ); diff --git a/kaddressbook/ldapsearchdialog.cpp b/kaddressbook/ldapsearchdialog.cpp index 0ba765df..5a171e53 100644 --- a/kaddressbook/ldapsearchdialog.cpp +++ b/kaddressbook/ldapsearchdialog.cpp @@ -572,7 +572,7 @@ KABC::Addressee::List LDAPSearchDialog::importContactsUnlessTheyExist( const TQV const KABC::Addressee::List existing = mCore->addressBook()->findByEmail( addr.preferredEmail() ); if ( existing.isEmpty() ) { - addr.setUid( KApplication::randomString( 10 ) ); + addr.setUid( TDEApplication::randomString( 10 ) ); addr.setNote( i18n( "arguments are host name, datetime", "Imported from LDAP directory %1 on %2" ).arg( d->itemToServer[cli], KGlobal::locale()->formatDateTime( now ) ) ); addr.setResource( resource ); mCore->addressBook()->insertAddressee( addr ); diff --git a/kaddressbook/undocmds.cpp b/kaddressbook/undocmds.cpp index a249c295..e781a72e 100644 --- a/kaddressbook/undocmds.cpp +++ b/kaddressbook/undocmds.cpp @@ -147,7 +147,7 @@ void PasteCommand::execute() We have to set a new uid for the contact, otherwise insertAddressee() ignore it. */ - (*it).setUid( KApplication::randomString( 10 ) ); + (*it).setUid( TDEApplication::randomString( 10 ) ); uids.append( (*it).uid() ); addressBook()->insertAddressee( *it ); } @@ -337,7 +337,7 @@ void CopyToCommand::execute() KABC::Addressee newAddr( addr ); // We need to set a new uid, otherwise the insert below is // ignored. This is bad for syncing, but unavoidable, afaiks - newAddr.setUid( KApplication::randomString( 10 ) ); + newAddr.setUid( TDEApplication::randomString( 10 ) ); newAddr.setResource( mResource ); if ( resourceExist( newAddr.resource() ) ) addressBook()->insertAddressee( newAddr ); @@ -384,7 +384,7 @@ void MoveToCommand::moveContactTo( KABC::Resource *resource ) KABC::Addressee newAddr( addr ); // We need to set a new uid, otherwise the insert below is // ignored. This is bad for syncing, but unavoidable, afaiks - TQString uid = KApplication::randomString( 10 ); + TQString uid = TDEApplication::randomString( 10 ); newAddr.setUid( uid ); newAddr.setResource( resource ); if ( resourceExist( newAddr.resource() ) ) diff --git a/kaddressbook/xxportmanager.cpp b/kaddressbook/xxportmanager.cpp index 3c10fc96..6d6b74e5 100644 --- a/kaddressbook/xxportmanager.cpp +++ b/kaddressbook/xxportmanager.cpp @@ -151,7 +151,7 @@ void XXPortManager::loadPlugins() connect( obj, TQT_SIGNAL( importActivated( const TQString&, const TQString& ) ), this, TQT_SLOT( slotImport( const TQString&, const TQString& ) ) ); - obj->setKApplication( kapp ); + obj->setTDEApplication( kapp ); } } } diff --git a/kalarm/daemon.cpp b/kalarm/daemon.cpp index 4ad78555..29ac67d4 100644 --- a/kalarm/daemon.cpp +++ b/kalarm/daemon.cpp @@ -141,7 +141,7 @@ bool Daemon::start() kdError() << "Daemon::startApp(): " DAEMON_APP_NAME " not found" << endl; return false; } - KApplication::tdeinitExec(execStr); + TDEApplication::tdeinitExec(execStr); kdDebug(5950) << "Daemon::start(): Alarm daemon started" << endl; mStartTimeout = 5000/startCheckInterval + 1; // check daemon status for 5 seconds before giving up mStartTimer = new TQTimer(mInstance); diff --git a/kalarm/functions.cpp b/kalarm/functions.cpp index e1e897e3..e5dc5fa3 100644 --- a/kalarm/functions.cpp +++ b/kalarm/functions.cpp @@ -721,7 +721,7 @@ bool runProgram(const TQCString& program, const TQCString& windowName, TQCString if (!kapp->dcopClient()->isApplicationRegistered(program)) { // KOrganizer is not already running, so start it - if (KApplication::startServiceByDesktopName(TQString::fromLatin1(program), TQString(), &errorMessage, &dcopName)) + if (TDEApplication::startServiceByDesktopName(TQString::fromLatin1(program), TQString(), &errorMessage, &dcopName)) { kdError(5950) << "runProgram(): couldn't start " << program << " (" << errorMessage << ")\n"; return false; @@ -747,7 +747,7 @@ bool readConfigWindowSize(const char* window, TQSize& result) { KConfig* config = KGlobal::config(); config->setGroup(TQString::fromLatin1(window)); - TQWidget* desktop = TQT_TQWIDGET(KApplication::desktop()); + TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop()); TQSize s = TQSize(config->readNumEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), 0), config->readNumEntry(TQString::fromLatin1("Height %1").arg(desktop->height()), 0)); if (s.isEmpty()) @@ -764,7 +764,7 @@ void writeConfigWindowSize(const char* window, const TQSize& size) { KConfig* config = KGlobal::config(); config->setGroup(TQString::fromLatin1(window)); - TQWidget* desktop = TQT_TQWIDGET(KApplication::desktop()); + TQWidget* desktop = TQT_TQWIDGET(TDEApplication::desktop()); config->writeEntry(TQString::fromLatin1("Width %1").arg(desktop->width()), size.width()); config->writeEntry(TQString::fromLatin1("Height %1").arg(desktop->height()), size.height()); config->sync(); diff --git a/kalarm/kalarmd/alarmdaemon.cpp b/kalarm/kalarmd/alarmdaemon.cpp index 85d21465..e1bbe0bb 100644 --- a/kalarm/kalarmd/alarmdaemon.cpp +++ b/kalarm/kalarmd/alarmdaemon.cpp @@ -120,7 +120,7 @@ void AlarmDaemon::autostartKAlarm() kdDebug(5900) << "AlarmDaemon::autostartKAlarm(): starting KAlarm\n"; TQStringList args; args << TQString::fromLatin1("--tray"); - int ret = KApplication::tdeinitExec(TQString::fromLatin1("kalarm"), args); + int ret = TDEApplication::tdeinitExec(TQString::fromLatin1("kalarm"), args); if (ret) kdError(5900) << "AlarmDaemon::autostartKAlarm(): error=" << ret << endl; else diff --git a/kandy/src/kandy_client.cpp b/kandy/src/kandy_client.cpp index 2aba3b35..b27e5de6 100644 --- a/kandy/src/kandy_client.cpp +++ b/kandy/src/kandy_client.cpp @@ -29,7 +29,7 @@ int main(int argc, char **argv) { - KApplication app(argc, argv, "kandy_client", false); + TDEApplication app(argc, argv, "kandy_client", false); // get our DCOP client and attach so that we may use it DCOPClient *client = app.dcopClient(); diff --git a/kandy/src/main.cpp b/kandy/src/main.cpp index b3f6aa82..0ba62eb6 100644 --- a/kandy/src/main.cpp +++ b/kandy/src/main.cpp @@ -95,7 +95,7 @@ int main(int argc, char **argv) TDECmdLineArgs::init(argc,argv,&about); TDECmdLineArgs::addCmdLineOptions(options); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); // register ourselves as a dcop client diff --git a/karm/main.cpp b/karm/main.cpp index e8ebc7e1..f2fab8fc 100644 --- a/karm/main.cpp +++ b/karm/main.cpp @@ -49,7 +49,7 @@ int main( int argc, char *argv[] ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication myApp; + TDEApplication myApp; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/karm/taskview.cpp b/karm/taskview.cpp index 3852fda9..eb63da48 100644 --- a/karm/taskview.cpp +++ b/karm/taskview.cpp @@ -820,16 +820,16 @@ void TaskView::clipTotals() i18n("Copy This Task"), i18n("Copy All Tasks") ); if (response == KMessageBox::Yes) // This task only { - KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime)); + TDEApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime)); } else // All tasks { - KApplication::clipboard()->setText(t.totalsAsText(this, false, TimeKard::TotalTime)); + TDEApplication::clipboard()->setText(t.totalsAsText(this, false, TimeKard::TotalTime)); } } else { - KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime)); + TDEApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::TotalTime)); } } @@ -844,16 +844,16 @@ void TaskView::clipSession() i18n("Copy This Task"), i18n("Copy All Tasks") ); if (response == KMessageBox::Yes) // this task only { - KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime)); + TDEApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime)); } else // only task { - KApplication::clipboard()->setText(t.totalsAsText(this, false, TimeKard::SessionTime)); + TDEApplication::clipboard()->setText(t.totalsAsText(this, false, TimeKard::SessionTime)); } } else { - KApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime)); + TDEApplication::clipboard()->setText(t.totalsAsText(this, true, TimeKard::SessionTime)); } } @@ -863,7 +863,7 @@ void TaskView::clipHistory() if (dialog.exec()== TQDialog::Accepted) { TimeKard t; - KApplication::clipboard()-> + TDEApplication::clipboard()-> setText( t.historyAsText(this, dialog.from(), dialog.to(), !dialog.allTasks(), dialog.perWeek(), dialog.totalsOnly() ) ); } } diff --git a/karm/test/locking.cpp b/karm/test/locking.cpp index 6f9cd183..ac1de23e 100644 --- a/karm/test/locking.cpp +++ b/karm/test/locking.cpp @@ -136,11 +136,11 @@ int main( int argc, char *argv[] ) setenv( "TDE_FORK_SLAVES", "yes", true ); // simpler, for the final cleanup // Copied from Till's test in libkcal. Not sure what this is for. - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); TDECmdLineArgs::init(argc,argv,"testresourcelocking", 0, 0, 0, 0); - KApplication app( false, false ); + TDEApplication app( false, false ); // basic libkcal locking stuff if ( !rval ) rval = test1(); diff --git a/kmail/ChangeLog b/kmail/ChangeLog index 4af2bcb1..1873a13d 100644 --- a/kmail/ChangeLog +++ b/kmail/ChangeLog @@ -354,7 +354,7 @@ please visit http://webcvs.kde.org * Removed hardcoded localtdedir() - * Let KApplication() do the job of creating ~/.kde/share/config + * Let TDEApplication() do the job of creating ~/.kde/share/config 1998-10-31 Stefan Taferner (KMail-1.0.6) diff --git a/kmail/antispamwizard.cpp b/kmail/antispamwizard.cpp index a63ecae9..951a3379 100644 --- a/kmail/antispamwizard.cpp +++ b/kmail/antispamwizard.cpp @@ -517,7 +517,7 @@ void AntiSpamWizard::checkToolAvailability() } else { // check the availability of the application - KApplication::kApplication()->processEvents( 200 ); + TDEApplication::kApplication()->processEvents( 200 ); if ( !checkForProgram( (*it).getExecutable() ) ) { mInfoPage->addAvailableTool( (*it).getVisibleName() ); found = true; diff --git a/kmail/dcoptest.cpp b/kmail/dcoptest.cpp index 0e5b14d8..04ba43b9 100644 --- a/kmail/dcoptest.cpp +++ b/kmail/dcoptest.cpp @@ -18,7 +18,7 @@ int main(int argc,char **argv) KAboutData aboutData( "testKMailDCOP", "Test for KMail DCOP interface", "0.0" ); TDECmdLineArgs::init(argc, argv, &aboutData); - KApplication app; + TDEApplication app; app.dcopClient()->attach(); KMailIface_stub kmailStub("kmail","KMailIface"); diff --git a/kmail/foldertreebase.cpp b/kmail/foldertreebase.cpp index 4355c9df..2584f925 100644 --- a/kmail/foldertreebase.cpp +++ b/kmail/foldertreebase.cpp @@ -75,9 +75,9 @@ int FolderTreeBase::dndMode(bool alwaysAsk) { int action = -1; int keybstate = kapp->keyboardModifiers(); - if ( keybstate & KApplication::ControlModifier ) { + if ( keybstate & TDEApplication::ControlModifier ) { action = DRAG_COPY; - } else if ( keybstate & KApplication::ShiftModifier ) { + } else if ( keybstate & TDEApplication::ShiftModifier ) { action = DRAG_MOVE; } else { if ( GlobalSettings::self()->showPopupAfterDnD() || alwaysAsk ) { diff --git a/kmail/kmcommands.cpp b/kmail/kmcommands.cpp index 3194b0ca..d2d9ca37 100644 --- a/kmail/kmcommands.cpp +++ b/kmail/kmcommands.cpp @@ -1743,7 +1743,7 @@ KMCommand::Result KMFilterActionCommand::execute() TQString statusMsg = i18n("Filtering message %1 of %2"); statusMsg = statusMsg.arg( msgCount ).arg( msgCountToFilter ); KPIM::BroadcastStatus::instance()->setStatusMsg( statusMsg ); - KApplication::kApplication()->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 50 ); + TDEApplication::kApplication()->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 50 ); } int filterResult = kmkernel->filterMgr()->process( serNum, mFilter ); diff --git a/kmail/kmfoldermaildir.cpp b/kmail/kmfoldermaildir.cpp index 2b4d155d..c12a5891 100644 --- a/kmail/kmfoldermaildir.cpp +++ b/kmail/kmfoldermaildir.cpp @@ -1040,7 +1040,7 @@ TQString KMFolderMaildir::constructValidFileName( const TQString & filename, if (aFileName.isEmpty()) { aFileName.sprintf("%ld.%d.", (long)time(0), getpid()); - aFileName += KApplication::randomString(5); + aFileName += TDEApplication::randomString(5); } if (!suffix_regex) diff --git a/kmail/kmheaders.cpp b/kmail/kmheaders.cpp index 0b10d3d4..aaa4669f 100644 --- a/kmail/kmheaders.cpp +++ b/kmail/kmheaders.cpp @@ -1453,7 +1453,7 @@ void KMHeaders::applyFiltersOnMsg() TQString statusMsg = i18n("Filtering message %1 of %2"); statusMsg = statusMsg.arg( msgCount ).arg( msgCountToFilter ); KPIM::BroadcastStatus::instance()->setStatusMsg( statusMsg ); - KApplication::kApplication()->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 50 ); + TDEApplication::kApplication()->eventLoop()->processEvents( TQEventLoop::ExcludeUserInput, 50 ); } KMFolder *folder = 0; diff --git a/kmail/main.cpp b/kmail/main.cpp index e76b303f..628ae97a 100644 --- a/kmail/main.cpp +++ b/kmail/main.cpp @@ -48,7 +48,7 @@ public: void KMailApplication::commitData(TQSessionManager& sm) { kmkernel->dumpDeadLetters(); kmkernel->setShuttingDown( true ); // Prevent further dumpDeadLetters calls - KApplication::commitData( sm ); + TDEApplication::commitData( sm ); } diff --git a/kmail/recipientseditor.cpp b/kmail/recipientseditor.cpp index 8d87d2d4..f2cf1f74 100644 --- a/kmail/recipientseditor.cpp +++ b/kmail/recipientseditor.cpp @@ -177,7 +177,7 @@ RecipientLine::RecipientLine( TQWidget *parent ) this, TQT_SLOT( slotTypeModified() ) ); mRemoveButton = new TQPushButton( this ); - mRemoveButton->setIconSet( KApplication::reverseLayout() ? SmallIconSet("locationbar_erase") : SmallIconSet( "clear_left" ) ); + mRemoveButton->setIconSet( TDEApplication::reverseLayout() ? SmallIconSet("locationbar_erase") : SmallIconSet( "clear_left" ) ); topLayout->addWidget( mRemoveButton ); connect( mRemoveButton, TQT_SIGNAL( clicked() ), TQT_SLOT( slotPropagateDeletion() ) ); TQToolTip::add( mRemoveButton, i18n("Remove recipient line") ); diff --git a/kmail/recipientseditortest.cpp b/kmail/recipientseditortest.cpp index e347fe5c..54141bb5 100644 --- a/kmail/recipientseditortest.cpp +++ b/kmail/recipientseditortest.cpp @@ -94,7 +94,7 @@ int main( int argc, char **argv ) "Test Recipient Editor", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; TQObject::connect( &app, TQT_SIGNAL( lastWindowClosed() ), &app, TQT_SLOT( quit() ) ); diff --git a/kmail/recipientspicker.cpp b/kmail/recipientspicker.cpp index 01c3c509..d6181a08 100644 --- a/kmail/recipientspicker.cpp +++ b/kmail/recipientspicker.cpp @@ -373,7 +373,7 @@ RecipientsPicker::RecipientsPicker( TQWidget *parent ) TQToolButton *button = new TQToolButton( this ); button->setIconSet( KGlobal::iconLoader()->loadIconSet( - KApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); + TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); searchLayout->addWidget( button ); connect( button, TQT_SIGNAL( clicked() ), TQT_SLOT( resetSearch() ) ); diff --git a/kmailcvt/filters.cxx b/kmailcvt/filters.cxx index 7f9a5f97..78728d2c 100644 --- a/kmailcvt/filters.cxx +++ b/kmailcvt/filters.cxx @@ -136,7 +136,7 @@ bool Filter::addMessage( FilterInfo* info, const TQString& folderName, msgURL.setPath( msgPath ); if ( !kapp->dcopClient()->isApplicationRegistered( "kmail" ) ) - KApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started + TDEApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started DCOPReply reply = DCOPRef( "kmail", "KMailIface" ).call( "dcopAddMessage", folderName, msgURL, msgStatusFlags ); @@ -172,7 +172,7 @@ bool Filter::addMessage_fastImport( FilterInfo* info, const TQString& folderName msgURL.setPath( msgPath ); if ( !kapp->dcopClient()->isApplicationRegistered( "kmail" ) ) - KApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started + TDEApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started DCOPReply reply = DCOPRef( "kmail", "KMailIface" ).call( "dcopAddMessage_fastImport", folderName, msgURL, msgStatusFlags ); if ( !reply.isValid() ) @@ -200,7 +200,7 @@ bool Filter::addMessage_fastImport( FilterInfo* info, const TQString& folderName void Filter::showKMailImportArchiveDialog( FilterInfo* info ) { if ( !kapp->dcopClient()->isApplicationRegistered( "kmail" ) ) - KApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started + TDEApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started DCOPReply reply = DCOPRef( "kmail", "KMailIface" ).call( "showImportArchiveDialog" ); if ( !reply.isValid() ) diff --git a/kmailcvt/kmailcvt.cpp b/kmailcvt/kmailcvt.cpp index e24f9a20..4599fe25 100644 --- a/kmailcvt/kmailcvt.cpp +++ b/kmailcvt/kmailcvt.cpp @@ -41,7 +41,7 @@ KMailCVT::~KMailCVT() { void KMailCVT::endImport() { if ( !kapp->dcopClient()->isApplicationRegistered( "kmail" ) ) - KApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started + TDEApplication::startServiceByDesktopName( "kmail", TQString() ); // Will wait until kmail is started DCOPReply reply = DCOPRef( "kmail", "KMailIface" ).call( "dcopAddMessage", TQString(), TQString(), TQString()); if ( !reply.isValid() ) diff --git a/kmailcvt/main.cpp b/kmailcvt/main.cpp index 9121acfa..f8ad5e22 100644 --- a/kmailcvt/main.cpp +++ b/kmailcvt/main.cpp @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options. - KApplication a; + TDEApplication a; KMailCVT *kmailcvt = new KMailCVT(); a.setMainWidget(kmailcvt); kmailcvt->show(); diff --git a/kmobile/testlibkmobile.cpp b/kmobile/testlibkmobile.cpp index e8ff8558..1f43cc9b 100644 --- a/kmobile/testlibkmobile.cpp +++ b/kmobile/testlibkmobile.cpp @@ -13,7 +13,7 @@ int main(int argc, char **argv) { bool ok; - KApplication app(argc, argv, "kmobile_client", false); + TDEApplication app(argc, argv, "kmobile_client", false); // get our DCOP client and attach so that we may use it DCOPClient *client = app.dcopClient(); diff --git a/knode/knmainwidget.cpp b/knode/knmainwidget.cpp index 5b43de69..7b7b5610 100644 --- a/knode/knmainwidget.cpp +++ b/knode/knmainwidget.cpp @@ -367,8 +367,8 @@ void KNMainWidget::updateCaption() void KNMainWidget::setCursorBusy(bool b) { - if(b) KApplication::setOverrideCursor(waitCursor); - else KApplication::restoreOverrideCursor(); + if(b) TDEApplication::setOverrideCursor(waitCursor); + else TDEApplication::restoreOverrideCursor(); } diff --git a/knotes/ChangeLog b/knotes/ChangeLog index 532a9279..7050d7f7 100644 --- a/knotes/ChangeLog +++ b/knotes/ChangeLog @@ -898,7 +898,7 @@ Tue Feb 16 09:34:25 1999 David Faure * renaming: missing slash broke renaming. * set atomic flag in cleanup(). Hope to have avoided occasional crash leading to data loss. - * Replaced ~/.kde with KApplication::localtdedir() + * Replaced ~/.kde with TDEApplication::localtdedir() * option menu: disabled illogical switch between "3D frame" and "no frame" label. It is a checkable entry! diff --git a/knotes/knotesapp.cpp b/knotes/knotesapp.cpp index 964309c5..25a57a42 100644 --- a/knotes/knotesapp.cpp +++ b/knotes/knotesapp.cpp @@ -266,7 +266,7 @@ TQString KNotesApp::newNote( const TQString& name, const TQString& text ) TQString KNotesApp::newNoteFromClipboard( const TQString& name ) { - const TQString& text = KApplication::clipboard()->text(); + const TQString& text = TDEApplication::clipboard()->text(); return newNote( name, text ); } diff --git a/kode/kodemain.cpp b/kode/kodemain.cpp index 081bba5f..d8a1113e 100644 --- a/kode/kodemain.cpp +++ b/kode/kodemain.cpp @@ -419,7 +419,7 @@ int create( TDECmdLineArgs *args ) code += "TDECmdLineArgs::init(argc,argv,&aboutData);"; code += "TDECmdLineArgs::addCmdLineOptions( options );"; code += ""; - code += "KApplication app;"; + code += "TDEApplication app;"; code += ""; code += "TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();"; code += ""; @@ -615,7 +615,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kode/kwsdl/kung/main.cpp b/kode/kwsdl/kung/main.cpp index 155a10b0..79718616 100644 --- a/kode/kwsdl/kung/main.cpp +++ b/kode/kwsdl/kung/main.cpp @@ -53,7 +53,7 @@ int main( int argc, char **argv ) return 1; } - KApplication app; + TDEApplication app; Loader loader; loader.setWSDLUrl( args->url( 0 ).path() ); diff --git a/kode/kwsdl/main.cpp b/kode/kwsdl/main.cpp index 69746590..97e7ad5a 100644 --- a/kode/kwsdl/main.cpp +++ b/kode/kwsdl/main.cpp @@ -59,7 +59,7 @@ int main( int argc, char **argv ) return 1; } - KApplication app( false, false ); + TDEApplication app( false, false ); TQString outputDirectory = TQFile::decodeName( args->getOption( "directory" ) ); if ( outputDirectory.isEmpty() ) diff --git a/kode/kwsdl/tests/google/main.cc b/kode/kwsdl/tests/google/main.cc index 19f6ba3f..01f54d28 100644 --- a/kode/kwsdl/tests/google/main.cc +++ b/kode/kwsdl/tests/google/main.cc @@ -12,7 +12,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app( false, false ); + TDEApplication app( false, false ); GoogleSearch search; diff --git a/konsolekalendar/main.cpp b/konsolekalendar/main.cpp index 60b45dde..8439f344 100644 --- a/konsolekalendar/main.cpp +++ b/konsolekalendar/main.cpp @@ -196,7 +196,7 @@ int main( int argc, char *argv[] ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options. - KApplication app( + TDEApplication app( false, //do not allowstyles - disable the loading on plugin based styles false //GUI is not enabled - disable all GUI stuff ); diff --git a/kontact/interfaces/uniqueapphandler.cpp b/kontact/interfaces/uniqueapphandler.cpp index 38ae51b3..04e5a9e2 100644 --- a/kontact/interfaces/uniqueapphandler.cpp +++ b/kontact/interfaces/uniqueapphandler.cpp @@ -197,7 +197,7 @@ void Kontact::UniqueAppHandler::loadKontactCommandLineOptions() { TDECmdLineArgs::addCmdLineOptions( options ); KUniqueApplication::addCmdLineOptions(); - KApplication::addCmdLineOptions(); + TDEApplication::addCmdLineOptions(); } #include "uniqueapphandler.moc" diff --git a/kontact/plugins/knotes/knotes_part.cpp b/kontact/plugins/knotes/knotes_part.cpp index a66aa4c1..0e5d806b 100644 --- a/kontact/plugins/knotes/knotes_part.cpp +++ b/kontact/plugins/knotes/knotes_part.cpp @@ -201,7 +201,7 @@ TQString KNotesPart::newNote( const TQString& name, const TQString& text ) TQString KNotesPart::newNoteFromClipboard( const TQString& name ) { - const TQString& text = KApplication::clipboard()->text(); + const TQString& text = TDEApplication::clipboard()->text(); return newNote( name, text ); } diff --git a/kontact/plugins/kpilot/summarywidget.cpp b/kontact/plugins/kpilot/summarywidget.cpp index d2180a63..b3184943 100644 --- a/kontact/plugins/kpilot/summarywidget.cpp +++ b/kontact/plugins/kpilot/summarywidget.cpp @@ -222,7 +222,7 @@ void SummaryWidget::startKPilot() { TQString error; TQCString appID; - if ( !KApplication::tdeinitExec( "kpilotDaemon", TQString( "--fail-silently" ) ) ) { + if ( !TDEApplication::tdeinitExec( "kpilotDaemon", TQString( "--fail-silently" ) ) ) { kdDebug(5602) << "No service available..." << endl; mStartedDaemon = true; } diff --git a/kontact/plugins/newsticker/kcmkontactknt.cpp b/kontact/plugins/newsticker/kcmkontactknt.cpp index 50aa975f..cfcbc43d 100644 --- a/kontact/plugins/newsticker/kcmkontactknt.cpp +++ b/kontact/plugins/newsticker/kcmkontactknt.cpp @@ -394,7 +394,7 @@ bool KCMKontactKNT::dcopActive() const bool isGood = true; DCOPClient *client = kapp->dcopClient(); if ( !client->isApplicationRegistered( "rssservice" ) ) { - if ( KApplication::startServiceByDesktopName( "rssservice", TQStringList(), &error, &appID ) ) + if ( TDEApplication::startServiceByDesktopName( "rssservice", TQStringList(), &error, &appID ) ) isGood = false; } diff --git a/kontact/plugins/newsticker/summarywidget.cpp b/kontact/plugins/newsticker/summarywidget.cpp index ecd70a1e..92207c1e 100644 --- a/kontact/plugins/newsticker/summarywidget.cpp +++ b/kontact/plugins/newsticker/summarywidget.cpp @@ -58,7 +58,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name ) bool dcopAvailable = true; if ( !kapp->dcopClient()->isApplicationRegistered( "rssservice" ) ) { - if ( KApplication::startServiceByDesktopName( "rssservice", TQStringList(), &error, &appID ) ) { + if ( TDEApplication::startServiceByDesktopName( "rssservice", TQStringList(), &error, &appID ) ) { TQLabel *label = new TQLabel( i18n( "No rss dcop service available.\nYou need rssservice to use this plugin." ), this ); vlay->addWidget( label, TQt::AlignHCenter ); dcopAvailable = false; diff --git a/kontact/plugins/weather/summarywidget.cpp b/kontact/plugins/weather/summarywidget.cpp index fb8bd951..63c7c897 100644 --- a/kontact/plugins/weather/summarywidget.cpp +++ b/kontact/plugins/weather/summarywidget.cpp @@ -53,7 +53,7 @@ SummaryWidget::SummaryWidget( TQWidget *parent, const char *name ) TQCString appID; bool serviceAvailable = true; if ( !kapp->dcopClient()->isApplicationRegistered( "KWeatherService" ) ) { - if ( KApplication::startServiceByDesktopName( "kweatherservice", TQStringList(), &error, &appID ) ) { + if ( TDEApplication::startServiceByDesktopName( "kweatherservice", TQStringList(), &error, &appID ) ) { TQLabel *label = new TQLabel( i18n( "No weather dcop service available;\nyou need KWeather to use this plugin." ), this ); mLayout->addWidget( label, TQt::AlignHCenter | AlignVCenter ); serviceAvailable = false; diff --git a/kontact/src/mainwindow.cpp b/kontact/src/mainwindow.cpp index 41e026a6..307f1c4b 100644 --- a/kontact/src/mainwindow.cpp +++ b/kontact/src/mainwindow.cpp @@ -787,12 +787,12 @@ void MainWindow::selectPlugin( Kontact::Plugin *plugin ) return; } - KApplication::setOverrideCursor( TQCursor( TQt::WaitCursor ) ); + TDEApplication::setOverrideCursor( TQCursor( TQt::WaitCursor ) ); KParts::Part *part = plugin->part(); if ( !part ) { - KApplication::restoreOverrideCursor(); + TDEApplication::restoreOverrideCursor(); KMessageBox::error( this, i18n( "Cannot load part for %1." ) .arg( plugin->title() ) + "\n" + lastErrorMessage() ); @@ -894,7 +894,7 @@ void MainWindow::selectPlugin( Kontact::Plugin *plugin ) } } - KApplication::restoreOverrideCursor(); + TDEApplication::restoreOverrideCursor(); } void MainWindow::selectPlugin( const TQString &pluginName ) @@ -1027,14 +1027,14 @@ void MainWindow::updateConfig() void MainWindow::showAboutDialog() { - KApplication::setOverrideCursor( TQCursor( TQt::WaitCursor ) ); + TDEApplication::setOverrideCursor( TQCursor( TQt::WaitCursor ) ); if ( !mAboutDialog ) mAboutDialog = new AboutDialog( this ); mAboutDialog->show(); mAboutDialog->raise(); - KApplication::restoreOverrideCursor(); + TDEApplication::restoreOverrideCursor(); } void MainWindow::configureShortcuts() diff --git a/kontact/src/profilemanager.cpp b/kontact/src/profilemanager.cpp index 67f1bd19..d929bcb3 100644 --- a/kontact/src/profilemanager.cpp +++ b/kontact/src/profilemanager.cpp @@ -331,7 +331,7 @@ TQString Kontact::ProfileManager::generateNewId() const { while ( true ) { - const TQString newId = KApplication::randomString( 10 ); + const TQString newId = TDEApplication::randomString( 10 ); if ( !m_profiles.contains( newId ) ) return newId; } diff --git a/korganizer/komailclient.cpp b/korganizer/komailclient.cpp index 1081f62a..a6edc648 100644 --- a/korganizer/komailclient.cpp +++ b/korganizer/komailclient.cpp @@ -243,7 +243,7 @@ bool KOMailClient::send(const TQString &from,const TQString &_to,const TQString pclose(fd); } else { if (!kapp->dcopClient()->isApplicationRegistered("kmail")) { - if (KApplication::startServiceByDesktopName("kmail")) { + if (TDEApplication::startServiceByDesktopName("kmail")) { KMessageBox::error(0,i18n("No running instance of KMail found.")); return false; } diff --git a/korganizer/korgac/testalarmdlg.cpp b/korganizer/korgac/testalarmdlg.cpp index 73d512d9..e7be364b 100644 --- a/korganizer/korgac/testalarmdlg.cpp +++ b/korganizer/korgac/testalarmdlg.cpp @@ -39,7 +39,7 @@ int main(int argc,char **argv) KAboutData aboutData("testkabc",I18N_NOOP("TestKabc"),"0.1"); TDECmdLineArgs::init(argc,argv,&aboutData); - KApplication app; + TDEApplication app; KConfig c( locate( "config", "korganizerrc" ) ); c.setGroup( "Time & Date" ); diff --git a/korganizer/korgplugins.cpp b/korganizer/korgplugins.cpp index 0763fdbb..e5fd0358 100644 --- a/korganizer/korgplugins.cpp +++ b/korganizer/korgplugins.cpp @@ -37,7 +37,7 @@ int main(int argc,char **argv) KAboutData aboutData("korgplugins",I18N_NOOP("KOrgPlugins"),"0.1"); TDECmdLineArgs::init(argc,argv,&aboutData); - KApplication app; + TDEApplication app; KTrader::OfferList plugins = KOCore::self()->availablePlugins(); KTrader::OfferList::ConstIterator it; diff --git a/korganizer/timezone.cpp b/korganizer/timezone.cpp index 66d0f2ae..9d3c42d6 100644 --- a/korganizer/timezone.cpp +++ b/korganizer/timezone.cpp @@ -39,7 +39,7 @@ int main(int argc,char **argv) KAboutData aboutData("timezone",I18N_NOOP("KOrganizer Timezone Test"),"0.1"); TDECmdLineArgs::init(argc,argv,&aboutData); - KApplication app; + TDEApplication app; kdDebug(5850) << "KOrganizer TimezoneId: " << KOPrefs::instance()->mTimeZoneId << endl; diff --git a/korganizer/urihandler.cpp b/korganizer/urihandler.cpp index 080ecd8d..6b454e63 100644 --- a/korganizer/urihandler.cpp +++ b/korganizer/urihandler.cpp @@ -91,13 +91,13 @@ bool UriHandler::process( TQWidget *parent, const TQString &uri ) } else if ( uri.startsWith( "mailto:" ) ) { - KApplication::kApplication()->invokeMailer( uri.mid(7), TQString() ); + TDEApplication::kApplication()->invokeMailer( uri.mid(7), TQString() ); return true; } else if ( uri.startsWith( "uid:" ) ) { TQString uid = uidFromUri( uri ); - DCOPClient *client = KApplication::kApplication()->dcopClient(); + DCOPClient *client = TDEApplication::kApplication()->dcopClient(); const TQByteArray noParamData; const TQByteArray paramData; TQByteArray replyData; diff --git a/kresources/featureplan/benchmarkfeaturelist.cpp b/kresources/featureplan/benchmarkfeaturelist.cpp index 1ce29998..106d8001 100644 --- a/kresources/featureplan/benchmarkfeaturelist.cpp +++ b/kresources/featureplan/benchmarkfeaturelist.cpp @@ -75,7 +75,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kresources/featureplan/dumpfeaturelist.cpp b/kresources/featureplan/dumpfeaturelist.cpp index 19e9a3fb..efab2cae 100644 --- a/kresources/featureplan/dumpfeaturelist.cpp +++ b/kresources/featureplan/dumpfeaturelist.cpp @@ -74,7 +74,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kresources/groupwise/soap/ksslsocket.cpp b/kresources/groupwise/soap/ksslsocket.cpp index e38f00d0..cd66fc50 100644 --- a/kresources/groupwise/soap/ksslsocket.cpp +++ b/kresources/groupwise/soap/ksslsocket.cpp @@ -183,7 +183,7 @@ int KSSLSocket::messageBox( KIO::SlaveBase::MessageBoxType type, const TQString } if (!d->dcc->isApplicationRegistered("kio_uiserver")) { - KApplication::startServiceByDesktopPath("kio_uiserver.desktop",TQStringList()); + TDEApplication::startServiceByDesktopPath("kio_uiserver.desktop",TQStringList()); } d->dcc->call("kio_uiserver", "UIServer", diff --git a/kresources/groupwise/soap/soapdebug.cpp b/kresources/groupwise/soap/soapdebug.cpp index 036ed5e7..e47dd747 100644 --- a/kresources/groupwise/soap/soapdebug.cpp +++ b/kresources/groupwise/soap/soapdebug.cpp @@ -52,7 +52,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/kresources/scalix/kioslave/scalix.cpp b/kresources/scalix/kioslave/scalix.cpp index 208fd352..52384afa 100644 --- a/kresources/scalix/kioslave/scalix.cpp +++ b/kresources/scalix/kioslave/scalix.cpp @@ -49,11 +49,11 @@ static const KCmdLineOptions options[] = int kdemain( int argc, char **argv ) { putenv( strdup( "SESSION_MANAGER=" ) ); - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); TDECmdLineArgs::init( argc, argv, "kio_scalix", 0, 0, 0, 0 ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); Scalix slave( args->arg( 0 ), args->arg( 1 ), args->arg( 2 ) ); diff --git a/kresources/scalix/scalixadmin/main.cpp b/kresources/scalix/scalixadmin/main.cpp index 133da8ec..b455d963 100644 --- a/kresources/scalix/scalixadmin/main.cpp +++ b/kresources/scalix/scalixadmin/main.cpp @@ -40,7 +40,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "scalixadmin" ); diff --git a/kresources/slox/testsloxaccounts.cpp b/kresources/slox/testsloxaccounts.cpp index 55011f2f..77a91d71 100644 --- a/kresources/slox/testsloxaccounts.cpp +++ b/kresources/slox/testsloxaccounts.cpp @@ -41,7 +41,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/ktnef/gui/main.cpp b/ktnef/gui/main.cpp index 27ad32a2..8f655e67 100644 --- a/ktnef/gui/main.cpp +++ b/ktnef/gui/main.cpp @@ -42,9 +42,9 @@ int main(int argc, char *argv[]) aboutData.addAuthor("Michael Goffioul",0, "tdeprint@swing.be"); TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options. - KApplication::addCmdLineOptions(); + TDEApplication::addCmdLineOptions(); - KApplication a; + TDEApplication a; KTNEFMain *tnef = new KTNEFMain(); a.setMainWidget(tnef); tnef->show(); diff --git a/libemailfunctions/tests/testemail.cpp b/libemailfunctions/tests/testemail.cpp index 4976764b..5b2f5bcb 100644 --- a/libemailfunctions/tests/testemail.cpp +++ b/libemailfunctions/tests/testemail.cpp @@ -161,9 +161,9 @@ static bool checkQuoteIfNecessary( const TQString& input, const TQString& expRes int main(int argc, char *argv[]) { - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); TDECmdLineArgs::init( argc, argv, "testemail", 0, 0, 0, 0 ); - KApplication app( false, false ); + TDEApplication app( false, false ); // Empty input checkGetNameAndEmail( TQString(), TQString(), TQString(), false ); diff --git a/libkcal/calformat.cpp b/libkcal/calformat.cpp index e506b8df..c29437ac 100644 --- a/libkcal/calformat.cpp +++ b/libkcal/calformat.cpp @@ -71,7 +71,7 @@ TQString CalFormat::createUniqueId() TQTime::currentTime().msec(); TQString uidStr = TQString("%1-%2.%3") .arg(mApplication) - .arg(KApplication::random()) + .arg(TDEApplication::random()) .arg(hashTime); return uidStr; } diff --git a/libkcal/convertqtopia.cpp b/libkcal/convertqtopia.cpp index b1af7f8c..2a8712c8 100644 --- a/libkcal/convertqtopia.cpp +++ b/libkcal/convertqtopia.cpp @@ -56,7 +56,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init(argc,argv,&aboutData); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/readandwrite.cpp b/libkcal/tests/readandwrite.cpp index 1f53a450..0c8f5586 100644 --- a/libkcal/tests/readandwrite.cpp +++ b/libkcal/tests/readandwrite.cpp @@ -50,7 +50,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testcalendar.cpp b/libkcal/tests/testcalendar.cpp index e6eb6973..323d9175 100644 --- a/libkcal/tests/testcalendar.cpp +++ b/libkcal/tests/testcalendar.cpp @@ -41,8 +41,8 @@ int main(int argc,char **argv) TDECmdLineArgs::init(argc,argv,&aboutData); TDECmdLineArgs::addCmdLineOptions( options ); -// KApplication app( false, false ); - KApplication app; +// TDEApplication app( false, false ); + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testcalselectdialog.cpp b/libkcal/tests/testcalselectdialog.cpp index 65004d34..976a6ffe 100644 --- a/libkcal/tests/testcalselectdialog.cpp +++ b/libkcal/tests/testcalselectdialog.cpp @@ -30,7 +30,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, "testcalselectdialog", 0, "KCalSelectDialogTest", "1.0", "kcalselectedialog test app" ); - KApplication app; + TDEApplication app; TQStringList cals; cals << "standard" << "shared" << "mine" << "yours"; TQString cal = CalSelectDialog::getItem( i18n( "Calendar Selection" ), diff --git a/libkcal/tests/testfields.cpp b/libkcal/tests/testfields.cpp index e24baec5..9f57d3b2 100644 --- a/libkcal/tests/testfields.cpp +++ b/libkcal/tests/testfields.cpp @@ -43,8 +43,8 @@ int main(int argc,char **argv) TDECmdLineArgs::init(argc,argv,&aboutData); TDECmdLineArgs::addCmdLineOptions( options ); -// KApplication app( false, false ); - KApplication app; +// TDEApplication app( false, false ); + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testincidence.cpp b/libkcal/tests/testincidence.cpp index c6a5ef57..4647c2b5 100644 --- a/libkcal/tests/testincidence.cpp +++ b/libkcal/tests/testincidence.cpp @@ -43,7 +43,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init(argc,argv,&aboutData); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testrecurprevious.cpp b/libkcal/tests/testrecurprevious.cpp index 3d2216b7..0b1e756c 100644 --- a/libkcal/tests/testrecurprevious.cpp +++ b/libkcal/tests/testrecurprevious.cpp @@ -53,7 +53,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testrecurrence.cpp b/libkcal/tests/testrecurrence.cpp index 14d470cf..9b165297 100644 --- a/libkcal/tests/testrecurrence.cpp +++ b/libkcal/tests/testrecurrence.cpp @@ -53,7 +53,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testrecurrencetype.cpp b/libkcal/tests/testrecurrencetype.cpp index 14d470cf..9b165297 100644 --- a/libkcal/tests/testrecurrencetype.cpp +++ b/libkcal/tests/testrecurrencetype.cpp @@ -53,7 +53,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testrecurson.cpp b/libkcal/tests/testrecurson.cpp index cd5edf76..a1df982a 100644 --- a/libkcal/tests/testrecurson.cpp +++ b/libkcal/tests/testrecurson.cpp @@ -53,7 +53,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libkcal/tests/testresource.cpp b/libkcal/tests/testresource.cpp index 6fc8fc2a..b7f2f24c 100644 --- a/libkcal/tests/testresource.cpp +++ b/libkcal/tests/testresource.cpp @@ -59,11 +59,11 @@ int main(int argc, char *argv[]) setenv( "TDEHOME", TQFile::encodeName( TQDir::homeDirPath() + "/.tde-testresource" ), true ); setenv( "TDE_FORK_SLAVES", "yes", true ); // simpler, for the final cleanup - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); TDECmdLineArgs::init(argc,argv,"testresource", 0, 0, 0, 0); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); TQString type = TQString(); if ( args->getOption( "resource" ) ) diff --git a/libkcal/tests/testvcalexport.cpp b/libkcal/tests/testvcalexport.cpp index 16a15afa..8d32e940 100644 --- a/libkcal/tests/testvcalexport.cpp +++ b/libkcal/tests/testvcalexport.cpp @@ -54,7 +54,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app( false, false ); + TDEApplication app( false, false ); TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/libtdepim/cfgc/autoexample.cpp b/libtdepim/cfgc/autoexample.cpp index 85ce92ed..fa9e9b52 100644 --- a/libtdepim/cfgc/autoexample.cpp +++ b/libtdepim/cfgc/autoexample.cpp @@ -43,7 +43,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; // Create a new dialog with the same name as the above checking code. KAutoConfigDialog *dialog = new KAutoConfigDialog(0, "settings"); diff --git a/libtdepim/cfgc/example.cpp b/libtdepim/cfgc/example.cpp index bb3bd394..183b4f26 100644 --- a/libtdepim/cfgc/example.cpp +++ b/libtdepim/cfgc/example.cpp @@ -39,7 +39,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; ExamplePrefsBase *prefs = ExamplePrefsBase::self(); diff --git a/libtdepim/komposer/core/pluginmanager.h b/libtdepim/komposer/core/pluginmanager.h index 44291450..eae6d49a 100644 --- a/libtdepim/komposer/core/pluginmanager.h +++ b/libtdepim/komposer/core/pluginmanager.h @@ -208,7 +208,7 @@ namespace Komposer void slotShutdownTimeout(); /** - * Common entry point to deref() the KApplication. Used both by the clean + * Common entry point to deref() the TDEApplication. Used both by the clean * shutdown and the timeout condition of slotShutdownTimeout() */ void slotShutdownDone(); diff --git a/libtdepim/komposer/core/tests/main.cpp b/libtdepim/komposer/core/tests/main.cpp index 2d394a22..80bf8fc9 100644 --- a/libtdepim/komposer/core/tests/main.cpp +++ b/libtdepim/komposer/core/tests/main.cpp @@ -42,7 +42,7 @@ int main( int argc, char** argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); Q_UNUSED( args ); diff --git a/libtdepim/komposer/core/tests/testkomposer.cpp b/libtdepim/komposer/core/tests/testkomposer.cpp index 31462a7e..efacb460 100644 --- a/libtdepim/komposer/core/tests/testkomposer.cpp +++ b/libtdepim/komposer/core/tests/testkomposer.cpp @@ -8,7 +8,7 @@ int main( int argc, char **argv ) { TDECmdLineArgs::init( argc, argv, "test", "test", "test", "0.1" ); - KApplication app; + TDEApplication app; Komposer::Core *core = new Komposer::Core(); app.setMainWidget( core ); diff --git a/libtdepim/komposer/core/tests/testmanager.cpp b/libtdepim/komposer/core/tests/testmanager.cpp index a9b06171..b883997f 100644 --- a/libtdepim/komposer/core/tests/testmanager.cpp +++ b/libtdepim/komposer/core/tests/testmanager.cpp @@ -45,7 +45,7 @@ void TestManager::slotPluginLoaded( Plugin *plugin ) int main( int argc, char **argv ) { TDECmdLineArgs::init( argc, argv, "test", "test", "test", "0.1" ); - KApplication app; + TDEApplication app; TestManager manager( &app ); diff --git a/libtdepim/ksubscription.cpp b/libtdepim/ksubscription.cpp index f61b633c..2a2347ed 100644 --- a/libtdepim/ksubscription.cpp +++ b/libtdepim/ksubscription.cpp @@ -224,7 +224,7 @@ KSubscription::KSubscription( TQWidget *parent, const TQString &caption, TQToolButton *clearButton = new TQToolButton( page ); clearButton->setIconSet( KGlobal::iconLoader()->loadIconSet( - KApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); + TDEApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) ); filterEdit = new KLineEdit(page); TQLabel *l = new TQLabel(filterEdit,i18n("S&earch:"), page); connect( clearButton, TQT_SIGNAL( clicked() ), filterEdit, TQT_SLOT( clear() ) ); diff --git a/libtdepim/tests/testaddresseelineedit.cpp b/libtdepim/tests/testaddresseelineedit.cpp index 201a1128..b0299839 100644 --- a/libtdepim/tests/testaddresseelineedit.cpp +++ b/libtdepim/tests/testaddresseelineedit.cpp @@ -32,7 +32,7 @@ int main(int argc, char* argv[]) KAboutData aboutData("testaddresseelineedit","Test AddresseeLineEdit","0.1"); TDECmdLineArgs::init(argc,argv,&aboutData); - KApplication app; + TDEApplication app; KPIM::AddresseeLineEdit *kale = new KPIM::AddresseeLineEdit(0); kale->resize( 400, 20 ); diff --git a/libtdepim/tests/testaddresseeselector.cpp b/libtdepim/tests/testaddresseeselector.cpp index 7f1ae17d..af5a1dd4 100644 --- a/libtdepim/tests/testaddresseeselector.cpp +++ b/libtdepim/tests/testaddresseeselector.cpp @@ -33,7 +33,7 @@ int main( int argc, char **argv ) KAboutData aboutData( "testaddresseeseletor", "Test AddresseeSelector", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; KPIM::AddresseeEmailSelection selection; diff --git a/libtdepim/tests/testdateedit.cpp b/libtdepim/tests/testdateedit.cpp index 97f8408a..612aca17 100644 --- a/libtdepim/tests/testdateedit.cpp +++ b/libtdepim/tests/testdateedit.cpp @@ -56,7 +56,7 @@ int main(int argc,char **argv) KAboutData aboutData( "testdateedit", "Test KDateEdit", "0.1" ); TDECmdLineArgs::init( argc, argv, &aboutData ); - KApplication app; + TDEApplication app; DateEdit dateEdit; app.setMainWidget( &dateEdit ); diff --git a/libtdepim/tests/testdistrlist.cpp b/libtdepim/tests/testdistrlist.cpp index ae27b054..7572c847 100644 --- a/libtdepim/tests/testdistrlist.cpp +++ b/libtdepim/tests/testdistrlist.cpp @@ -46,9 +46,9 @@ int main(int argc, char *argv[]) setenv( "TDEHOME", TQFile::encodeName( TQDir::homeDirPath() + "/.tde-testdistrlist" ), true ); setenv( "TDE_FORK_SLAVES", "yes", true ); // simpler, for the final cleanup - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); TDECmdLineArgs::init(argc,argv,"testdistrlist", 0, 0, 0, 0); - KApplication app( false, false ); + TDEApplication app( false, false ); TestDistrList test; test.setup(); diff --git a/libtdepim/tests/testkincidencechooser.cpp b/libtdepim/tests/testkincidencechooser.cpp index eea14019..53950825 100644 --- a/libtdepim/tests/testkincidencechooser.cpp +++ b/libtdepim/tests/testkincidencechooser.cpp @@ -32,7 +32,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, "testkincidencechooser", 0, "KIncidenceChooserTest", "1.0", "kincidencechooser test app" ); - KApplication app; + TDEApplication app; KIncidenceChooser *chooser = new KIncidenceChooser(); Event event; diff --git a/libtdepim/tests/testlinklocator.cpp b/libtdepim/tests/testlinklocator.cpp index 1744904d..0ed3f1f9 100644 --- a/libtdepim/tests/testlinklocator.cpp +++ b/libtdepim/tests/testlinklocator.cpp @@ -59,9 +59,9 @@ static bool checkGetEmailAddress( const TQString & input, int main(int argc, char *argv[]) { - KApplication::disableAutoDcopRegistration(); + TDEApplication::disableAutoDcopRegistration(); TDECmdLineArgs::init( argc, argv, "testlinklocator", 0, 0, 0, 0 ); - KApplication app( false, false ); + TDEApplication app( false, false ); // empty input checkGetEmailAddress( TQString(), 0, TQString(), true ); diff --git a/libtdepim/tests/testwizard.cpp b/libtdepim/tests/testwizard.cpp index 23663699..03ee4ac4 100644 --- a/libtdepim/tests/testwizard.cpp +++ b/libtdepim/tests/testwizard.cpp @@ -87,7 +87,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init(argc,argv,&aboutData); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs(); diff --git a/plugins/kmail/bodypartformatter/text_calendar.cpp b/plugins/kmail/bodypartformatter/text_calendar.cpp index f31ed3a4..2acfdc2d 100644 --- a/plugins/kmail/bodypartformatter/text_calendar.cpp +++ b/plugins/kmail/bodypartformatter/text_calendar.cpp @@ -823,7 +823,7 @@ class UrlHandler : public KMail::Interface::BodyPartURLHandler summary = i18n( "Re: %1" ).arg( summary ); } - KApplication::kApplication()->invokeMailer( incidence->organizer().email(), summary ); + TDEApplication::kApplication()->invokeMailer( incidence->organizer().email(), summary ); //fall through case KMessageBox::Yes: // means "do not send" if ( saveFile( "Receiver Not Searched", iCal, TQString( "reply" ) ) ) { diff --git a/wizards/egroupwaremain.cpp b/wizards/egroupwaremain.cpp index 010a87ed..72d66fe5 100644 --- a/wizards/egroupwaremain.cpp +++ b/wizards/egroupwaremain.cpp @@ -42,7 +42,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "libtdepim" ); diff --git a/wizards/exchangemain.cpp b/wizards/exchangemain.cpp index eb539329..7d7bc894 100644 --- a/wizards/exchangemain.cpp +++ b/wizards/exchangemain.cpp @@ -42,7 +42,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "libtdepim" ); diff --git a/wizards/groupwisemain.cpp b/wizards/groupwisemain.cpp index 301972c6..e305e214 100644 --- a/wizards/groupwisemain.cpp +++ b/wizards/groupwisemain.cpp @@ -43,7 +43,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "libtdepim" ); diff --git a/wizards/kolabmain.cpp b/wizards/kolabmain.cpp index a09cb005..3b5715aa 100644 --- a/wizards/kolabmain.cpp +++ b/wizards/kolabmain.cpp @@ -42,7 +42,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "libtdepim" ); diff --git a/wizards/main.cpp b/wizards/main.cpp index 811878c8..c45fdd52 100644 --- a/wizards/main.cpp +++ b/wizards/main.cpp @@ -21,7 +21,7 @@ int main( int argc, char **argv ) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "libtdepim" ); diff --git a/wizards/scalixmain.cpp b/wizards/scalixmain.cpp index 7afbb782..1ae125fc 100644 --- a/wizards/scalixmain.cpp +++ b/wizards/scalixmain.cpp @@ -42,7 +42,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "libtdepim" ); diff --git a/wizards/sloxmain.cpp b/wizards/sloxmain.cpp index 52fac977..93500b3c 100644 --- a/wizards/sloxmain.cpp +++ b/wizards/sloxmain.cpp @@ -42,7 +42,7 @@ int main(int argc,char **argv) TDECmdLineArgs::init( argc, argv, &aboutData ); TDECmdLineArgs::addCmdLineOptions( options ); - KApplication app; + TDEApplication app; KGlobal::locale()->insertCatalogue( "libtdepim" );