From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kcontrol/performance/kcmperformance.cpp | 24 +++++++++---------- kcontrol/performance/kcmperformance.h | 4 ++-- kcontrol/performance/konqueror.cpp | 42 ++++++++++++++++----------------- kcontrol/performance/konqueror.h | 4 ++-- kcontrol/performance/system.cpp | 16 ++++++------- kcontrol/performance/system.h | 2 +- 6 files changed, 46 insertions(+), 46 deletions(-) (limited to 'kcontrol/performance') diff --git a/kcontrol/performance/kcmperformance.cpp b/kcontrol/performance/kcmperformance.cpp index be4b57387..b85dca5d8 100644 --- a/kcontrol/performance/kcmperformance.cpp +++ b/kcontrol/performance/kcmperformance.cpp @@ -16,8 +16,8 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include -#include +#include +#include #include #include @@ -28,12 +28,12 @@ extern "C" { - KDE_EXPORT KCModule* create_performance( QWidget* parent_P, const char* name_P ) + KDE_EXPORT KCModule* create_performance( TQWidget* parent_P, const char* name_P ) { return new KCMPerformance::Config( parent_P, name_P ); } - KDE_EXPORT KCModule* create_konqueror( QWidget* parent_P, const char* name_P ) + KDE_EXPORT KCModule* create_konqueror( TQWidget* parent_P, const char* name_P ) { return new KCMPerformance::KonquerorConfig( parent_P, name_P ); } @@ -42,21 +42,21 @@ extern "C" namespace KCMPerformance { -Config::Config( QWidget* parent_P, const char* ) +Config::Config( TQWidget* parent_P, const char* ) : KCModule( parent_P, "kcmperformance" ) { setQuickHelp( i18n( "

KDE Performance

" " You can configure settings that improve KDE performance here." )); - QVBoxLayout *topLayout = new QVBoxLayout( this ); - QTabWidget* tabs = new QTabWidget( this ); + TQVBoxLayout *topLayout = new TQVBoxLayout( this ); + TQTabWidget* tabs = new TQTabWidget( this ); konqueror_widget = new Konqueror( tabs ); konqueror_widget->layout()->setMargin( KDialog::marginHint() ); - connect( konqueror_widget, SIGNAL( changed()), SLOT( changed())); + connect( konqueror_widget, TQT_SIGNAL( changed()), TQT_SLOT( changed())); tabs->addTab( konqueror_widget, i18n( "Konqueror" )); system_widget = new SystemWidget( tabs ); system_widget->layout()->setMargin( KDialog::marginHint() ); - connect( system_widget, SIGNAL( changed()), SLOT( changed())); + connect( system_widget, TQT_SIGNAL( changed()), TQT_SLOT( changed())); tabs->addTab( system_widget, i18n( "System" )); topLayout->add( tabs ); load(); @@ -85,7 +85,7 @@ void Config::defaults() load( true ); } -KonquerorConfig::KonquerorConfig( QWidget* parent_P, const char* ) +KonquerorConfig::KonquerorConfig( TQWidget* parent_P, const char* ) : KCModule( parent_P, "kcmperformance" ) { setQuickHelp( i18n( "

Konqueror Performance

