|
|
@ -111,8 +111,8 @@ TDMThemeWidget::TDMThemeWidget( TQWidget *parent, const char *name, const TQStri
|
|
|
|
connect( bRemoveTheme, TQT_SIGNAL(clicked()), TQT_SLOT(removeSelectedThemes()) );
|
|
|
|
connect( bRemoveTheme, TQT_SIGNAL(clicked()), TQT_SLOT(removeSelectedThemes()) );
|
|
|
|
connect( cUseTheme, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleUseTheme( bool ) ) );
|
|
|
|
connect( cUseTheme, TQT_SIGNAL( toggled( bool ) ), TQT_SLOT( toggleUseTheme( bool ) ) );
|
|
|
|
|
|
|
|
|
|
|
|
TQStringList themeDirs = KGlobal::dirs()->findDirs("data","tdm/");
|
|
|
|
TQStringList themeDirs = TDEGlobal::dirs()->findDirs("data","tdm/");
|
|
|
|
themeDir = KGlobal::dirs()->findDirs("data","tdm/").last();
|
|
|
|
themeDir = TDEGlobal::dirs()->findDirs("data","tdm/").last();
|
|
|
|
TQDir d;
|
|
|
|
TQDir d;
|
|
|
|
for ( TQStringList::Iterator dirs = themeDirs.begin(); dirs != themeDirs.end(); ++dirs ) {
|
|
|
|
for ( TQStringList::Iterator dirs = themeDirs.begin(); dirs != themeDirs.end(); ++dirs ) {
|
|
|
|
kdDebug() << "Loading themes... ( " + *dirs + "themes/" + " )" << endl;
|
|
|
|
kdDebug() << "Loading themes... ( " + *dirs + "themes/" + " )" << endl;
|
|
|
@ -147,7 +147,7 @@ void TDMThemeWidget::selectTheme( const TQString &path )
|
|
|
|
|
|
|
|
|
|
|
|
void TDMThemeWidget::load()
|
|
|
|
void TDMThemeWidget::load()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQString tdmrc = KGlobal::dirs()->findResource("config", "tdm/tdmrc");
|
|
|
|
TQString tdmrc = TDEGlobal::dirs()->findResource("config", "tdm/tdmrc");
|
|
|
|
if ( tdmrc.isEmpty() ) {
|
|
|
|
if ( tdmrc.isEmpty() ) {
|
|
|
|
kdError() << "Failed to find tdm resource file tdmrc!" << endl;
|
|
|
|
kdError() << "Failed to find tdm resource file tdmrc!" << endl;
|
|
|
|
|
|
|
|
|
|
|
|