summaryrefslogtreecommitdiffstats
path: root/kbabel/catalogmanager/catalogmanagerview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:49:56 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:49:56 -0600
commite6aaa3624cc6179b82a9bfff1760e742a669064c (patch)
tree3fed4deb0540d34f85dfb53b02bea7519e66cc6f /kbabel/catalogmanager/catalogmanagerview.cpp
parent4071ae43ea213cd0f7d5c344c939ebd97d097051 (diff)
downloadtdesdk-e6aaa3624cc6179b82a9bfff1760e742a669064c.tar.gz
tdesdk-e6aaa3624cc6179b82a9bfff1760e742a669064c.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kbabel/catalogmanager/catalogmanagerview.cpp')
-rw-r--r--kbabel/catalogmanager/catalogmanagerview.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kbabel/catalogmanager/catalogmanagerview.cpp b/kbabel/catalogmanager/catalogmanagerview.cpp
index 6bca24c1..1be2cba8 100644
--- a/kbabel/catalogmanager/catalogmanagerview.cpp
+++ b/kbabel/catalogmanager/catalogmanagerview.cpp
@@ -221,7 +221,7 @@ CatalogManagerView::CatalogManagerView(KBabel::Project::Ptr project, TQWidget* p
connect( svnhandler, TQT_SIGNAL( signalFilesCommitted( const TQStringList& ) ),
this, TQT_SLOT( updateFiles( const TQStringList& ) ) );
- KConfig *config = KGlobal::config();
+ KConfig *config = TDEGlobal::config();
restoreView(config);
_dictBox->readSettings(_project->config());
@@ -237,7 +237,7 @@ CatalogManagerView::~CatalogManagerView()
if(_settings.killCmdOnExit)
{
- KProcess* proc;
+ TDEProcess* proc;
for ( proc=_pendingProcesses.first(); proc != 0; proc=_pendingProcesses.next() )
{
proc->kill(SIGKILL);
@@ -715,7 +715,7 @@ void CatalogManagerView::markedStatistics()
void CatalogManagerView::showStatistics( CatManListItem *i, TQStringList &childrenList )
{
- KLocale *locale = KGlobal::locale();
+ KLocale *locale = TDEGlobal::locale();
TQString msg;
int totalPackages=0;
@@ -1617,18 +1617,18 @@ void CatalogManagerView::slotDirCommand(int index)
kdDebug(KBABEL_CATMAN) << cmd << endl;
- KProcess* proc = new KShellProcess();
+ TDEProcess* proc = new KShellProcess();
_pendingProcesses.append(proc);
- connect( proc,TQT_SIGNAL( processExited(KProcess *) ), this
- ,TQT_SLOT( processEnded(KProcess*) ) );
- connect( proc,TQT_SIGNAL( receivedStdout(KProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(KProcess*,char*,int) ) );
- connect( proc,TQT_SIGNAL( receivedStderr(KProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(KProcess*,char*,int) ) );
+ connect( proc,TQT_SIGNAL( processExited(TDEProcess *) ), this
+ ,TQT_SLOT( processEnded(TDEProcess*) ) );
+ connect( proc,TQT_SIGNAL( receivedStdout(TDEProcess*,char*,int) ), this
+ ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
+ connect( proc,TQT_SIGNAL( receivedStderr(TDEProcess*,char*,int) ), this
+ ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
*proc << "cd" << item->poFile() << ";" << cmd;
- proc->start(KProcess::NotifyOnExit,KProcess::AllOutput);
+ proc->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput);
}
}
@@ -1650,18 +1650,18 @@ void CatalogManagerView::slotFileCommand(int index)
kdDebug(KBABEL_CATMAN) << cmd << endl;
- KProcess* proc = new KShellProcess();
+ TDEProcess* proc = new KShellProcess();
_pendingProcesses.append(proc);
- connect( proc,TQT_SIGNAL( processExited(KProcess *) ), this
- ,TQT_SLOT( processEnded(KProcess*) ) );
- connect( proc,TQT_SIGNAL( receivedStdout(KProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(KProcess*,char*,int) ) );
- connect( proc,TQT_SIGNAL( receivedStderr(KProcess*,char*,int) ), this
- ,TQT_SLOT( showOutput(KProcess*,char*,int) ) );
+ connect( proc,TQT_SIGNAL( processExited(TDEProcess *) ), this
+ ,TQT_SLOT( processEnded(TDEProcess*) ) );
+ connect( proc,TQT_SIGNAL( receivedStdout(TDEProcess*,char*,int) ), this
+ ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
+ connect( proc,TQT_SIGNAL( receivedStderr(TDEProcess*,char*,int) ), this
+ ,TQT_SLOT( showOutput(TDEProcess*,char*,int) ) );
*proc << "cd" << parent->poFile() << ";" << cmd;
- proc->start(KProcess::NotifyOnExit,KProcess::AllOutput);
+ proc->start(TDEProcess::NotifyOnExit,TDEProcess::AllOutput);
}
}
@@ -2517,7 +2517,7 @@ void CatalogManagerView::contentsMouseMoveEvent(TQMouseEvent* event)
{
if(event->state() & Qt::LeftButton)
{
- const int delay = KGlobalSettings::dndEventDelay();
+ const int delay = TDEGlobalSettings::dndEventDelay();
if(TQABS( event->pos().x() - _pressPos.x() ) >= delay ||
TQABS( event->pos().y() - _pressPos.y() ) >= delay)
{
@@ -2532,7 +2532,7 @@ void CatalogManagerView::contentsMouseMoveEvent(TQMouseEvent* event)
uri.append(TQUriDrag::localFileToUri(item->potFile()));
TQUriDrag* drag = new TQUriDrag(uri,this);
- TQPixmap icon=KGlobal::iconLoader()->loadIcon("txt",KIcon::Desktop);
+ TQPixmap icon=TDEGlobal::iconLoader()->loadIcon("txt",KIcon::Desktop);
drag->setPixmap(icon,TQPoint(icon.width()/2,icon.height()/2));
drag->drag();
}
@@ -2593,13 +2593,13 @@ void CatalogManagerView::deleteDirItem(TQString relDir)
-void CatalogManagerView::processEnded(KProcess* proc)
+void CatalogManagerView::processEnded(TDEProcess* proc)
{
_pendingProcesses.removeRef(proc);
}
-void CatalogManagerView::showOutput(KProcess*, char *buffer, int buflen)
+void CatalogManagerView::showOutput(TDEProcess*, char *buffer, int buflen)
{
const TQCString output(buffer,buflen+1);