summaryrefslogtreecommitdiffstats
path: root/digikam/libs/imageproperties/imagepropertiescolorstab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/libs/imageproperties/imagepropertiescolorstab.cpp')
-rw-r--r--digikam/libs/imageproperties/imagepropertiescolorstab.cpp322
1 files changed, 161 insertions, 161 deletions
diff --git a/digikam/libs/imageproperties/imagepropertiescolorstab.cpp b/digikam/libs/imageproperties/imagepropertiescolorstab.cpp
index 5201c55..ea63fd1 100644
--- a/digikam/libs/imageproperties/imagepropertiescolorstab.cpp
+++ b/digikam/libs/imageproperties/imagepropertiescolorstab.cpp
@@ -25,19 +25,19 @@
#include <cmath>
-// Qt includes.
-
-#include <qlayout.h>
-#include <qspinbox.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qwhatsthis.h>
-#include <qgroupbox.h>
-#include <qhbuttongroup.h>
-#include <qpushbutton.h>
-#include <qtooltip.h>
-#include <qvbox.h>
-#include <qscrollview.h>
+// TQt includes.
+
+#include <tqlayout.h>
+#include <tqspinbox.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqwhatsthis.h>
+#include <tqgroupbox.h>
+#include <tqhbuttongroup.h>
+#include <tqpushbutton.h>
+#include <tqtooltip.h>
+#include <tqvbox.h>
+#include <tqscrollview.h>
// KDE includes.
@@ -106,31 +106,31 @@ public:
bool inLoadingProcess;
- QComboBox *channelCB;
- QComboBox *colorsCB;
- QComboBox *renderingCB;
+ TQComboBox *channelCB;
+ TQComboBox *colorsCB;
+ TQComboBox *renderingCB;
- QHButtonGroup *scaleBG;
- QHButtonGroup *regionBG;
+ TQHButtonGroup *scaleBG;
+ TQHButtonGroup *regionBG;
- QSpinBox *minInterv;
- QSpinBox *maxInterv;
+ TQSpinBox *minInterv;
+ TQSpinBox *maxInterv;
- QLabel *labelMeanValue;
- QLabel *labelPixelsValue;
- QLabel *labelStdDevValue;
- QLabel *labelCountValue;
- QLabel *labelMedianValue;
- QLabel *labelPercentileValue;
- QLabel *labelColorDepth;
- QLabel *labelAlphaChannel;
+ TQLabel *labelMeanValue;
+ TQLabel *labelPixelsValue;
+ TQLabel *labelStdDevValue;
+ TQLabel *labelCountValue;
+ TQLabel *labelMedianValue;
+ TQLabel *labelPercentileValue;
+ TQLabel *labelColorDepth;
+ TQLabel *labelAlphaChannel;
- QString currentFilePath;
+ TQString currentFilePath;
LoadingDescription currentLoadingDescription;
- QRect selectionArea;
+ TQRect selectionArea;
- QByteArray embedded_profile;
+ TQByteArray embedded_profile;
KTabWidget *tab;
@@ -143,8 +143,8 @@ public:
SharedLoadSaveThread *imageLoaderThread;
};
-ImagePropertiesColorsTab::ImagePropertiesColorsTab(QWidget* parent, bool navBar)
- : NavigateBarTab(parent)
+ImagePropertiesColorsTab::ImagePropertiesColorsTab(TQWidget* tqparent, bool navBar)
+ : NavigateBarTab(tqparent)
{
d = new ImagePropertiesColorsTabPriv;
@@ -154,26 +154,26 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(QWidget* parent, bool navBar)
// Histogram tab area -----------------------------------------------------
- QScrollView *sv = new QScrollView(d->tab);
- sv->viewport()->setBackgroundMode(Qt::PaletteBackground);
- sv->setResizePolicy(QScrollView::AutoOneFit);
- sv->setFrameStyle(QFrame::NoFrame);
+ TQScrollView *sv = new TQScrollView(d->tab);
+ sv->viewport()->setBackgroundMode(TQt::PaletteBackground);
+ sv->setResizePolicy(TQScrollView::AutoOneFit);
+ sv->setFrameStyle(TQFrame::NoFrame);
- QWidget* histogramPage = new QWidget(sv->viewport());
- QGridLayout *topLayout = new QGridLayout(histogramPage, 8, 3,
+ TQWidget* histogramPage = new TQWidget(sv->viewport());
+ TQGridLayout *topLayout = new TQGridLayout(histogramPage, 8, 3,
KDialog::spacingHint(), KDialog::spacingHint());
sv->addChild(histogramPage);
- QLabel *label1 = new QLabel(i18n("Channel:"), histogramPage);
- label1->setAlignment ( Qt::AlignRight | Qt::AlignVCenter );
- d->channelCB = new QComboBox( false, histogramPage );
+ TQLabel *label1 = new TQLabel(i18n("Channel:"), histogramPage);
+ label1->tqsetAlignment ( TQt::AlignRight | TQt::AlignVCenter );
+ d->channelCB = new TQComboBox( false, histogramPage );
d->channelCB->insertItem( i18n("Luminosity") );
d->channelCB->insertItem( i18n("Red") );
d->channelCB->insertItem( i18n("Green") );
d->channelCB->insertItem( i18n("Blue") );
d->channelCB->insertItem( i18n("Alpha") );
d->channelCB->insertItem( i18n("Colors") );
- QWhatsThis::add( d->channelCB, i18n("<p>Select the histogram channel to display here:<p>"
+ TQWhatsThis::add( d->channelCB, i18n("<p>Select the histogram channel to display here:<p>"
"<b>Luminosity</b>: Display luminosity (perceived brightness) values.<p>"
"<b>Red</b>: Display the red image channel.<p>"
"<b>Green</b>: Display the green image channel.<p>"
@@ -183,93 +183,93 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(QWidget* parent, bool navBar)
"is supported by some image formats such as PNG or TIFF.<p>"
"<b>Colors</b>: Display all color channel values at the same time."));
- d->scaleBG = new QHButtonGroup(histogramPage);
+ d->scaleBG = new TQHButtonGroup(histogramPage);
d->scaleBG->setExclusive(true);
- d->scaleBG->setFrameShape(QFrame::NoFrame);
+ d->scaleBG->setFrameShape(TQFrame::NoFrame);
d->scaleBG->setInsideMargin( 0 );
- QWhatsThis::add( d->scaleBG, i18n("<p>Select the histogram scale here.<p>"
+ TQWhatsThis::add( d->scaleBG, i18n("<p>Select the histogram scale here.<p>"
"If the image's maximal values are small, you can use the linear scale.<p>"
"Logarithmic scale can be used when the maximal values are big; "
"if it is used, all values (small and large) will be visible on the "
"graph."));
- QPushButton *linHistoButton = new QPushButton( d->scaleBG );
- QToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
+ TQPushButton *linHistoButton = new TQPushButton( d->scaleBG );
+ TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) );
d->scaleBG->insert(linHistoButton, HistogramWidget::LinScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data");
- QString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
- linHistoButton->setPixmap( QPixmap( directory + "histogram-lin.png" ) );
+ TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png");
+ linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) );
linHistoButton->setToggleButton(true);
- QPushButton *logHistoButton = new QPushButton( d->scaleBG );
- QToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
+ TQPushButton *logHistoButton = new TQPushButton( d->scaleBG );
+ TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) );
d->scaleBG->insert(logHistoButton, HistogramWidget::LogScaleHistogram);
KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png");
- logHistoButton->setPixmap( QPixmap( directory + "histogram-log.png" ) );
+ logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) );
logHistoButton->setToggleButton(true);
- QLabel *label10 = new QLabel(i18n("Colors:"), histogramPage);
- label10->setAlignment ( Qt::AlignRight | Qt::AlignVCenter );
- d->colorsCB = new QComboBox( false, histogramPage );
+ TQLabel *label10 = new TQLabel(i18n("Colors:"), histogramPage);
+ label10->tqsetAlignment ( TQt::AlignRight | TQt::AlignVCenter );
+ d->colorsCB = new TQComboBox( false, histogramPage );
d->colorsCB->insertItem( i18n("Red") );
d->colorsCB->insertItem( i18n("Green") );
d->colorsCB->insertItem( i18n("Blue") );
d->colorsCB->setEnabled( false );
- QWhatsThis::add( d->colorsCB, i18n("<p>Select the main color displayed with Colors Channel mode here:<p>"
+ TQWhatsThis::add( d->colorsCB, i18n("<p>Select the main color displayed with Colors Channel mode here:<p>"
"<b>Red</b>: Draw the red image channel in the foreground.<p>"
"<b>Green</b>: Draw the green image channel in the foreground.<p>"
"<b>Blue</b>: Draw the blue image channel in the foreground.<p>"));
- d->regionBG = new QHButtonGroup(histogramPage);
+ d->regionBG = new TQHButtonGroup(histogramPage);
d->regionBG->setExclusive(true);
- d->regionBG->setFrameShape(QFrame::NoFrame);
+ d->regionBG->setFrameShape(TQFrame::NoFrame);
d->regionBG->setInsideMargin( 0 );
d->regionBG->hide();
- QWhatsThis::add( d->regionBG, i18n("<p>Select from which region the histogram will be computed here:<p>"
+ TQWhatsThis::add( d->regionBG, i18n("<p>Select from which region the histogram will be computed here:<p>"
"<b>Full Image</b>: Compute histogram using the full image.<p>"
"<b>Selection</b>: Compute histogram using the current image "
"selection."));
- QPushButton *fullImageButton = new QPushButton( d->regionBG );
- QToolTip::add( fullImageButton, i18n( "<p>Full Image" ) );
+ TQPushButton *fullImageButton = new TQPushButton( d->regionBG );
+ TQToolTip::add( fullImageButton, i18n( "<p>Full Image" ) );
d->regionBG->insert(fullImageButton, HistogramWidget::FullImageHistogram);
KGlobal::dirs()->addResourceType("image-full", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("image-full", "image-full.png");
- fullImageButton->setPixmap( QPixmap( directory + "image-full.png" ) );
+ fullImageButton->setPixmap( TQPixmap( directory + "image-full.png" ) );
fullImageButton->setToggleButton(true);
- QPushButton *SelectionImageButton = new QPushButton( d->regionBG );
- QToolTip::add( SelectionImageButton, i18n( "<p>Selection" ) );
+ TQPushButton *SelectionImageButton = new TQPushButton( d->regionBG );
+ TQToolTip::add( SelectionImageButton, i18n( "<p>Selection" ) );
d->regionBG->insert(SelectionImageButton, HistogramWidget::ImageSelectionHistogram);
KGlobal::dirs()->addResourceType("image-selection", KGlobal::dirs()->kde_default("data") + "digikam/data");
directory = KGlobal::dirs()->findResourceDir("image-selection", "image-selection.png");
- SelectionImageButton->setPixmap( QPixmap( directory + "image-selection.png" ) );
+ SelectionImageButton->setPixmap( TQPixmap( directory + "image-selection.png" ) );
SelectionImageButton->setToggleButton(true);
// -------------------------------------------------------------
- QVBox *histoBox = new QVBox(histogramPage);
+ TQVBox *histoBox = new TQVBox(histogramPage);
d->histogramWidget = new HistogramWidget(256, 140, histoBox);
- QWhatsThis::add( d->histogramWidget, i18n("<p>This is the histogram drawing of the "
+ TQWhatsThis::add( d->histogramWidget, i18n("<p>This is the histogram drawing of the "
"selected image channel"));
- QLabel *space = new QLabel(histoBox);
+ TQLabel *space = new TQLabel(histoBox);
space->setFixedHeight(1);
d->hGradient = new ColorGradientWidget(ColorGradientWidget::Horizontal, 10, histoBox);
- d->hGradient->setColors(QColor("black"), QColor("white"));
+ d->hGradient->setColors(TQColor("black"), TQColor("white"));
// -------------------------------------------------------------
- QHBoxLayout *hlay2 = new QHBoxLayout(KDialog::spacingHint());
- QLabel *label3 = new QLabel(i18n("Range:"), histogramPage);
- label3->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->minInterv = new QSpinBox(0, 255, 1, histogramPage);
+ TQHBoxLayout *hlay2 = new TQHBoxLayout(KDialog::spacingHint());
+ TQLabel *label3 = new TQLabel(i18n("Range:"), histogramPage);
+ label3->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->minInterv = new TQSpinBox(0, 255, 1, histogramPage);
d->minInterv->setValue(0);
- QWhatsThis::add(d->minInterv, i18n("<p>Select the minimal intensity "
+ TQWhatsThis::add(d->minInterv, i18n("<p>Select the minimal intensity "
"value of the histogram selection here."));
- d->maxInterv = new QSpinBox(0, 255, 1, histogramPage);
+ d->maxInterv = new TQSpinBox(0, 255, 1, histogramPage);
d->maxInterv->setValue(255);
- QWhatsThis::add(d->minInterv, i18n("<p>Select the maximal intensity value "
+ TQWhatsThis::add(d->minInterv, i18n("<p>Select the maximal intensity value "
"of the histogram selection here."));
hlay2->addWidget(label3);
hlay2->addWidget(d->minInterv);
@@ -277,50 +277,50 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(QWidget* parent, bool navBar)
// -------------------------------------------------------------
- QGroupBox *gbox = new QGroupBox(2, Qt::Horizontal, i18n("Statistics"), histogramPage);
- QWhatsThis::add( gbox, i18n("<p>Here you can see the statistical results calculated from the "
+ TQGroupBox *gbox = new TQGroupBox(2, Qt::Horizontal, i18n("Statistics"), histogramPage);
+ TQWhatsThis::add( gbox, i18n("<p>Here you can see the statistical results calculated from the "
"selected histogram part. These values are available for all "
"channels."));
- QLabel *label5 = new QLabel(i18n("Pixels:"), gbox);
- label5->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelPixelsValue = new QLabel(gbox);
- d->labelPixelsValue->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
-
- QLabel *label7 = new QLabel(i18n("Count:"), gbox);
- label7->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelCountValue = new QLabel(gbox);
- d->labelCountValue->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
-
- QLabel *label4 = new QLabel(i18n("Mean:"), gbox);
- label4->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelMeanValue = new QLabel(gbox);
- d->labelMeanValue->setAlignment (Qt::AlignRight | Qt::AlignVCenter);
-
- QLabel *label6 = new QLabel(i18n("Std. deviation:"), gbox);
- label6->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelStdDevValue = new QLabel(gbox);
- d->labelStdDevValue->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
-
- QLabel *label8 = new QLabel(i18n("Median:"), gbox);
- label8->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelMedianValue = new QLabel(gbox);
- d->labelMedianValue->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
-
- QLabel *label9 = new QLabel(i18n("Percentile:"), gbox);
- label9->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelPercentileValue = new QLabel(gbox);
- d->labelPercentileValue->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
-
- QLabel *label11 = new QLabel(i18n("Color depth:"), gbox);
- label11->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelColorDepth = new QLabel(gbox);
- d->labelColorDepth->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
-
- QLabel *label12 = new QLabel(i18n("Alpha Channel:"), gbox);
- label12->setAlignment(Qt::AlignLeft | Qt::AlignVCenter);
- d->labelAlphaChannel = new QLabel(gbox);
- d->labelAlphaChannel->setAlignment(Qt::AlignRight | Qt::AlignVCenter);
+ TQLabel *label5 = new TQLabel(i18n("Pixels:"), gbox);
+ label5->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelPixelsValue = new TQLabel(gbox);
+ d->labelPixelsValue->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+
+ TQLabel *label7 = new TQLabel(i18n("Count:"), gbox);
+ label7->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelCountValue = new TQLabel(gbox);
+ d->labelCountValue->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+
+ TQLabel *label4 = new TQLabel(i18n("Mean:"), gbox);
+ label4->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelMeanValue = new TQLabel(gbox);
+ d->labelMeanValue->tqsetAlignment (TQt::AlignRight | TQt::AlignVCenter);
+
+ TQLabel *label6 = new TQLabel(i18n("Std. deviation:"), gbox);
+ label6->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelStdDevValue = new TQLabel(gbox);
+ d->labelStdDevValue->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+
+ TQLabel *label8 = new TQLabel(i18n("Median:"), gbox);
+ label8->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelMedianValue = new TQLabel(gbox);
+ d->labelMedianValue->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+
+ TQLabel *label9 = new TQLabel(i18n("Percentile:"), gbox);
+ label9->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelPercentileValue = new TQLabel(gbox);
+ d->labelPercentileValue->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+
+ TQLabel *label11 = new TQLabel(i18n("Color depth:"), gbox);
+ label11->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelColorDepth = new TQLabel(gbox);
+ d->labelColorDepth->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
+
+ TQLabel *label12 = new TQLabel(i18n("Alpha Channel:"), gbox);
+ label12->tqsetAlignment(TQt::AlignLeft | TQt::AlignVCenter);
+ d->labelAlphaChannel = new TQLabel(gbox);
+ d->labelAlphaChannel->tqsetAlignment(TQt::AlignRight | TQt::AlignVCenter);
topLayout->addMultiCellWidget(label1, 1, 1, 0, 0);
topLayout->addMultiCellWidget(d->channelCB, 1, 1, 1, 1);
@@ -338,10 +338,10 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(QWidget* parent, bool navBar)
// ICC Profiles tab area ---------------------------------------
- QScrollView *sv2 = new QScrollView(d->tab);
- sv2->viewport()->setBackgroundMode(Qt::PaletteBackground);
- sv2->setResizePolicy(QScrollView::AutoOneFit);
- sv2->setFrameStyle(QFrame::NoFrame);
+ TQScrollView *sv2 = new TQScrollView(d->tab);
+ sv2->viewport()->setBackgroundMode(TQt::PaletteBackground);
+ sv2->setResizePolicy(TQScrollView::AutoOneFit);
+ sv2->setFrameStyle(TQFrame::NoFrame);
d->iccProfileWidget = new ICCProfileWidget(sv2->viewport());
sv2->addChild(d->iccProfileWidget);
@@ -349,35 +349,35 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(QWidget* parent, bool navBar)
// -------------------------------------------------------------
- connect(d->channelCB, SIGNAL(activated(int)),
- this, SLOT(slotChannelChanged(int)));
+ connect(d->channelCB, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotChannelChanged(int)));
- connect(d->scaleBG, SIGNAL(released(int)),
- this, SLOT(slotScaleChanged(int)));
+ connect(d->scaleBG, TQT_SIGNAL(released(int)),
+ this, TQT_SLOT(slotScaleChanged(int)));
- connect(d->colorsCB, SIGNAL(activated(int)),
- this, SLOT(slotColorsChanged(int)));
+ connect(d->colorsCB, TQT_SIGNAL(activated(int)),
+ this, TQT_SLOT(slotColorsChanged(int)));
- connect(d->regionBG, SIGNAL(released(int)),
- this, SLOT(slotRenderingChanged(int)));
+ connect(d->regionBG, TQT_SIGNAL(released(int)),
+ this, TQT_SLOT(slotRenderingChanged(int)));
- connect(d->histogramWidget, SIGNAL(signalIntervalChanged( int, int )),
- this, SLOT(slotUpdateInterval(int, int)));
+ connect(d->histogramWidget, TQT_SIGNAL(signalIntervalChanged( int, int )),
+ this, TQT_SLOT(slotUpdateInterval(int, int)));
- connect(d->histogramWidget, SIGNAL(signalMaximumValueChanged( int )),
- this, SLOT(slotUpdateIntervRange(int)));
+ connect(d->histogramWidget, TQT_SIGNAL(signalMaximumValueChanged( int )),
+ this, TQT_SLOT(slotUpdateIntervRange(int)));
- connect(d->histogramWidget, SIGNAL(signalHistogramComputationDone(bool)),
- this, SLOT(slotRefreshOptions(bool)));
+ connect(d->histogramWidget, TQT_SIGNAL(signalHistogramComputationDone(bool)),
+ this, TQT_SLOT(slotRefreshOptions(bool)));
- connect(d->histogramWidget, SIGNAL(signalHistogramComputationFailed(void)),
- this, SLOT(slotHistogramComputationFailed(void)));
+ connect(d->histogramWidget, TQT_SIGNAL(signalHistogramComputationFailed(void)),
+ this, TQT_SLOT(slotHistogramComputationFailed(void)));
- connect(d->minInterv, SIGNAL(valueChanged (int)),
- this, SLOT(slotMinValueChanged(int)));
+ connect(d->minInterv, TQT_SIGNAL(valueChanged (int)),
+ this, TQT_SLOT(slotMinValueChanged(int)));
- connect(d->maxInterv, SIGNAL(valueChanged (int)),
- this, SLOT(slotMaxValueChanged(int)));
+ connect(d->maxInterv, TQT_SIGNAL(valueChanged (int)),
+ this, TQT_SLOT(slotMaxValueChanged(int)));
// -- read config ---------------------------------------------------------
@@ -386,7 +386,7 @@ ImagePropertiesColorsTab::ImagePropertiesColorsTab(QWidget* parent, bool navBar)
d->tab->setCurrentPage(config->readNumEntry("ImagePropertiesColors Tab",
ImagePropertiesColorsTabPriv::HISTOGRAM));
d->iccProfileWidget->setMode(config->readNumEntry("ICC Level", ICCProfileWidget::SIMPLE));
- d->iccProfileWidget->setCurrentItemByKey(config->readEntry("Current ICC Item", QString()));
+ d->iccProfileWidget->setCurrentItemByKey(config->readEntry("Current ICC Item", TQString()));
d->channelCB->setCurrentItem(config->readNumEntry("Histogram Channel", 0)); // Luminosity.
d->scaleBG->setButton(config->readNumEntry("Histogram Scale", HistogramWidget::LogScaleHistogram));
@@ -423,7 +423,7 @@ ImagePropertiesColorsTab::~ImagePropertiesColorsTab()
delete d;
}
-void ImagePropertiesColorsTab::setData(const KURL& url, const QRect &selectionArea,
+void ImagePropertiesColorsTab::setData(const KURL& url, const TQRect &selectionArea,
DImg *img)
{
// We might be getting duplicate events from AlbumIconView,
@@ -438,7 +438,7 @@ void ImagePropertiesColorsTab::setData(const KURL& url, const QRect &selectionAr
// threaded histogram algorithm.
d->histogramWidget->stopHistogramComputation();
- d->currentFilePath = QString();
+ d->currentFilePath = TQString();
d->currentLoadingDescription = LoadingDescription();
d->iccProfileWidget->loadFromURL(KURL());
@@ -509,11 +509,11 @@ void ImagePropertiesColorsTab::loadImageFromUrl(const KURL& url)
{
d->imageLoaderThread = new SharedLoadSaveThread();
- connect(d->imageLoaderThread, SIGNAL(signalImageLoaded(const LoadingDescription &, const DImg&)),
- this, SLOT(slotLoadImageFromUrlComplete(const LoadingDescription &, const DImg&)));
+ connect(d->imageLoaderThread, TQT_SIGNAL(signalImageLoaded(const LoadingDescription &, const DImg&)),
+ this, TQT_SLOT(slotLoadImageFromUrlComplete(const LoadingDescription &, const DImg&)));
- connect(d->imageLoaderThread, SIGNAL(signalMoreCompleteLoadingAvailable(const LoadingDescription &, const LoadingDescription &)),
- this, SLOT(slotMoreCompleteLoadingAvailable(const LoadingDescription &, const LoadingDescription &)));
+ connect(d->imageLoaderThread, TQT_SIGNAL(signalMoreCompleteLoadingAvailable(const LoadingDescription &, const LoadingDescription &)),
+ this, TQT_SLOT(slotMoreCompleteLoadingAvailable(const LoadingDescription &, const LoadingDescription &)));
}
LoadingDescription desc = LoadingDescription(url.path());
@@ -585,7 +585,7 @@ void ImagePropertiesColorsTab::slotMoreCompleteLoadingAvailable(const LoadingDes
}
}
-void ImagePropertiesColorsTab::setSelection(const QRect &selectionArea)
+void ImagePropertiesColorsTab::setSelection(const TQRect &selectionArea)
{
// This is necessary to stop computation because d->image.bits() is currently used by
// threaded histogram algorithm.
@@ -629,49 +629,49 @@ void ImagePropertiesColorsTab::slotChannelChanged(int channel)
{
case RedChannel:
d->histogramWidget->m_channelType = HistogramWidget::RedChannelHistogram;
- d->hGradient->setColors( QColor( "black" ), QColor( "red" ) );
+ d->hGradient->setColors( TQColor( "black" ), TQColor( "red" ) );
d->colorsCB->setEnabled(false);
break;
case GreenChannel:
d->histogramWidget->m_channelType = HistogramWidget::GreenChannelHistogram;
- d->hGradient->setColors( QColor( "black" ), QColor( "green" ) );
+ d->hGradient->setColors( TQColor( "black" ), TQColor( "green" ) );
d->colorsCB->setEnabled(false);
break;
case BlueChannel:
d->histogramWidget->m_channelType = HistogramWidget::BlueChannelHistogram;
- d->hGradient->setColors( QColor( "black" ), QColor( "blue" ) );
+ d->hGradient->setColors( TQColor( "black" ), TQColor( "blue" ) );
d->colorsCB->setEnabled(false);
break;
case AlphaChannel:
d->histogramWidget->m_channelType = HistogramWidget::AlphaChannelHistogram;
- d->hGradient->setColors( QColor( "black" ), QColor( "white" ) );
+ d->hGradient->setColors( TQColor( "black" ), TQColor( "white" ) );
d->colorsCB->setEnabled(false);
break;
case ColorChannels:
d->histogramWidget->m_channelType = HistogramWidget::ColorChannelsHistogram;
- d->hGradient->setColors( QColor( "black" ), QColor( "white" ) );
+ d->hGradient->setColors( TQColor( "black" ), TQColor( "white" ) );
d->colorsCB->setEnabled(true);
break;
default: // Luminosity.
d->histogramWidget->m_channelType = HistogramWidget::ValueHistogram;
- d->hGradient->setColors( QColor( "black" ), QColor( "white" ) );
+ d->hGradient->setColors( TQColor( "black" ), TQColor( "white" ) );
d->colorsCB->setEnabled(false);
break;
}
- d->histogramWidget->repaint(false);
+ d->histogramWidget->tqrepaint(false);
updateStatistiques();
}
void ImagePropertiesColorsTab::slotScaleChanged(int scale)
{
d->histogramWidget->m_scaleType = scale;
- d->histogramWidget->repaint(false);
+ d->histogramWidget->tqrepaint(false);
}
void ImagePropertiesColorsTab::slotColorsChanged(int color)
@@ -691,14 +691,14 @@ void ImagePropertiesColorsTab::slotColorsChanged(int color)
break;
}
- d->histogramWidget->repaint(false);
+ d->histogramWidget->tqrepaint(false);
updateStatistiques();
}
void ImagePropertiesColorsTab::slotRenderingChanged(int rendering)
{
d->histogramWidget->m_renderingType = rendering;
- d->histogramWidget->repaint(false);
+ d->histogramWidget->tqrepaint(false);
updateStatistiques();
}
@@ -755,7 +755,7 @@ void ImagePropertiesColorsTab::updateInformations()
void ImagePropertiesColorsTab::updateStatistiques()
{
- QString value;
+ TQString value;
int min = d->minInterv->value();
int max = d->maxInterv->value();
int channel = d->channelCB->currentItem();