summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-24 13:20:21 -0600
committerTimothy Pearson <[email protected]>2013-01-24 13:20:21 -0600
commit5cd0f61d88ee0aa08b9a5cbdb84456019d225617 (patch)
treeb7320d69d1fc7c0542c70877f1f303a21b484196
parentbafe0518aecc1d6946be9ac55ec41a8438223fff (diff)
downloadkdirstat-5cd0f61d88ee0aa08b9a5cbdb84456019d225617.tar.gz
kdirstat-5cd0f61d88ee0aa08b9a5cbdb84456019d225617.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
-rw-r--r--kdirstat/kcleanup.cpp8
-rw-r--r--kdirstat/kdirtreeview.cpp10
-rw-r--r--kdirstat/kfeedback.cpp6
3 files changed, 12 insertions, 12 deletions
diff --git a/kdirstat/kcleanup.cpp b/kdirstat/kcleanup.cpp
index d9e738e..929cc36 100644
--- a/kdirstat/kcleanup.cpp
+++ b/kdirstat/kcleanup.cpp
@@ -319,7 +319,7 @@ KCleanup::expandVariables( const KFileInfo * item,
if ( KDE::versionMajor() >= 3 && KDE::versionMinor() >= 4 )
expanded.replace( TQRegExp( "%t" ), "trash:/" );
else
- expanded.replace( TQRegExp( "%t" ), KGlobalSettings::trashPath() );
+ expanded.replace( TQRegExp( "%t" ), TDEGlobalSettings::trashPath() );
return expanded;
}
@@ -329,7 +329,7 @@ void
KCleanup::runCommand ( const KFileInfo * item,
const TQString & command ) const
{
- KProcess proc;
+ TDEProcess proc;
KDirSaver dir( itemDir( item ) );
TQString cmd( expandVariables( item, command ));
@@ -356,7 +356,7 @@ KCleanup::runCommand ( const KFileInfo * item,
// finish, so we are starting the command as a pure
// background process.
- proc.start( KProcess::DontCare );
+ proc.start( TDEProcess::DontCare );
break;
@@ -369,7 +369,7 @@ KCleanup::runCommand ( const KFileInfo * item,
// process in blocking mode.
TQApplication::setOverrideCursor( waitCursor );
- proc.start( KProcess::Block );
+ proc.start( TDEProcess::Block );
TQApplication::restoreOverrideCursor();
break;
}
diff --git a/kdirstat/kdirtreeview.cpp b/kdirstat/kdirtreeview.cpp
index a042d2d..f0cea2e 100644
--- a/kdirstat/kdirtreeview.cpp
+++ b/kdirstat/kdirtreeview.cpp
@@ -88,7 +88,7 @@ KDirTreeView::KDirTreeView( TQWidget * parent )
setSorting( _totalSizeCol );
-#define loadIcon(ICON) KGlobal::iconLoader()->loadIcon( (ICON), KIcon::Small )
+#define loadIcon(ICON) TDEGlobal::iconLoader()->loadIcon( (ICON), KIcon::Small )
_openDirIcon = loadIcon( "folder_open" );
_closedDirIcon = loadIcon( "folder" );
@@ -734,7 +734,7 @@ KDirTreeView::ensureContrast()
void
KDirTreeView::paletteChanged()
{
- setTreeBackground( KGlobalSettings::baseColor() );
+ setTreeBackground( TDEGlobalSettings::baseColor() );
ensureContrast();
}
@@ -1764,7 +1764,7 @@ KDirStat::formatSizeLong( KFileSize size )
if ( ++count == 3 && size > 0 )
{
- sizeText = KGlobal::locale()->thousandsSeparator() + sizeText;
+ sizeText = TDEGlobal::locale()->thousandsSeparator() + sizeText;
count = 0;
}
}
@@ -1912,8 +1912,8 @@ KDirStat::localeTimeDate( time_t rawTime )
TQDateTime timeDate;
timeDate.setTime_t( rawTime );
TQString timeDateString =
- KGlobal::locale()->formatDate( timeDate.date(), true ) + " " + // short format
- KGlobal::locale()->formatTime( timeDate.time(), true ); // include seconds
+ TDEGlobal::locale()->formatDate( timeDate.date(), true ) + " " + // short format
+ TDEGlobal::locale()->formatTime( timeDate.time(), true ); // include seconds
return timeDateString;
}
diff --git a/kdirstat/kfeedback.cpp b/kdirstat/kfeedback.cpp
index b8c3fbf..e81d21e 100644
--- a/kdirstat/kfeedback.cpp
+++ b/kdirstat/kfeedback.cpp
@@ -116,7 +116,7 @@ KFeedbackForm::KFeedbackForm( const TQString & feedbackMailAddress,
label = new TQLabel( hbox );
CHECK_PTR( label );
- label->setPixmap( KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
+ label->setPixmap( TDEGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
label->setSizePolicy( pol );
label = new TQLabel( i18n( " must be answered before a mail can be sent.") , hbox );
@@ -154,7 +154,7 @@ KFeedbackForm::sendMail()
TQString subject;
- const TDEAboutData * aboutData = KGlobal::instance()->aboutData();
+ const TDEAboutData * aboutData = TDEGlobal::instance()->aboutData();
if ( aboutData )
subject = aboutData->programName() + "-" + aboutData->version();
@@ -342,7 +342,7 @@ KFeedbackQuestion::KFeedbackQuestion( KFeedbackQuestionList * parent,
{
if ( required )
{
- setPixmap( 0, KGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
+ setPixmap( 0, TDEGlobal::iconLoader()->loadIcon( "edit", KIcon::Small ) );
}
setOpen( open );