Rename KStandard for enhanced compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 3fde37bc74
commit 86885f5c75

@ -638,7 +638,7 @@ void Config::writeAmarokScript()
} }
} }
KStandardDirs* stdDirs = new KStandardDirs(); TDEStandardDirs* stdDirs = new TDEStandardDirs();
if( !TQFile::exists(locateLocal("data","amarok/scripts/soundKonverter/soundKonverter.rb")) ) { if( !TQFile::exists(locateLocal("data","amarok/scripts/soundKonverter/soundKonverter.rb")) ) {
TDEIO::NetAccess::file_copy( stdDirs->findResource("data","soundkonverter/amarokscript/soundKonverter.rb"), locateLocal("data","amarok/scripts/soundKonverter/soundKonverter.rb"), 0755, true ); TDEIO::NetAccess::file_copy( stdDirs->findResource("data","soundkonverter/amarokscript/soundKonverter.rb"), locateLocal("data","amarok/scripts/soundKonverter/soundKonverter.rb"), 0755, true );
} }
@ -672,7 +672,7 @@ void Config::loadPlugins()
ReplayGainPluginLoader* replaygainPluginLoader = new ReplayGainPluginLoader(); ReplayGainPluginLoader* replaygainPluginLoader = new ReplayGainPluginLoader();
RipperPluginLoader* ripperPluginLoader = new RipperPluginLoader(); RipperPluginLoader* ripperPluginLoader = new RipperPluginLoader();
KStandardDirs stddir; TDEStandardDirs stddir;
TQStringList directories = stddir.findDirs( "data", "soundkonverter/plugins/" ); TQStringList directories = stddir.findDirs( "data", "soundkonverter/plugins/" );
for( TQStringList::Iterator a = directories.begin(); a != directories.end(); ++a ) for( TQStringList::Iterator a = directories.begin(); a != directories.end(); ++a )
{ {

@ -38,7 +38,7 @@ ConfigBackendsPage::ConfigBackendsPage( Config* _config, TQMap<TQString, TQStrin
TQHBox* legendBox = new TQHBox( box ); TQHBox* legendBox = new TQHBox( box );
legendBox->setMargin( 0 ); legendBox->setMargin( 0 );
legendBox->setSpacing( 6 ); legendBox->setSpacing( 6 );
KStandardDirs* stdDirs = new KStandardDirs(); TDEStandardDirs* stdDirs = new TDEStandardDirs();
TQLabel* lLegendLabel = new TQLabel( i18n("Legend")+":", legendBox, "lLegendLabel" ); TQLabel* lLegendLabel = new TQLabel( i18n("Legend")+":", legendBox, "lLegendLabel" );
TQLabel* lLegendGreen = new TQLabel( "", legendBox, "lLegendGreen" ); TQLabel* lLegendGreen = new TQLabel( "", legendBox, "lLegendGreen" );
lLegendGreen->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen_legend.png")) ); lLegendGreen->setPixmap( TQPixmap(stdDirs->findResource("data","soundkonverter/pics/ledgreen_legend.png")) );
@ -329,7 +329,7 @@ void ConfigBackendsPage::rebuild()
void ConfigBackendsPage::refill() void ConfigBackendsPage::refill()
{ {
KStandardDirs* stdDirs = new KStandardDirs(); TDEStandardDirs* stdDirs = new TDEStandardDirs();
int i, item; int i, item;
cRipper->clear(); cRipper->clear();

@ -88,7 +88,7 @@ int soundKonverterApp::newInstance()
widget->autoclose = true; widget->autoclose = true;
widget->hide(); widget->hide();
widget->systemTray->show(); widget->systemTray->show();
KStandardDirs* stdDirs = new KStandardDirs(); TDEStandardDirs* stdDirs = new TDEStandardDirs();
widget->systemTray->setMovie( TQMovie(stdDirs->findResource("data","soundkonverter/pics/systray.mng")) ); widget->systemTray->setMovie( TQMovie(stdDirs->findResource("data","soundkonverter/pics/systray.mng")) );
delete stdDirs; delete stdDirs;
} }

Loading…
Cancel
Save