diff options
Diffstat (limited to 'kcontrol/kthememanager')
-rw-r--r-- | kcontrol/kthememanager/knewthemedlg.cpp | 3 | ||||
-rw-r--r-- | kcontrol/kthememanager/knewthemedlg.h | 3 | ||||
-rw-r--r-- | kcontrol/kthememanager/ktheme.cpp | 11 | ||||
-rw-r--r-- | kcontrol/kthememanager/ktheme.h | 1 | ||||
-rw-r--r-- | kcontrol/kthememanager/kthemedlg.ui | 4 | ||||
-rw-r--r-- | kcontrol/kthememanager/kthememanager.cpp | 35 | ||||
-rw-r--r-- | kcontrol/kthememanager/kthememanager.h | 3 |
7 files changed, 27 insertions, 33 deletions
diff --git a/kcontrol/kthememanager/knewthemedlg.cpp b/kcontrol/kthememanager/knewthemedlg.cpp index ee18c31c7..220408ab9 100644 --- a/kcontrol/kthememanager/knewthemedlg.cpp +++ b/kcontrol/kthememanager/knewthemedlg.cpp @@ -1,4 +1,3 @@ -// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- /* Copyright (C) 2003 Lukas Tinkl <lukas@kde.org> This program is free software; you can redistribute it and/or modify @@ -29,7 +28,7 @@ KNewThemeDlg::KNewThemeDlg( TQWidget * parent, const char * name ) { m_base = new NewThemeWidget( this, "new_theme_base" ); setMainWidget( m_base ); - connect( m_base->leName, TQT_SIGNAL( textChanged ( const TQString & ) ), this, TQT_SLOT( slotThemeNameChanged( const TQString & ) ) ); + connect( m_base->leName, TQ_SIGNAL( textChanged ( const TQString & ) ), this, TQ_SLOT( slotThemeNameChanged( const TQString & ) ) ); slotThemeNameChanged( m_base->leName->text() ); } diff --git a/kcontrol/kthememanager/knewthemedlg.h b/kcontrol/kthememanager/knewthemedlg.h index 5a0df045a..39b7d554c 100644 --- a/kcontrol/kthememanager/knewthemedlg.h +++ b/kcontrol/kthememanager/knewthemedlg.h @@ -1,4 +1,3 @@ -// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- /* Copyright (C) 2003 Lukas Tinkl <lukas@kde.org> This program is free software; you can redistribute it and/or modify @@ -32,7 +31,7 @@ class NewThemeWidget; */ class KNewThemeDlg: public KDialogBase { - Q_OBJECT + TQ_OBJECT public: KNewThemeDlg( TQWidget * parent = 0, const char * name = 0); ~KNewThemeDlg(); diff --git a/kcontrol/kthememanager/ktheme.cpp b/kcontrol/kthememanager/ktheme.cpp index fc2d6e1c9..4827f1c40 100644 --- a/kcontrol/kthememanager/ktheme.cpp +++ b/kcontrol/kthememanager/ktheme.cpp @@ -1,4 +1,3 @@ -// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- /* Copyright (C) 2003 Lukas Tinkl <lukas@kde.org> This program is free software; you can redistribute it and/or modify @@ -38,8 +37,8 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA #include <kipc.h> #include <tdelocale.h> #include <kservice.h> -#include <ksimpleconfig.h> -#include <kstandarddirs.h> +#include <tdesimpleconfig.h> +#include <tdestandarddirs.h> #include <ktar.h> #include <tdestyle.h> @@ -437,7 +436,7 @@ void KTheme::apply() desktopConf.sync(); // TODO sync and signal only if <desktop> elem present // reconfigure kdesktop. kdesktop will notify all clients - DCOPClient *client = kapp->dcopClient(); + DCOPClient *client = tdeApp->dcopClient(); if ( !client->isAttached() ) { client->attach(); } @@ -536,7 +535,7 @@ void KTheme::apply() TDEConfig * colorConf = TDEGlobal::config(); TQString sCurrentScheme = locateLocal("data", "tdedisplay/color-schemes/thememgr.kcsrc"); - KSimpleConfig *colorScheme = new KSimpleConfig( sCurrentScheme ); + TDESimpleConfig *colorScheme = new TDESimpleConfig( sCurrentScheme ); colorScheme->setGroup("Color Scheme" ); for ( uint i = 0; i < colorList.count(); i++ ) @@ -658,7 +657,7 @@ void KTheme::apply() if ( !fontsElem.isNull() ) { TDEConfig * fontsConf = TDEGlobal::config(); - TDEConfig * kde1xConf = new KSimpleConfig( TQDir::homeDirPath() + "/.tderc" ); + TDEConfig * kde1xConf = new TDESimpleConfig( TQDir::homeDirPath() + "/.tderc" ); kde1xConf->setGroup( "General" ); TQDomNodeList fontList = fontsElem.childNodes(); diff --git a/kcontrol/kthememanager/ktheme.h b/kcontrol/kthememanager/ktheme.h index 11fa6b056..1c2264f7d 100644 --- a/kcontrol/kthememanager/ktheme.h +++ b/kcontrol/kthememanager/ktheme.h @@ -1,4 +1,3 @@ -// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- /* Copyright (C) 2003 Lukas Tinkl <lukas@kde.org> This program is free software; you can redistribute it and/or modify diff --git a/kcontrol/kthememanager/kthemedlg.ui b/kcontrol/kthememanager/kthemedlg.ui index 717f68e32..8f7fade9d 100644 --- a/kcontrol/kthememanager/kthemedlg.ui +++ b/kcontrol/kthememanager/kthemedlg.ui @@ -503,7 +503,7 @@ <include location="local" impldecl="in implementation">kthemedlg.ui.h</include> <include location="global" impldecl="in implementation">kurllabel.h</include> </includes> -<Q_SLOTS> +<slots> <slot specifier="non virtual">startKonqui( const TQString & url )</slot> <slot specifier="non virtual">startBackground()</slot> <slot specifier="non virtual">startColors()</slot> @@ -511,6 +511,6 @@ <slot specifier="non virtual">startIcons()</slot> <slot specifier="non virtual">startFonts()</slot> <slot specifier="non virtual">startSaver()</slot> -</Q_SLOTS> +</slots> <layoutdefaults spacing="6" margin="11"/> </UI> diff --git a/kcontrol/kthememanager/kthememanager.cpp b/kcontrol/kthememanager/kthememanager.cpp index 6afd487ed..46dcbd59e 100644 --- a/kcontrol/kthememanager/kthememanager.cpp +++ b/kcontrol/kthememanager/kthememanager.cpp @@ -1,4 +1,3 @@ -// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- /* Copyright (C) 2003 Lukas Tinkl <lukas@kde.org> This program is free software; you can redistribute it and/or modify @@ -35,7 +34,7 @@ #include <tdelocale.h> #include <tdemessagebox.h> #include <kservicegroup.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <kurldrag.h> #include "kthememanager.h" @@ -67,26 +66,26 @@ kthememanager::kthememanager( TQWidget *parent, const char *name ) dlg->lvThemes->setColumnWidthMode( 0, TQListView::Maximum ); - connect( ( TQObject * )dlg->btnInstall, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( slotInstallTheme() ) ); + connect( ( TQObject * )dlg->btnInstall, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( slotInstallTheme() ) ); - connect( ( TQObject * )dlg->btnRemove, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( slotRemoveTheme() ) ); + connect( ( TQObject * )dlg->btnRemove, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( slotRemoveTheme() ) ); - connect( ( TQObject * )dlg->btnCreate, TQT_SIGNAL( clicked() ), - this, TQT_SLOT( slotCreateTheme() ) ); + connect( ( TQObject * )dlg->btnCreate, TQ_SIGNAL( clicked() ), + this, TQ_SLOT( slotCreateTheme() ) ); - connect( ( TQObject * )dlg->lvThemes, TQT_SIGNAL( clicked( TQListViewItem * ) ), - this, TQT_SLOT( slotThemeChanged( TQListViewItem * ) ) ); + connect( ( TQObject * )dlg->lvThemes, TQ_SIGNAL( clicked( TQListViewItem * ) ), + this, TQ_SLOT( slotThemeChanged( TQListViewItem * ) ) ); - connect( ( TQObject * )dlg->lvThemes, TQT_SIGNAL( currentChanged( TQListViewItem * ) ), - this, TQT_SLOT( slotThemeChanged( TQListViewItem * ) ) ); + connect( ( TQObject * )dlg->lvThemes, TQ_SIGNAL( currentChanged( TQListViewItem * ) ), + this, TQ_SLOT( slotThemeChanged( TQListViewItem * ) ) ); - connect( this, TQT_SIGNAL( filesDropped( const KURL::List& ) ), - this, TQT_SLOT( updateButton() ) ); + connect( this, TQ_SIGNAL( filesDropped( const KURL::List& ) ), + this, TQ_SLOT( updateButton() ) ); - connect( ( TQObject * )dlg->lvThemes, TQT_SIGNAL( clicked( TQListViewItem * ) ), - this, TQT_SLOT( updateButton() ) ); + connect( ( TQObject * )dlg->lvThemes, TQ_SIGNAL( clicked( TQListViewItem * ) ), + this, TQ_SLOT( updateButton() ) ); m_origTheme = new KTheme( this, true ); // stores the defaults to get back to m_origTheme->setName( ORIGINAL_THEME ); @@ -406,7 +405,7 @@ void kthememanager::updatePreview( const TQString & pixFile ) TQImage preview( pixFile, "PNG" ); if (preview.width()>dlg->lbPreview->contentsRect().width() || preview.height()>dlg->lbPreview->contentsRect().height() ) - preview = preview.smoothScale( dlg->lbPreview->contentsRect().size(), TQ_ScaleMin ); + preview = preview.smoothScale( dlg->lbPreview->contentsRect().size(), TQImage::ScaleMin ); TQPixmap pix; pix.convertFromImage( preview ); dlg->lbPreview->setPixmap( pix ); @@ -414,7 +413,7 @@ void kthememanager::updatePreview( const TQString & pixFile ) extern "C" { - KDE_EXPORT TDECModule *create_kthememanager(TQWidget *parent, const char *) + TDE_EXPORT TDECModule *create_kthememanager(TQWidget *parent, const char *) { TDEGlobal::locale()->insertCatalogue( "kthememanager" ); return new kthememanager( parent, "kthememanager" ); diff --git a/kcontrol/kthememanager/kthememanager.h b/kcontrol/kthememanager/kthememanager.h index 2c5e494f4..2415bd02e 100644 --- a/kcontrol/kthememanager/kthememanager.h +++ b/kcontrol/kthememanager/kthememanager.h @@ -1,4 +1,3 @@ -// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- /* Copyright (C) 2003 Lukas Tinkl <lukas@kde.org> This program is free software; you can redistribute it and/or modify @@ -61,7 +60,7 @@ private: */ class kthememanager: public TDECModule { - Q_OBJECT + TQ_OBJECT public: kthememanager( TQWidget *parent=0, const char *name=0 ); virtual ~kthememanager(); |