Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent aeecbb9b93
commit 40a94e488f

@ -65,7 +65,7 @@ MainWindow::MainWindow()
connect( m_part, TQT_SIGNAL(canceled( const TQString& )), m_histories, TQT_SLOT(stop()) ); connect( m_part, TQT_SIGNAL(canceled( const TQString& )), m_histories, TQT_SLOT(stop()) );
connect( BrowserExtension::childObject( m_part ), TQT_SIGNAL(openURLNotify()), TQT_SLOT(urlAboutToChange()) ); connect( BrowserExtension::childObject( m_part ), TQT_SIGNAL(openURLNotify()), TQT_SLOT(urlAboutToChange()) );
KConfig* const config = KGlobal::config(); KConfig* const config = TDEGlobal::config();
config->setGroup( "general" ); config->setGroup( "general" );
m_combo->setHistoryItems( config->readPathListEntry( "comboHistory" ) ); m_combo->setHistoryItems( config->readPathListEntry( "comboHistory" ) );
applyMainWindowSettings( config, "window" ); applyMainWindowSettings( config, "window" );
@ -100,7 +100,7 @@ MainWindow::setupActions() //singleton function
m_histories = new HistoryCollection( ac, TQT_TQOBJECT(this), "history_collection" ); m_histories = new HistoryCollection( ac, TQT_TQOBJECT(this), "history_collection" );
ac->action( "scan_directory" )->setText( i18n( "&Scan Directory..." ) ); ac->action( "scan_directory" )->setText( i18n( "&Scan Directory..." ) );
m_recentScans->loadEntries( KGlobal::config() ); m_recentScans->loadEntries( TDEGlobal::config() );
combo->setAutoSized( true ); //FIXME what does this do? combo->setAutoSized( true ); //FIXME what does this do?
connect( m_recentScans, TQT_SIGNAL(urlSelected( const KURL& )), TQT_SLOT(slotScanUrl( const KURL& )) ); connect( m_recentScans, TQT_SIGNAL(urlSelected( const KURL& )), TQT_SLOT(slotScanUrl( const KURL& )) );
@ -114,7 +114,7 @@ MainWindow::queryExit()
if( !m_part ) //apparently std::exit() still calls this function, and abort() causes a crash.. if( !m_part ) //apparently std::exit() still calls this function, and abort() causes a crash..
return true; return true;
KConfig* const config = KGlobal::config(); KConfig* const config = TDEGlobal::config();
saveMainWindowSettings( config, "window" ); saveMainWindowSettings( config, "window" );
m_recentScans->saveEntries( config ); m_recentScans->saveEntries( config );

@ -20,7 +20,7 @@ TQStringList Config::skipList;
inline KConfig& inline KConfig&
Filelight::Config::kconfig() Filelight::Config::kconfig()
{ {
KConfig *config = KGlobal::config(); KConfig *config = TDEGlobal::config();
config->setGroup( "filelight_part" ); config->setGroup( "filelight_part" );
return *config; return *config;
} }

@ -40,7 +40,7 @@ File::humanReadableSize( uint size, UnitPrefix key /*= mega*/ ) //static
TQString s; TQString s;
double prettySize = (double)size / (double)DENOMINATOR[key]; double prettySize = (double)size / (double)DENOMINATOR[key];
const KLocale &locale = *KGlobal::locale(); const KLocale &locale = *TDEGlobal::locale();
if( prettySize >= 0.01 ) if( prettySize >= 0.01 )
{ {

@ -16,7 +16,7 @@ ProgressBox::ProgressBox( TQWidget *parent, TQObject *part )
hide(); hide();
setAlignment( TQt::AlignCenter ); setAlignment( TQt::AlignCenter );
setFont( KGlobalSettings::fixedFont() ); setFont( TDEGlobalSettings::fixedFont() );
setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed ); setSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Fixed );
setText( 999999 ); setText( 999999 );

@ -178,7 +178,7 @@ RadialMap::Map::colorise()
double contrast = (double)Config::contrast / (double)100; double contrast = (double)Config::contrast / (double)100;
int h, s1, s2, v1, v2; 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 deltaRed = (double)(kdeColour[0].red() - kdeColour[1].red()) / 2880; //2880 for semicircle
double deltaGreen = (double)(kdeColour[0].green() - kdeColour[1].green()) / 2880; double deltaGreen = (double)(kdeColour[0].green() - kdeColour[1].green()) / 2880;

@ -51,7 +51,7 @@ SegmentTip::moveTo( TQPoint p, const TQWidget &canvas, bool placeAbove )
p.rx() -= rect().center().x(); p.rx() -= rect().center().x();
p.ry() -= (placeAbove ? 8 + height() : m_cursorHeight - 8); 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 x = p.x();
const int y = p.y(); 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 ); const TQString s1 = file->fullPath( root );
TQString s2 = file->humanReadableSize(); TQString s2 = file->humanReadableSize();
KLocale *loc = KGlobal::locale(); KLocale *loc = TDEGlobal::locale();
const uint MARGIN = 3; const uint MARGIN = 3;
const uint pc = 100 * file->size() / root->size(); const uint pc = 100 * file->size() / root->size();
uint maxw = 0; uint maxw = 0;

Loading…
Cancel
Save