diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 08:02:59 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-07-02 08:02:59 +0000 |
commit | f9a9340723a73d10f254a509c209c579efcf1c1f (patch) | |
tree | 46558a8c45f8b4f311d3f33c6c7fa376ac7a0349 /yakuake/src/general_settings.cpp | |
parent | 44cf1a20666f5df2d46e0c0a5fdc1e36028835cf (diff) | |
download | yakuake-f9a9340723a73d10f254a509c209c579efcf1c1f.tar.gz yakuake-f9a9340723a73d10f254a509c209c579efcf1c1f.zip |
TQt4 port yakuake
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/yakuake@1239058 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'yakuake/src/general_settings.cpp')
-rw-r--r-- | yakuake/src/general_settings.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/yakuake/src/general_settings.cpp b/yakuake/src/general_settings.cpp index 9c05e8f..0acf03b 100644 --- a/yakuake/src/general_settings.cpp +++ b/yakuake/src/general_settings.cpp @@ -13,43 +13,43 @@ #include "general_settings.h" #include "general_settings.moc" -#include <qapplication.h> -#include <qslider.h> -#include <qspinbox.h> -#include <qcombobox.h> -#include <qlabel.h> +#include <tqapplication.h> +#include <tqslider.h> +#include <tqspinbox.h> +#include <tqcombobox.h> +#include <tqlabel.h> #include <knuminput.h> #include <klocale.h> -GeneralSettings::GeneralSettings(QWidget* parent, const char* name) - : GeneralSettingsUI(parent, name) +GeneralSettings::GeneralSettings(TQWidget* tqparent, const char* name) + : GeneralSettingsUI(tqparent, name) { kcfg_width->setSuffix("%"); kcfg_height->setSuffix("%"); steps_spinbox->setPrefix("~"); steps_spinbox->setSuffix("ms"); - for (int i = 2; i <= QApplication::desktop()->numScreens(); i++) - kcfg_screen->insertItem(i18n("Screen %1").arg(QString::number(i))); + for (int i = 2; i <= TQApplication::desktop()->numScreens(); i++) + kcfg_screen->insertItem(i18n("Screen %1").tqarg(TQString::number(i))); - if (QApplication::desktop()->numScreens() > 1) + if (TQApplication::desktop()->numScreens() > 1) { screen_label->setEnabled(true); kcfg_screen->setEnabled(true); } - connect(kcfg_width, SIGNAL(valueChanged(int)), this, SLOT(updateWidthSlider(int))); - connect(width_slider, SIGNAL(valueChanged(int)), this, SLOT(updateWidthSpinbox(int))); + connect(kcfg_width, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateWidthSlider(int))); + connect(width_slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateWidthSpinbox(int))); - connect(kcfg_height, SIGNAL(valueChanged(int)), this, SLOT(updateHeightSlider(int))); - connect(height_slider, SIGNAL(valueChanged(int)), this, SLOT(updateHeightSpinbox(int))); + connect(kcfg_height, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateHeightSlider(int))); + connect(height_slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateHeightSpinbox(int))); - connect(kcfg_steps, SIGNAL(valueChanged(int)), this, SLOT(updateStepsSpinbox(int))); - connect(steps_spinbox, SIGNAL(valueChanged(int)), this, SLOT(updateStepsSlider(int))); + connect(kcfg_steps, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateStepsSpinbox(int))); + connect(steps_spinbox, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateStepsSlider(int))); - connect(kcfg_location, SIGNAL(valueChanged(int)), this, SLOT(updateLocation(int))); + connect(kcfg_location, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(updateLocation(int))); } GeneralSettings::~GeneralSettings() |