" @@ -93,9 +93,9 @@ KonquerorConfig::KonquerorConfig( QWidget* parent_P, const char* ) " These include options for reusing already running instances" " and for keeping instances preloaded." )); - QVBoxLayout *topLayout = new QVBoxLayout( this ); + TQVBoxLayout *topLayout = new TQVBoxLayout( this ); widget = new Konqueror( this ); - connect( widget, SIGNAL( changed()), SLOT( changed())); + connect( widget, TQT_SIGNAL( changed()), TQT_SLOT( changed())); topLayout->add( widget ); load(); } diff --git a/kcontrol/performance/kcmperformance.h b/kcontrol/performance/kcmperformance.h index 13c3f9465..bb924b880 100644 --- a/kcontrol/performance/kcmperformance.h +++ b/kcontrol/performance/kcmperformance.h @@ -32,7 +32,7 @@ class Config { Q_OBJECT public: - Config( QWidget* parent_P, const char* name_P ); + Config( TQWidget* parent_P, const char* name_P ); virtual void load(); virtual void load( bool useDefaults ); virtual void save(); @@ -47,7 +47,7 @@ class KonquerorConfig { Q_OBJECT public: - KonquerorConfig( QWidget* parent_P, const char* name_P ); + KonquerorConfig( TQWidget* parent_P, const char* name_P ); virtual void load(); virtual void load( bool useDefaults ); virtual void save(); diff --git a/kcontrol/performance/konqueror.cpp b/kcontrol/performance/konqueror.cpp index 02dde4cce..909f989bd 100644 --- a/kcontrol/performance/konqueror.cpp +++ b/kcontrol/performance/konqueror.cpp @@ -20,23 +20,23 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include namespace KCMPerformance { -Konqueror::Konqueror( QWidget* parent_P ) +Konqueror::Konqueror( TQWidget* parent_P ) : Konqueror_ui( parent_P ) { - QWhatsThis::add( rb_never_reuse, + TQWhatsThis::add( rb_never_reuse, i18n( "Disables the minimization of memory usage and allows you " "to make each browsing activity independent from the others" )); - QWhatsThis::add( rb_file_browsing_reuse, + TQWhatsThis::add( rb_file_browsing_reuse, i18n( "With this option activated, only one instance of Konqueror " "used for file browsing will exist in the memory of your computer " "at any moment, " @@ -44,43 +44,43 @@ Konqueror::Konqueror( QWidget* parent_P ) "thus reducing resource requirements." "

Be aware that this also means that, if something goes wrong, " "all your file browsing windows will be closed simultaneously" )); - QWhatsThis::add( rb_always_reuse, + TQWhatsThis::add( rb_always_reuse, i18n( "With this option activated, only one instance of Konqueror " "will exist in the memory of your computer at any moment, " "no matter how many browsing windows you open, " "thus reducing resource requirements." "

Be aware that this also means that, if something goes wrong, " "all your browsing windows will be closed simultaneously." )); - connect( rb_never_reuse, SIGNAL( clicked()), SIGNAL( changed())); - connect( rb_file_browsing_reuse, SIGNAL( clicked()), SIGNAL( changed())); - connect( rb_always_reuse, SIGNAL( clicked()), SIGNAL( changed())); + connect( rb_never_reuse, TQT_SIGNAL( clicked()), TQT_SIGNAL( changed())); + connect( rb_file_browsing_reuse, TQT_SIGNAL( clicked()), TQT_SIGNAL( changed())); + connect( rb_always_reuse, TQT_SIGNAL( clicked()), TQT_SIGNAL( changed())); rb_file_browsing_reuse->setChecked( true ); - QString tmp = + TQString tmp = i18n( "If non-zero, this option allows keeping Konqueror instances " "in memory after all their windows have been closed, up to the " "number specified in this option." "

When a new Konqueror instance is needed, one of these preloaded " "instances will be reused instead, improving responsiveness at " "the expense of the memory required by the preloaded instances." ); - QWhatsThis::add( sb_preload_count, tmp ); - QWhatsThis::add( lb_preload_count, tmp ); - QWhatsThis::add( cb_preload_on_startup, + TQWhatsThis::add( sb_preload_count, tmp ); + TQWhatsThis::add( lb_preload_count, tmp ); + TQWhatsThis::add( cb_preload_on_startup, i18n( "If enabled, an instance of Konqueror will be preloaded after the ordinary KDE " "startup sequence." "

This will make the first Konqueror window open faster, but " "at the expense of longer KDE startup times (but you will be able to work " "while it is loading, so you may not even notice that it is taking longer)." )); - QWhatsThis::add( cb_always_have_preloaded, + TQWhatsThis::add( cb_always_have_preloaded, i18n( "If enabled, KDE will always try to have one preloaded Konqueror instance ready; " "preloading a new instance in the background whenever there is not one available, " "so that windows will always open quickly." "

