diff options
Diffstat (limited to 'digikam/imageplugins/filmgrain/imageeffect_filmgrain.cpp')
-rw-r--r-- | digikam/imageplugins/filmgrain/imageeffect_filmgrain.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/digikam/imageplugins/filmgrain/imageeffect_filmgrain.cpp b/digikam/imageplugins/filmgrain/imageeffect_filmgrain.cpp index dd9d125..03d9195 100644 --- a/digikam/imageplugins/filmgrain/imageeffect_filmgrain.cpp +++ b/digikam/imageplugins/filmgrain/imageeffect_filmgrain.cpp @@ -23,14 +23,14 @@ * * ============================================================ */ -// Qt includes. +// TQt includes. -#include <qlabel.h> -#include <qwhatsthis.h> -#include <qlcdnumber.h> -#include <qslider.h> -#include <qlayout.h> -#include <qimage.h> +#include <tqlabel.h> +#include <tqwhatsthis.h> +#include <tqlcdnumber.h> +#include <tqslider.h> +#include <tqlayout.h> +#include <tqimage.h> // KDE includes. @@ -55,12 +55,12 @@ namespace DigikamFilmGrainImagesPlugin { -ImageEffect_FilmGrain::ImageEffect_FilmGrain(QWidget* parent) - : Digikam::CtrlPanelDlg(parent, i18n("Add Film Grain to Photograph"), +ImageEffect_FilmGrain::ImageEffect_FilmGrain(TQWidget* tqparent) + : Digikam::CtrlPanelDlg(tqparent, i18n("Add Film Grain to Photograph"), "filmgrain", false, false, true, Digikam::ImagePannelWidget::SeparateViewAll) { - QString whatsThis; + TQString whatsThis; KAboutData* about = new KAboutData("digikam", I18N_NOOP("Film Grain"), @@ -83,22 +83,22 @@ ImageEffect_FilmGrain::ImageEffect_FilmGrain(QWidget* parent) // ------------------------------------------------------------- - QWidget *gboxSettings = new QWidget(m_imagePreviewWidget); - QGridLayout* gridSettings = new QGridLayout( gboxSettings, 1, 1, 0, spacingHint()); - QLabel *label1 = new QLabel(i18n("Sensitivity (ISO):"), gboxSettings); + TQWidget *gboxSettings = new TQWidget(m_imagePreviewWidget); + TQGridLayout* gridSettings = new TQGridLayout( gboxSettings, 1, 1, 0, spacingHint()); + TQLabel *label1 = new TQLabel(i18n("Sensitivity (ISO):"), gboxSettings); - m_sensibilitySlider = new QSlider(2, 30, 1, 12, Qt::Horizontal, gboxSettings); + m_sensibilitySlider = new TQSlider(2, 30, 1, 12, Qt::Horizontal, gboxSettings); m_sensibilitySlider->setTracking ( false ); m_sensibilitySlider->setTickInterval(1); - m_sensibilitySlider->setTickmarks(QSlider::Below); + m_sensibilitySlider->setTickmarks(TQSlider::Below); - m_sensibilityLCDValue = new QLCDNumber (4, gboxSettings); - m_sensibilityLCDValue->setSegmentStyle ( QLCDNumber::Flat ); - m_sensibilityLCDValue->display( QString::number(2400) ); + m_sensibilityLCDValue = new TQLCDNumber (4, gboxSettings); + m_sensibilityLCDValue->setSegmentStyle ( TQLCDNumber::Flat ); + m_sensibilityLCDValue->display( TQString::number(2400) ); whatsThis = i18n("<p>Set here the film ISO-sensitivity to use for simulating the film graininess."); - QWhatsThis::add( m_sensibilityLCDValue, whatsThis); - QWhatsThis::add( m_sensibilitySlider, whatsThis); + TQWhatsThis::add( m_sensibilityLCDValue, whatsThis); + TQWhatsThis::add( m_sensibilitySlider, whatsThis); gridSettings->addMultiCellWidget(label1, 0, 0, 0, 1); gridSettings->addMultiCellWidget(m_sensibilitySlider, 1, 1, 0, 0); @@ -108,16 +108,16 @@ ImageEffect_FilmGrain::ImageEffect_FilmGrain(QWidget* 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)) ); } ImageEffect_FilmGrain::~ImageEffect_FilmGrain() @@ -156,7 +156,7 @@ void ImageEffect_FilmGrain::resetValues() void ImageEffect_FilmGrain::slotSliderMoved(int v) { - m_sensibilityLCDValue->display( QString::number(400+200*v) ); + m_sensibilityLCDValue->display( TQString::number(400+200*v) ); } void ImageEffect_FilmGrain::prepareEffect() |