Rename KApplication to TDEApplication to avoid conflicts with KDE4

pull/21/head
Timothy Pearson 11 years ago
parent 32b66c9ae7
commit d6d75dc9ff

@ -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)

@ -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();
}

@ -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();

@ -210,7 +210,7 @@ NodeList::~NodeList()
int NodeList::generateID()
{
return KApplication::random();
return TDEApplication::random();
}
void NodeList::slotNodeAdded(TreeNode* node)

@ -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;

@ -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))
{

@ -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();

@ -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();

@ -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 )

@ -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();
}

@ -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 );

@ -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 );

@ -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" );

@ -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";

@ -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 );

@ -59,7 +59,7 @@ int main( int argc, char** argv )
};
TDECmdLineArgs::addCmdLineOptions( options );
KApplication app;
TDEApplication app;
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();

@ -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();

@ -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();

@ -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();

@ -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<KPIM::DistributionListEditor::Line*>::ConstIterator ListIterator;

@ -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 );

@ -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;
}

@ -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()

@ -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 );

@ -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 );

@ -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() ) )

@ -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 );
}
}
}

@ -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);

@ -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();

@ -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

@ -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();

@ -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

@ -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();

@ -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() ) );
}
}

@ -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();

@ -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 <taferner@kde.org> (KMail-1.0.6)

@ -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;

@ -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");

@ -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 ) {

@ -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 );

@ -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)

@ -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;

@ -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 );
}

@ -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") );

@ -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() ) );

@ -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() ) );

@ -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() )

@ -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() )

@ -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();

@ -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();

@ -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();
}

@ -898,7 +898,7 @@ Tue Feb 16 09:34:25 1999 David Faure <faure@kde.org>
* 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!

@ -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 );
}

@ -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();

@ -53,7 +53,7 @@ int main( int argc, char **argv )
return 1;
}
KApplication app;
TDEApplication app;
Loader loader;
loader.setWSDLUrl( args->url( 0 ).path() );

@ -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() )

@ -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;

@ -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
);

@ -197,7 +197,7 @@ void Kontact::UniqueAppHandler::loadKontactCommandLineOptions()
{
TDECmdLineArgs::addCmdLineOptions( options );
KUniqueApplication::addCmdLineOptions();
KApplication::addCmdLineOptions();
TDEApplication::addCmdLineOptions();
}
#include "uniqueapphandler.moc"

@ -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 );
}

@ -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;
}

@ -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;
}

@ -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;

@ -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;

@ -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()

@ -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;
}

@ -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;
}

@ -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" );

@ -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;

@ -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;

@ -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;

@ -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();

@ -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();

@ -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",

@ -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();

@ -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 ) );

@ -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" );

@ -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();

@ -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();

@ -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 );

@ -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;
}

@ -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();

@ -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();

@ -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();

@ -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" ),

@ -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();

@ -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();

@ -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();

@ -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();

@ -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();

@ -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();

@ -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" ) )

@ -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();

@ -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");

@ -39,7 +39,7 @@ int main( int argc, char **argv )
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;
TDEApplication app;
ExamplePrefsBase *prefs = ExamplePrefsBase::self();

@ -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();

@ -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 );

@ -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 );

@ -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 );

@ -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() ) );

@ -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 );

@ -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;

@ -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 );

@ -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();

@ -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;

@ -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 );

@ -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();

@ -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" ) ) ) {

@ -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" );

@ -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" );

@ -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" );

@ -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" );

@ -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" );

@ -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" );

@ -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" );

Loading…
Cancel
Save