From ffe8a83e053396df448e9413828527613ca3bd46 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:46:43 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kstyles/highcontrast/config/highcontrastconfig.cpp | 22 +++++++++++----------- kstyles/highcontrast/config/highcontrastconfig.h | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'kstyles/highcontrast/config') diff --git a/kstyles/highcontrast/config/highcontrastconfig.cpp b/kstyles/highcontrast/config/highcontrastconfig.cpp index 33771f76c..233fb7365 100644 --- a/kstyles/highcontrast/config/highcontrastconfig.cpp +++ b/kstyles/highcontrast/config/highcontrastconfig.cpp @@ -24,40 +24,40 @@ DEALINGS IN THE SOFTWARE. */ -#include -#include -#include +#include +#include +#include #include #include #include #include "highcontrastconfig.h" -extern "C" KDE_EXPORT QWidget* -allocate_kstyle_config(QWidget* parent) +extern "C" KDE_EXPORT TQWidget* +allocate_kstyle_config(TQWidget* parent) { return new HighContrastStyleConfig(parent); } HighContrastStyleConfig::HighContrastStyleConfig( - QWidget* parent): QWidget(parent) + TQWidget* parent): TQWidget(parent) { // Should have no margins here, the dialog provides them - QVBoxLayout* layout = new QVBoxLayout(this, 0, 0); + TQVBoxLayout* layout = new TQVBoxLayout(this, 0, 0); KGlobal::locale()->insertCatalogue("kstyle_highcontrast_config"); - wideLinesBox = new QCheckBox(i18n("Use wider lines"), this); + wideLinesBox = new TQCheckBox(i18n("Use wider lines"), this); layout->add(wideLinesBox); layout->addStretch(1); - QSettings s; + TQSettings s; originalWideLinesState = s.readBoolEntry( "/highcontraststyle/Settings/wideLines", false); wideLinesBox->setChecked(originalWideLinesState); - connect(wideLinesBox, SIGNAL(toggled(bool)), SLOT(updateChanged())); + connect(wideLinesBox, TQT_SIGNAL(toggled(bool)), TQT_SLOT(updateChanged())); } HighContrastStyleConfig::~HighContrastStyleConfig() @@ -69,7 +69,7 @@ HighContrastStyleConfig::~HighContrastStyleConfig() void HighContrastStyleConfig::save() { - QSettings s; + TQSettings s; s.writeEntry("/highcontraststyle/Settings/wideLines", wideLinesBox->isChecked()); } diff --git a/kstyles/highcontrast/config/highcontrastconfig.h b/kstyles/highcontrast/config/highcontrastconfig.h index 26d8a0593..26bd2ff4b 100644 --- a/kstyles/highcontrast/config/highcontrastconfig.h +++ b/kstyles/highcontrast/config/highcontrastconfig.h @@ -33,7 +33,7 @@ class HighContrastStyleConfig: public QWidget { Q_OBJECT public: - HighContrastStyleConfig(QWidget* parent); + HighContrastStyleConfig(TQWidget* parent); ~HighContrastStyleConfig(); // This signal and the next two slots are the plugin @@ -52,7 +52,7 @@ protected slots: protected: // We store settings directly in widgets to // avoid the hassle of sync'ing things - QCheckBox* wideLinesBox; + TQCheckBox* wideLinesBox; // Original settings, for accurate dirtiness tracking bool originalWideLinesState; -- cgit v1.2.1