Rename KApplication to TDEApplication to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 201e831d6d
commit 44a28c50e8

@ -40,9 +40,9 @@ int main(int argc, char** argv)
TDECmdLineArgs::init(argc, argv, &about);
TDECmdLineArgs::addCmdLineOptions(options);
// no need to register with the dcop server
KApplication::disableAutoDcopRegistration();
TDEApplication::disableAutoDcopRegistration();
KApplication app;
TDEApplication app;
// no need for session management
app.disableSessionManagement();
TQString prompt;

@ -95,7 +95,7 @@ void DiffBrowser::saveDiff()
}
TQFile tfile(saveTo);
if (tfile.exists()) {
if (KMessageBox::warningYesNo(TQT_TQWIDGET(KApplication::activeModalWidget()),
if (KMessageBox::warningYesNo(TQT_TQWIDGET(TDEApplication::activeModalWidget()),
i18n("File %1 exists - overwrite?").arg(saveTo))
!=KMessageBox::Yes) {
return;

@ -58,7 +58,7 @@ int main(int argc, char **argv)
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;
TDEApplication app;
// see if we are starting with session management
if (app.isRestored())

@ -410,7 +410,7 @@ void BlameDisplay_impl::showCommit(BlameDisplayItem*bit)
}
}
KDialogBase* dlg = new KDialogBase(
TQT_TQWIDGET(KApplication::activeModalWidget()),
TQT_TQWIDGET(TDEApplication::activeModalWidget()),
"simplelog",true,TQString(i18n("Logmessage for revision %1").arg(bit->rev())),
KDialogBase::Close);
TQWidget* Dialog1Layout = dlg->makeVBoxMainWidget();
@ -446,7 +446,7 @@ void BlameDisplay_impl::displayBlame(SimpleLogCb*_cb,const TQString&item,const s
{
int buttons = KDialogBase::Close|KDialogBase::User1|KDialogBase::User2;
KDialogBase * dlg = new KDialogBase(
TQT_TQWIDGET(KApplication::activeModalWidget()),
TQT_TQWIDGET(TDEApplication::activeModalWidget()),
name,true,TQString(i18n("Blame %1")).arg(item),buttons,KDialogBase::Close,false,
KGuiItem(i18n("Goto line")),KGuiItem(i18n("Log message for revision"),"tdesvnlog"));

@ -314,7 +314,7 @@ int CommandExec::exec()
if (Kdesvnsettings::self()->cmdline_show_logwindow() &&
m_lastMessagesLines >= Kdesvnsettings::self()->cmdline_log_minline()) {
KDialogBase dlg (
TQT_TQWIDGET(KApplication::activeModalWidget()),
TQT_TQWIDGET(TDEApplication::activeModalWidget()),
"execution_log",
true,
i18n("Execution log"),

@ -68,7 +68,7 @@ void FillCacheThread::run()
TQString ex;
svn::cache::ReposLog rl(m_Svnclient,m_what);
bool breakit=false;
KApplication*k = KApplication::kApplication();
TDEApplication*k = TDEApplication::kApplication();
try {
svn::Revision latestCache = rl.latestCachedRev();
svn::Revision Head = rl.latestHeadRev();

@ -41,7 +41,7 @@ public:
*/
CursorStack(TQt::CursorShape c = TQt::WaitCursor)
{
KApplication::setOverrideCursor(TQCursor(c));
TDEApplication::setOverrideCursor(TQCursor(c));
}
//! Destructor.
/*!
@ -49,7 +49,7 @@ public:
*/
~CursorStack()
{
KApplication::restoreOverrideCursor();
TDEApplication::restoreOverrideCursor();
}
};

@ -50,7 +50,7 @@ void RevisionButtonImpl::askRevision()
Rangeinput_impl*rdlg;
int buttons = KDialogBase::Ok|KDialogBase::Cancel;
KDialogBase * dlg = new KDialogBase(TQT_TQWIDGET(KApplication::activeModalWidget()),"Revinput",true,i18n("Select revision"),buttons);
KDialogBase * dlg = new KDialogBase(TQT_TQWIDGET(TDEApplication::activeModalWidget()),"Revinput",true,i18n("Select revision"),buttons);
if (!dlg) {
return;

@ -944,7 +944,7 @@ void RevGraphView::setBasePath(const TQString&_path)
void RevGraphView::slotClientException(const TQString&what)
{
KMessageBox::sorry(TQT_TQWIDGET(KApplication::activeModalWidget()),what,i18n("SVN Error"));
KMessageBox::sorry(TQT_TQWIDGET(TDEApplication::activeModalWidget()),what,i18n("SVN Error"));
}
#include "revgraphview.moc"

@ -70,7 +70,7 @@ void CheckModifiedThread::run()
} catch (const svn::Exception&e) {
m_ContextListener->contextNotify(e.msg());
}
KApplication*k = KApplication::kApplication();
TDEApplication*k = TDEApplication::kApplication();
if (k) {
TQCustomEvent*ev = new TQCustomEvent(EVENT_THREAD_FINISHED);
ev->setData((void*)this);

@ -252,7 +252,7 @@ template<class T> KDialogBase* SvnActions::createDialog(T**ptr,const TQString&_h
buttons = buttons|KDialogBase::User1;
}
KDialogBase * dlg = new KDialogBase(
modal?TQT_TQWIDGET(TQT_TQWIDGET(KApplication::activeModalWidget())):0, // parent
modal?TQT_TQWIDGET(TQT_TQWIDGET(TDEApplication::activeModalWidget())):0, // parent
name, // name
modal, // modal
_head, // caption
@ -483,7 +483,7 @@ void SvnActions::makeLog(const svn::Revision&start,const svn::Revision&end,const
kdDebug()<<"getting logs..."<<endl;
svn::SharedPointer<svn::LogEntriesMap> logs = getLog(start,end,peg,which,list_files,limit);
if (!logs) return;
bool need_modal = m_Data->runblocked||TQT_TQWIDGET(KApplication::activeModalWidget())!=0;
bool need_modal = m_Data->runblocked||TQT_TQWIDGET(TDEApplication::activeModalWidget())!=0;
if (need_modal||!m_Data->m_LogDialog) {
m_Data->m_LogDialog=new SvnLogDlgImp(this,0,"logdialog",need_modal);
connect(m_Data->m_LogDialog,TQT_SIGNAL(makeDiff(const TQString&,const svn::Revision&,const TQString&,const svn::Revision&,TQWidget*)),
@ -1356,7 +1356,7 @@ void SvnActions::dispDiff(const TQByteArray&ex)
}
delete proc;
}
bool need_modal = m_Data->runblocked||TQT_TQWIDGET(KApplication::activeModalWidget())!=0;
bool need_modal = m_Data->runblocked||TQT_TQWIDGET(TDEApplication::activeModalWidget())!=0;
if (need_modal||!m_Data->m_DiffBrowserPtr||!m_Data->m_DiffDialog) {
DiffBrowser*ptr;

@ -1041,7 +1041,7 @@ void tdesvnfilelist::slotSelectionChanged()
void tdesvnfilelist::slotClientException(const TQString&what)
{
emit sigLogMessage(what);
KMessageBox::sorry(TQT_TQWIDGET(KApplication::activeModalWidget()),what,i18n("SVN Error"));
KMessageBox::sorry(TQT_TQWIDGET(TDEApplication::activeModalWidget()),what,i18n("SVN Error"));
}
@ -1067,7 +1067,7 @@ void tdesvnfilelist::slotChangeToRepository()
return;
}
if (i.reposRoot().isEmpty()) {
KMessageBox::sorry(TQT_TQWIDGET(KApplication::activeModalWidget()),i18n("Could not retrieve repository of working copy."),i18n("SVN Error"));
KMessageBox::sorry(TQT_TQWIDGET(TDEApplication::activeModalWidget()),i18n("Could not retrieve repository of working copy."),i18n("SVN Error"));
} else {
sigSwitchUrl(i.reposRoot());
}
@ -1150,7 +1150,7 @@ template<class T> KDialogBase* tdesvnfilelist::createDialog(T**ptr,const TQStrin
buttons = buttons|KDialogBase::Help;
}
KDialogBase * dlg = new KDialogBase(
TQT_TQWIDGET(TQT_TQWIDGET(KApplication::activeModalWidget())),
TQT_TQWIDGET(TQT_TQWIDGET(TDEApplication::activeModalWidget())),
name,
true,
_head,

@ -239,7 +239,7 @@ void tdesvnView::slotSettingsChanged()
void tdesvnView::slotCreateRepo()
{
KDialogBase * dlg = new KDialogBase(
TQT_TQWIDGET(KApplication::activeModalWidget()),
TQT_TQWIDGET(TDEApplication::activeModalWidget()),
"create_repository",
true,
i18n("Create new repository"),
@ -287,7 +287,7 @@ void tdesvnView::slotCreateRepo()
void tdesvnView::slotHotcopy()
{
KDialogBase * dlg = new KDialogBase(
TQT_TQWIDGET(KApplication::activeModalWidget()),
TQT_TQWIDGET(TDEApplication::activeModalWidget()),
"hotcopy_repository",
true,
i18n("Hotcopy a repository"),
@ -322,7 +322,7 @@ void tdesvnView::slotHotcopy()
void tdesvnView::slotLoaddump()
{
KDialogBase dlg(
TQT_TQWIDGET(KApplication::activeModalWidget()),
TQT_TQWIDGET(TDEApplication::activeModalWidget()),
"hotcopy_repository",
true,
i18n("Hotcopy a repository"),
@ -372,7 +372,7 @@ void tdesvnView::slotLoaddump()
void tdesvnView::slotDumpRepo()
{
KDialogBase * dlg = new KDialogBase(
TQT_TQWIDGET(KApplication::activeModalWidget()),
TQT_TQWIDGET(TDEApplication::activeModalWidget()),
"dump_repository",
true,
i18n("Dump a repository"),

Loading…
Cancel
Save