diff options
Diffstat (limited to 'digikam/imageplugins/infrared/infraredtool.cpp')
-rw-r--r-- | digikam/imageplugins/infrared/infraredtool.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/digikam/imageplugins/infrared/infraredtool.cpp b/digikam/imageplugins/infrared/infraredtool.cpp index 82b8e20..9969d24 100644 --- a/digikam/imageplugins/infrared/infraredtool.cpp +++ b/digikam/imageplugins/infrared/infraredtool.cpp @@ -23,16 +23,16 @@ * * ============================================================ */ -// Qt includes. +// TQt includes. -#include <qimage.h> -#include <qlabel.h> -#include <qwhatsthis.h> -#include <qlcdnumber.h> -#include <qslider.h> -#include <qlayout.h> -#include <qdatetime.h> -#include <qcheckbox.h> +#include <tqimage.h> +#include <tqlabel.h> +#include <tqwhatsthis.h> +#include <tqlcdnumber.h> +#include <tqslider.h> +#include <tqlayout.h> +#include <tqdatetime.h> +#include <tqcheckbox.h> // KDE includes. @@ -60,8 +60,8 @@ using namespace Digikam; namespace DigikamInfraredImagesPlugin { -InfraredTool::InfraredTool(QObject* parent) - : EditorToolThreaded(parent) +InfraredTool::InfraredTool(TQObject* tqparent) + : EditorToolThreaded(tqparent) { setName("infrared"); setToolName(i18n("Infrared")); @@ -75,18 +75,18 @@ InfraredTool::InfraredTool(QObject* parent) EditorToolSettings::Try, EditorToolSettings::PanIcon); - QGridLayout* grid = new QGridLayout(m_gboxSettings->plainPage(), 3, 1); - QLabel *label1 = new QLabel(i18n("Sensitivity (ISO):"), m_gboxSettings->plainPage()); + TQGridLayout* grid = new TQGridLayout(m_gboxSettings->plainPage(), 3, 1); + TQLabel *label1 = new TQLabel(i18n("Sensitivity (ISO):"), m_gboxSettings->plainPage()); - m_sensibilitySlider = new QSlider(1, 25, 1, 1, Qt::Horizontal, m_gboxSettings->plainPage()); + m_sensibilitySlider = new TQSlider(1, 25, 1, 1, Qt::Horizontal, m_gboxSettings->plainPage()); m_sensibilitySlider->setTracking(false); m_sensibilitySlider->setTickInterval(1); - m_sensibilitySlider->setTickmarks(QSlider::Below); + m_sensibilitySlider->setTickmarks(TQSlider::Below); - m_sensibilityLCDValue = new QLCDNumber(4, m_gboxSettings->plainPage()); - m_sensibilityLCDValue->setSegmentStyle(QLCDNumber::Flat); - m_sensibilityLCDValue->display(QString::number(200)); - QString whatsThis = i18n("<p>Set here the ISO-sensitivity of the simulated infrared film. " + m_sensibilityLCDValue = new TQLCDNumber(4, m_gboxSettings->plainPage()); + m_sensibilityLCDValue->setSegmentStyle(TQLCDNumber::Flat); + m_sensibilityLCDValue->display(TQString::number(200)); + TQString whatsThis = i18n("<p>Set here the ISO-sensitivity of the simulated infrared film. " "Increasing this value will increase the proportion of green color in the mix. " "It will also increase the halo effect on the hightlights, and the film " "graininess (if that box is checked).</p>" @@ -94,14 +94,14 @@ InfraredTool::InfraredTool(QObject* parent) "A sensitivity over 800 simulates <b>Kodak HIE</b> high-speed infrared film. This last one creates a more " "dramatic photographic style.</p>"); - QWhatsThis::add(m_sensibilityLCDValue, whatsThis); - QWhatsThis::add(m_sensibilitySlider, whatsThis); + TQWhatsThis::add(m_sensibilityLCDValue, whatsThis); + TQWhatsThis::add(m_sensibilitySlider, whatsThis); // ------------------------------------------------------------- - m_addFilmGrain = new QCheckBox(i18n("Add film grain"), m_gboxSettings->plainPage()); + m_addFilmGrain = new TQCheckBox(i18n("Add film grain"), m_gboxSettings->plainPage()); m_addFilmGrain->setChecked(true); - QWhatsThis::add( m_addFilmGrain, i18n("<p>This option adds infrared film grain to " + TQWhatsThis::add( m_addFilmGrain, i18n("<p>This option adds infrared film grain to " "the image depending on ISO-sensitivity.")); grid->addMultiCellWidget(label1, 0, 0, 0, 1); @@ -123,19 +123,19 @@ InfraredTool::InfraredTool(QObject* parent) // ------------------------------------------------------------- - connect( m_sensibilitySlider, SIGNAL(valueChanged(int)), - this, SLOT(slotTimer()) ); + connect( m_sensibilitySlider, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotTimer()) ); // this connection is necessary to change the LCD display when // the value is changed by single clicking on the slider - connect( m_sensibilitySlider, SIGNAL(valueChanged(int)), - this, SLOT(slotSliderMoved(int)) ); + connect( m_sensibilitySlider, TQT_SIGNAL(valueChanged(int)), + this, TQT_SLOT(slotSliderMoved(int)) ); - connect( m_sensibilitySlider, SIGNAL(sliderMoved(int)), - this, SLOT(slotSliderMoved(int)) ); + connect( m_sensibilitySlider, TQT_SIGNAL(sliderMoved(int)), + this, TQT_SLOT(slotSliderMoved(int)) ); - connect( m_addFilmGrain, SIGNAL(toggled (bool)), - this, SLOT(slotEffect()) ); + connect( m_addFilmGrain, TQT_SIGNAL(toggled (bool)), + this, TQT_SLOT(slotEffect()) ); } InfraredTool::~InfraredTool() @@ -183,7 +183,7 @@ void InfraredTool::slotResetSettings() void InfraredTool::slotSliderMoved(int v) { - m_sensibilityLCDValue->display( QString::number(100 + 100 * v) ); + m_sensibilityLCDValue->display( TQString::number(100 + 100 * v) ); } void InfraredTool::prepareEffect() |