From 7346aee26bf190a7e70333c40fab4caca847cd27 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:22:56 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konq-plugins/kuick/kcmkuick/kcmkuick.cpp | 42 ++++++++++++++++---------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'konq-plugins/kuick/kcmkuick/kcmkuick.cpp') diff --git a/konq-plugins/kuick/kcmkuick/kcmkuick.cpp b/konq-plugins/kuick/kcmkuick/kcmkuick.cpp index fdbf5c0..27459ee 100644 --- a/konq-plugins/kuick/kcmkuick/kcmkuick.cpp +++ b/konq-plugins/kuick/kcmkuick/kcmkuick.cpp @@ -14,8 +14,8 @@ #include "kcmkuick.h" -#include -#include +#include +#include #include #include #include @@ -24,16 +24,16 @@ #include #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include -typedef KGenericFactory KuickFactory; +typedef KGenericFactory KuickFactory; K_EXPORT_COMPONENT_FACTORY ( kcm_kuick, KuickFactory( "kcmkuick" ) ) -KCMKuick::KCMKuick(QWidget *parent, const char *name, const QStringList &) +KCMKuick::KCMKuick(TQWidget *parent, const char *name, const TQStringList &) :KCModule(parent, name) { KAboutData *ab=new KAboutData( "kcmkuick", I18N_NOOP("KCM Kuick"), @@ -42,16 +42,16 @@ KCMKuick::KCMKuick(QWidget *parent, const char *name, const QStringList &) ab->addAuthor("Holger Freyther",0, "freyther@kde.org"); setAboutData( ab ); - QVBoxLayout *topLayout = new QVBoxLayout(this, 0, 0); + TQVBoxLayout *topLayout = new TQVBoxLayout(this, 0, 0); dialog = new KCMKuickDialog(this); topLayout->add(dialog); topLayout->addStretch(); - connect( dialog->m_sbCopy, SIGNAL(valueChanged(int) ), SLOT(configChanged() ) ); - connect( dialog->m_sbMove, SIGNAL(valueChanged(int) ), SLOT(configChanged() ) ); - connect( dialog->pbCopyClear, SIGNAL(pressed() ), SLOT(slotClearCopyCache() ) ); - connect( dialog->pbMoveClear, SIGNAL(pressed() ), SLOT(slotClearMoveCache() ) ); - connect( dialog->m_chkShow, SIGNAL(clicked() ), SLOT(slotShowToggled() ) ); + connect( dialog->m_sbCopy, TQT_SIGNAL(valueChanged(int) ), TQT_SLOT(configChanged() ) ); + connect( dialog->m_sbMove, TQT_SIGNAL(valueChanged(int) ), TQT_SLOT(configChanged() ) ); + connect( dialog->pbCopyClear, TQT_SIGNAL(pressed() ), TQT_SLOT(slotClearCopyCache() ) ); + connect( dialog->pbMoveClear, TQT_SIGNAL(pressed() ), TQT_SLOT(slotClearMoveCache() ) ); + connect( dialog->m_chkShow, TQT_SIGNAL(clicked() ), TQT_SLOT(slotShowToggled() ) ); load(); } @@ -86,7 +86,7 @@ KCMKuick::~KCMKuick() { } -void KCMKuick::load(const QString & /*s*/) +void KCMKuick::load(const TQString & /*s*/) { } @@ -108,8 +108,8 @@ void KCMKuick::save() config.sync(); //is it necessary ? if ( dialog->m_chkShow->isChecked() ) { - QString servicespath = KGlobal::dirs()->saveLocation( "services"); - QFile::remove(servicespath+"/kuick_plugin.desktop"); + TQString servicespath = KGlobal::dirs()->saveLocation( "services"); + TQFile::remove(servicespath+"/kuick_plugin.desktop"); } else { KConfig cfg("kuick_plugin.desktop", false, false, "services"); @@ -124,14 +124,14 @@ void KCMKuick::save() void KCMKuick::slotClearCopyCache( ) { KConfig config("konquerorrc"); config.setGroup("kuick-copy" ); - config.writePathEntry("Paths", QStringList() ); + config.writePathEntry("Paths", TQStringList() ); config.sync(); //is it necessary ? } void KCMKuick::slotClearMoveCache() { KConfig config("konquerorrc"); config.setGroup("kuick-move" ); - config.writePathEntry("Paths", QStringList() ); + config.writePathEntry("Paths", TQStringList() ); config.sync(); //is it necessary ? } @@ -146,7 +146,7 @@ void KCMKuick::defaults() emit changed( true ); } -QString KCMKuick::quickHelp() const +TQString KCMKuick::quickHelp() const { return i18n("

Kuick

With this module you can configure Kuick, the KDE quick" "copy and move plugin for Konqueror."); -- cgit v1.2.1