diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-20 02:53:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-05-20 02:53:53 +0000 |
commit | d31c5384fafd8be1afb5eae8d150aa03e1180555 (patch) | |
tree | aca870c79d6146f309a4120474f126fb75ebaa87 /digikam/imageplugins/raindrop/raindroptool.cpp | |
parent | 9be3ae63454c07422eeeef84a1921e40583d6354 (diff) | |
download | digikam-d31c5384fafd8be1afb5eae8d150aa03e1180555.tar.gz digikam-d31c5384fafd8be1afb5eae8d150aa03e1180555.zip |
TQt4 port Digikam
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/digikam@1232832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'digikam/imageplugins/raindrop/raindroptool.cpp')
-rw-r--r-- | digikam/imageplugins/raindrop/raindroptool.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/digikam/imageplugins/raindrop/raindroptool.cpp b/digikam/imageplugins/raindrop/raindroptool.cpp index d43a79d..638aa6f 100644 --- a/digikam/imageplugins/raindrop/raindroptool.cpp +++ b/digikam/imageplugins/raindrop/raindroptool.cpp @@ -22,13 +22,13 @@ * * ============================================================ */ -// Qt includes. +// TQt includes. -#include <qframe.h> -#include <qimage.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qwhatsthis.h> +#include <tqframe.h> +#include <tqimage.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> // KDE includes. @@ -60,8 +60,8 @@ using namespace Digikam; namespace DigikamRainDropImagesPlugin { -RainDropTool::RainDropTool(QObject* parent) - : EditorToolThreaded(parent) +RainDropTool::RainDropTool(TQObject* tqparent) + : EditorToolThreaded(tqparent) { setName("raindrops"); setToolName(i18n("Raindrops")); @@ -82,32 +82,32 @@ RainDropTool::RainDropTool(QObject* parent) EditorToolSettings::Ok| EditorToolSettings::Cancel); - QGridLayout* gridSettings = new QGridLayout( m_gboxSettings->plainPage(), 7, 2); + TQGridLayout* gridSettings = new TQGridLayout( m_gboxSettings->plainPage(), 7, 2); - QLabel *label1 = new QLabel(i18n("Drop size:"), m_gboxSettings->plainPage()); + TQLabel *label1 = new TQLabel(i18n("Drop size:"), m_gboxSettings->plainPage()); m_dropInput = new RIntNumInput(m_gboxSettings->plainPage()); m_dropInput->setRange(0, 200, 1); m_dropInput->setDefaultValue(80); - QWhatsThis::add( m_dropInput, i18n("<p>Set here the raindrops' size.")); + TQWhatsThis::add( m_dropInput, i18n("<p>Set here the raindrops' size.")); // ------------------------------------------------------------- - QLabel *label2 = new QLabel(i18n("Number:"), m_gboxSettings->plainPage()); + TQLabel *label2 = new TQLabel(i18n("Number:"), m_gboxSettings->plainPage()); m_amountInput = new RIntNumInput(m_gboxSettings->plainPage()); m_amountInput->setRange(1, 500, 1); m_amountInput->setDefaultValue(150); - QWhatsThis::add( m_amountInput, i18n("<p>This value controls the maximum number of raindrops.")); + TQWhatsThis::add( m_amountInput, i18n("<p>This value controls the maximum number of raindrops.")); // ------------------------------------------------------------- - QLabel *label3 = new QLabel(i18n("Fish eyes:"), m_gboxSettings->plainPage()); + TQLabel *label3 = new TQLabel(i18n("Fish eyes:"), m_gboxSettings->plainPage()); m_coeffInput = new RIntNumInput(m_gboxSettings->plainPage()); m_coeffInput->setRange(1, 100, 1); m_coeffInput->setDefaultValue(30); - QWhatsThis::add( m_coeffInput, i18n("<p>This value is the fish-eye-effect optical " + TQWhatsThis::add( m_coeffInput, i18n("<p>This value is the fish-eye-effect optical " "distortion coefficient.")); gridSettings->addMultiCellWidget(label1, 0, 0, 0, 1); @@ -123,14 +123,14 @@ RainDropTool::RainDropTool(QObject* parent) // ------------------------------------------------------------- - connect(m_dropInput, SIGNAL(valueChanged(int)), - this, SLOT(slotTimer())); + connect(m_dropInput, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotTimer())); - connect(m_amountInput, SIGNAL(valueChanged(int)), - this, SLOT(slotTimer())); + connect(m_amountInput, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotTimer())); - connect(m_coeffInput, SIGNAL(valueChanged(int)), - this, SLOT(slotTimer())); + connect(m_coeffInput, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotTimer())); } RainDropTool::~RainDropTool() @@ -205,7 +205,7 @@ void RainDropTool::prepareEffect() ImageIface* iface = m_previewWidget->imageIface(); // Selected data from the image - QRect selection(iface->selectedXOrg(), iface->selectedYOrg(), + TQRect selection(iface->selectedXOrg(), iface->selectedYOrg(), iface->selectedWidth(), iface->selectedHeight()); setFilter(dynamic_cast<DImgThreadedFilter *> @@ -225,7 +225,7 @@ void RainDropTool::prepareFinal() ImageIface iface(0, 0); // Selected data from the image - QRect selection(iface.selectedXOrg(), iface.selectedYOrg(), + TQRect selection(iface.selectedXOrg(), iface.selectedYOrg(), iface.selectedWidth(), iface.selectedHeight()); setFilter(dynamic_cast<DImgThreadedFilter *> |