Warning: In some cases, it is actually possible that this will " "reduce perceived performance." )); - connect( sb_preload_count, SIGNAL( valueChanged( int )), SLOT( preload_count_changed( int ))); - connect( sb_preload_count, SIGNAL( valueChanged( int )), SIGNAL( changed())); - connect( cb_preload_on_startup, SIGNAL( clicked()), SIGNAL( changed())); - connect( cb_always_have_preloaded, SIGNAL( clicked()), SIGNAL( changed())); + connect( sb_preload_count, TQT_SIGNAL( valueChanged( int )), TQT_SLOT( preload_count_changed( int ))); + connect( sb_preload_count, TQT_SIGNAL( valueChanged( int )), TQT_SIGNAL( changed())); + connect( cb_preload_on_startup, TQT_SIGNAL( clicked()), TQT_SIGNAL( changed())); + connect( cb_always_have_preloaded, TQT_SIGNAL( clicked()), TQT_SIGNAL( changed())); defaults(); } diff --git a/kcontrol/performance/konqueror.h b/kcontrol/performance/konqueror.h index bc17d2e4e..e948f6b7a 100644 --- a/kcontrol/performance/konqueror.h +++ b/kcontrol/performance/konqueror.h @@ -29,7 +29,7 @@ class Konqueror { Q_OBJECT public: - Konqueror( QWidget* parent_P = NULL ); + Konqueror( TQWidget* parent_P = NULL ); void load(bool useDefaults); void save(); void defaults(); @@ -38,7 +38,7 @@ class Konqueror private slots: void preload_count_changed( int ); private: - QString allowed_parts; + TQString allowed_parts; }; } // namespace diff --git a/kcontrol/performance/system.cpp b/kcontrol/performance/system.cpp index 97b5c5709..4a9ee001a 100644 --- a/kcontrol/performance/system.cpp +++ b/kcontrol/performance/system.cpp @@ -19,18 +19,18 @@ #include "system.h" #include -#include -#include -#include +#include +#include +#include #include namespace KCMPerformance { -SystemWidget::SystemWidget( QWidget* parent_P ) +SystemWidget::SystemWidget( TQWidget* parent_P ) : System_ui( parent_P ) { - QString tmp = + TQString tmp = i18n( "

During startup KDE needs to perform a check of its system configuration" " (mimetypes, installed applications, etc.), and in case the configuration" " has changed since the last time, the system configuration cache (KSyCoCa)" @@ -49,9 +49,9 @@ SystemWidget::SystemWidget( QWidget* parent_P ) " handler will refuse to provide backtrace for the bugreport with this option" " turned on (you will need to reproduce it again with this option turned off," " or turn on the developer mode for the crash handler).

" ); - QWhatsThis::add( cb_disable_kbuildsycoca, tmp ); - QWhatsThis::add( label_kbuildsycoca, tmp ); - connect( cb_disable_kbuildsycoca, SIGNAL( clicked()), SIGNAL( changed())); + TQWhatsThis::add( cb_disable_kbuildsycoca, tmp ); + TQWhatsThis::add( label_kbuildsycoca, tmp ); + connect( cb_disable_kbuildsycoca, TQT_SIGNAL( clicked()), TQT_SIGNAL( changed())); defaults(); } diff --git a/kcontrol/performance/system.h b/kcontrol/performance/system.h index d788b2073..1358c8e79 100644 --- a/kcontrol/performance/system.h +++ b/kcontrol/performance/system.h @@ -31,7 +31,7 @@ class SystemWidget { Q_OBJECT public: - SystemWidget( QWidget* parent_P = NULL ); + SystemWidget( TQWidget* parent_P = NULL ); void load( bool useDefaults ); void save(); void defaults(); -- cgit v1.2.3