From 40a94e488f56f1e783636b6414da7a3c4cadc86e Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:19:01 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- src/part/Config.cpp | 2 +- src/part/fileTree.cpp | 2 +- src/part/progressBox.cpp | 2 +- src/part/radialMap/map.cpp | 2 +- src/part/radialMap/segmentTip.cpp | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/part') diff --git a/src/part/Config.cpp b/src/part/Config.cpp index f940480..2da592d 100644 --- a/src/part/Config.cpp +++ b/src/part/Config.cpp @@ -20,7 +20,7 @@ TQStringList Config::skipList; inline KConfig& Filelight::Config::kconfig() { - KConfig *config = KGlobal::config(); + KConfig *config = TDEGlobal::config(); config->setGroup( "filelight_part" ); return *config; } diff --git a/src/part/fileTree.cpp b/src/part/fileTree.cpp index cab0a04..95f3c68 100644 --- a/src/part/fileTree.cpp +++ b/src/part/fileTree.cpp @@ -40,7 +40,7 @@ File::humanReadableSize( uint size, UnitPrefix key /*= mega*/ ) //static TQString s; double prettySize = (double)size / (double)DENOMINATOR[key]; - const KLocale &locale = *KGlobal::locale(); + const KLocale &locale = *TDEGlobal::locale(); if( prettySize >= 0.01 ) { diff --git a/src/part/progressBox.cpp b/src/part/progressBox.cpp index 6f1d5b1..0cc99f3 100644 --- a/src/part/progressBox.cpp +++ b/src/part/progressBox.cpp @@ -16,7 +16,7 @@ ProgressBox::ProgressBox( TQWidget *parent, TQObject *part ) hide(); setAlignment( TQt::AlignCenter ); - setFont( KGlobalSettings::fixedFont() ); + setFont( TDEGlobalSettings::fixedFont() ); setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ); setText( 999999 ); diff --git a/src/part/radialMap/map.cpp b/src/part/radialMap/map.cpp index 725b3f8..34a1c6c 100644 --- a/src/part/radialMap/map.cpp +++ b/src/part/radialMap/map.cpp @@ -178,7 +178,7 @@ RadialMap::Map::colorise() double contrast = (double)Config::contrast / (double)100; int h, s1, s2, v1, v2; - TQColor kdeColour[2] = { KGlobalSettings::inactiveTitleColor(), KGlobalSettings::activeTitleColor() }; + TQColor kdeColour[2] = { TDEGlobalSettings::inactiveTitleColor(), TDEGlobalSettings::activeTitleColor() }; double deltaRed = (double)(kdeColour[0].red() - kdeColour[1].red()) / 2880; //2880 for semicircle double deltaGreen = (double)(kdeColour[0].green() - kdeColour[1].green()) / 2880; diff --git a/src/part/radialMap/segmentTip.cpp b/src/part/radialMap/segmentTip.cpp index 3fb5d34..4f3d042 100644 --- a/src/part/radialMap/segmentTip.cpp +++ b/src/part/radialMap/segmentTip.cpp @@ -51,7 +51,7 @@ SegmentTip::moveTo( TQPoint p, const TQWidget &canvas, bool placeAbove ) p.rx() -= rect().center().x(); p.ry() -= (placeAbove ? 8 + height() : m_cursorHeight - 8); - const TQRect screen = KGlobalSettings::desktopGeometry( parentWidget() ); + const TQRect screen = TDEGlobalSettings::desktopGeometry( parentWidget() ); const int x = p.x(); const int y = p.y(); @@ -107,7 +107,7 @@ SegmentTip::updateTip( const File* const file, const Directory* const root ) { const TQString s1 = file->fullPath( root ); TQString s2 = file->humanReadableSize(); - KLocale *loc = KGlobal::locale(); + KLocale *loc = TDEGlobal::locale(); const uint MARGIN = 3; const uint pc = 100 * file->size() / root->size(); uint maxw = 0; -- cgit v1.2.1