summaryrefslogtreecommitdiffstats
path: root/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp')
-rw-r--r--digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp250
1 files changed, 125 insertions, 125 deletions
diff --git a/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp b/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp
index 0cd63a8b..492cc7d5 100644
--- a/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp
+++ b/digikam/utilities/imageeditor/rawimport/rawsettingsbox.cpp
@@ -20,19 +20,19 @@
*
* ============================================================ */
-// Qt includes.
-
-#include <qstring.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
-#include <qhbuttongroup.h>
-#include <qcombobox.h>
-#include <qlabel.h>
-#include <qvbox.h>
-#include <qtoolbutton.h>
-#include <qtoolbox.h>
-#include <qpushbutton.h>
+// TQt includes.
+
+#include <tqstring.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
+#include <tqhbuttongroup.h>
+#include <tqcombobox.h>
+#include <tqlabel.h>
+#include <tqvbox.h>
+#include <tqtoolbutton.h>
+#include <tqtoolbox.h>
+#include <tqpushbutton.h>
// KDE includes.
@@ -119,27 +119,27 @@ public:
brightnessInput = 0;
}
- QWidget *advExposureBox;
- QWidget *curveBox;
- QWidget *rawdecodingBox;
+ TQWidget *advExposureBox;
+ TQWidget *curveBox;
+ TQWidget *rawdecodingBox;
- QComboBox *channelCB;
- QComboBox *colorsCB;
+ TQComboBox *channelCB;
+ TQComboBox *colorsCB;
- QLabel *brightnessLabel;
- QLabel *contrastLabel;
- QLabel *gammaLabel;
- QLabel *saturationLabel;
- QLabel *fineExposureLabel;
+ TQLabel *brightnessLabel;
+ TQLabel *contrastLabel;
+ TQLabel *gammaLabel;
+ TQLabel *saturationLabel;
+ TQLabel *fineExposureLabel;
- QHButtonGroup *scaleBG;
+ TQHButtonGroup *scaleBG;
- QPushButton *abortBtn;
- QPushButton *updateBtn;
+ TQPushButton *abortBtn;
+ TQPushButton *updateBtn;
- QToolButton *resetCurveBtn;
+ TQToolButton *resetCurveBtn;
- QToolBox *postProcessSettingsBox;
+ TQToolBox *postProcessSettingsBox;
KTabWidget *tabView;
@@ -161,84 +161,84 @@ public:
DcrawSettingsWidget *decodingSettingsBox;
};
-RawSettingsBox::RawSettingsBox(const KURL& url, QWidget *parent)
- : EditorToolSettings(Default|Ok|Cancel, NoTool, parent)
+RawSettingsBox::RawSettingsBox(const KURL& url, TQWidget *tqparent)
+ : EditorToolSettings(Default|Ok|Cancel, NoTool, tqparent)
{
d = new RawSettingsBoxPriv;
// ---------------------------------------------------------------
- QGridLayout* gridSettings = new QGridLayout(plainPage(), 5, 4);
+ TQGridLayout* gridSettings = new TQGridLayout(plainPage(), 5, 4);
- QLabel *label1 = new QLabel(i18n("Channel:"), plainPage());
- label1->setAlignment( Qt::AlignRight | Qt::AlignVCenter );
- d->channelCB = new QComboBox(false, plainPage());
+ TQLabel *label1 = new TQLabel(i18n("Channel:"), plainPage());
+ label1->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter );
+ d->channelCB = new TQComboBox(false, plainPage());
d->channelCB->insertItem( i18n("Luminosity") );
d->channelCB->insertItem( i18n("Red") );
d->channelCB->insertItem( i18n("Green") );
d->channelCB->insertItem( i18n("Blue") );
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 the image's luminosity values.<p>"
"<b>Red</b>: display the red image-channel values.<p>"
"<b>Green</b>: display the green image-channel values.<p>"
"<b>Blue</b>: display the blue image-channel values.<p>"
"<b>Colors</b>: Display all color channel values at the same time."));
- d->scaleBG = new QHButtonGroup(plainPage());
+ d->scaleBG = new TQHButtonGroup(plainPage());
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 counts are small, you can use the linear scale.<p>"
"Logarithmic scale can be used when the maximal counts 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:"), plainPage());
- label10->setAlignment( Qt::AlignRight | Qt::AlignVCenter );
- d->colorsCB = new QComboBox(false, plainPage());
+ TQLabel *label10 = new TQLabel(i18n("Colors:"), plainPage());
+ label10->tqsetAlignment( TQt::AlignRight | TQt::AlignVCenter );
+ d->colorsCB = new TQComboBox(false, plainPage());
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>"));
// ---------------------------------------------------------------
- QVBox *histoBox = new QVBox(plainPage());
+ TQVBox *histoBox = new TQVBox(plainPage());
d->histogramWidget = new HistogramWidget(256, 140, histoBox, false, true, true);
- QWhatsThis::add(d->histogramWidget, i18n("<p>Here you can see the target preview image histogram drawing "
+ TQWhatsThis::add(d->histogramWidget, i18n("<p>Here you can see the target preview image histogram drawing "
"of the selected image channel. This one is re-computed at any "
"settings changes."));
- 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" ) );
// ---------------------------------------------------------------
d->tabView = new KTabWidget(plainPage());
- d->rawdecodingBox = new QWidget(d->tabView);
- QGridLayout* rawGrid = new QGridLayout(d->rawdecodingBox, 1, 2);
+ d->rawdecodingBox = new TQWidget(d->tabView);
+ TQGridLayout* rawGrid = new TQGridLayout(d->rawdecodingBox, 1, 2);
d->decodingSettingsBox = new DcrawSettingsWidget(d->rawdecodingBox, true, true, false);
KFileDialog *inputDlg = d->decodingSettingsBox->inputProfileUrlEdit()->fileDialog();
@@ -247,17 +247,17 @@ RawSettingsBox::RawSettingsBox(const KURL& url, QWidget *parent)
KFileDialog *outputDlg = d->decodingSettingsBox->outputProfileUrlEdit()->fileDialog();
outputDlg->setPreviewWidget(new ICCPreviewWidget(outputDlg));
- d->abortBtn = new QPushButton(d->rawdecodingBox);
+ d->abortBtn = new TQPushButton(d->rawdecodingBox);
d->abortBtn->setText(i18n("Abort"));
d->abortBtn->setIconSet(SmallIconSet("stop"));
d->abortBtn->setEnabled(false);
- QToolTip::add(d->abortBtn, i18n("Abort the current Raw image preview."));
+ TQToolTip::add(d->abortBtn, i18n("Abort the current Raw image preview."));
- d->updateBtn = new QPushButton(d->rawdecodingBox);
+ d->updateBtn = new TQPushButton(d->rawdecodingBox);
d->updateBtn->setText(i18n("Update"));
d->updateBtn->setIconSet(SmallIconSet("reload_page"));
d->updateBtn->setEnabled(false);
- QToolTip::add(d->updateBtn, i18n("Generate a Raw image preview using current settings."));
+ TQToolTip::add(d->updateBtn, i18n("Generate a Raw image preview using current settings."));
rawGrid->addMultiCellWidget(d->decodingSettingsBox, 0, 0, 0, 2);
rawGrid->addMultiCellWidget(d->abortBtn, 1, 1, 0, 0);
@@ -268,47 +268,47 @@ RawSettingsBox::RawSettingsBox(const KURL& url, QWidget *parent)
// ---------------------------------------------------------------
- d->postProcessSettingsBox = new QToolBox(d->tabView);
+ d->postProcessSettingsBox = new TQToolBox(d->tabView);
d->infoBox = new ImageDialogPreview(d->postProcessSettingsBox);
d->infoBox->showPreview(url);
// ---------------------------------------------------------------
- d->advExposureBox = new QWidget(d->postProcessSettingsBox);
- QGridLayout* advExposureLayout = new QGridLayout(d->advExposureBox, 5, 2);
+ d->advExposureBox = new TQWidget(d->postProcessSettingsBox);
+ TQGridLayout* advExposureLayout = new TQGridLayout(d->advExposureBox, 5, 2);
- d->brightnessLabel = new QLabel(i18n("Brightness:"), d->advExposureBox);
+ d->brightnessLabel = new TQLabel(i18n("Brightness:"), d->advExposureBox);
d->brightnessInput = new RIntNumInput(d->advExposureBox);
d->brightnessInput->setRange(-100, 100, 1);
d->brightnessInput->setDefaultValue(0);
- QWhatsThis::add(d->brightnessInput->input(), i18n("<p>Set here the brightness adjustment of the image."));
+ TQWhatsThis::add(d->brightnessInput->input(), i18n("<p>Set here the brightness adjustment of the image."));
- d->contrastLabel = new QLabel(i18n("Contrast:"), d->advExposureBox);
+ d->contrastLabel = new TQLabel(i18n("Contrast:"), d->advExposureBox);
d->contrastInput = new RIntNumInput(d->advExposureBox);
d->contrastInput->setRange(-100, 100, 1);
d->contrastInput->setDefaultValue(0);
- QWhatsThis::add(d->contrastInput->input(), i18n("<p>Set here the contrast adjustment of the image."));
+ TQWhatsThis::add(d->contrastInput->input(), i18n("<p>Set here the contrast adjustment of the image."));
- d->gammaLabel = new QLabel(i18n("Gamma:"), d->advExposureBox);
+ d->gammaLabel = new TQLabel(i18n("Gamma:"), d->advExposureBox);
d->gammaInput = new RDoubleNumInput(d->advExposureBox);
d->gammaInput->setPrecision(2);
d->gammaInput->setRange(0.1, 3.0, 0.01);
d->gammaInput->setDefaultValue(1.0);
- QWhatsThis::add(d->gammaInput->input(), i18n("Set here the gamma adjustement of the image"));
+ TQWhatsThis::add(d->gammaInput->input(), i18n("Set here the gamma adjustement of the image"));
- d->saturationLabel = new QLabel(i18n("Saturation:"), d->advExposureBox);
+ d->saturationLabel = new TQLabel(i18n("Saturation:"), d->advExposureBox);
d->saturationInput = new RDoubleNumInput(d->advExposureBox);
d->saturationInput->setPrecision(2);
d->saturationInput->setRange(0.0, 2.0, 0.01);
d->saturationInput->setDefaultValue(1.0);
- QWhatsThis::add(d->saturationInput->input(), i18n("<p>Set here the color saturation correction."));
+ TQWhatsThis::add(d->saturationInput->input(), i18n("<p>Set here the color saturation correction."));
- d->fineExposureLabel = new QLabel(i18n("Exposure (E.V):"), d->advExposureBox);
+ d->fineExposureLabel = new TQLabel(i18n("Exposure (E.V):"), d->advExposureBox);
d->fineExposureInput = new RDoubleNumInput(d->advExposureBox);
d->fineExposureInput->setPrecision(2);
d->fineExposureInput->setRange(-3.0, 3.0, 0.1);
d->fineExposureInput->setDefaultValue(0.0);
- QWhatsThis::add(d->fineExposureInput->input(), i18n("<p>This value in E.V will be used to perform "
+ TQWhatsThis::add(d->fineExposureInput->input(), i18n("<p>This value in E.V will be used to perform "
"an exposure compensation of the image."));
advExposureLayout->addMultiCellWidget(d->brightnessLabel, 0, 0, 0, 0);
@@ -327,30 +327,30 @@ RawSettingsBox::RawSettingsBox(const KURL& url, QWidget *parent)
// ---------------------------------------------------------------
- d->curveBox = new QWidget(d->postProcessSettingsBox);
- QGridLayout* curveLayout = new QGridLayout(d->curveBox, 3, 2);
+ d->curveBox = new TQWidget(d->postProcessSettingsBox);
+ TQGridLayout* curveLayout = new TQGridLayout(d->curveBox, 3, 2);
ColorGradientWidget* vGradient = new ColorGradientWidget(ColorGradientWidget::Vertical, 10, d->curveBox);
- vGradient->setColors( QColor( "white" ), QColor( "black" ) );
+ vGradient->setColors( TQColor( "white" ), TQColor( "black" ) );
- QLabel *spacev = new QLabel(d->curveBox);
+ TQLabel *spacev = new TQLabel(d->curveBox);
spacev->setFixedWidth(1);
d->curveWidget = new CurvesWidget(256, 192, d->curveBox);
- QWhatsThis::add(d->curveWidget, i18n("<p>This is the curve adjustment of the image luminosity"));
+ TQWhatsThis::add(d->curveWidget, i18n("<p>This is the curve adjustment of the image luminosity"));
- d->resetCurveBtn = new QToolButton(d->curveBox);
+ d->resetCurveBtn = new TQToolButton(d->curveBox);
d->resetCurveBtn->setFixedSize(11, 11);
d->resetCurveBtn->setIconSet(SmallIconSet("reload_page", 8));
- d->resetCurveBtn->setFocusPolicy(QWidget::NoFocus);
+ d->resetCurveBtn->setFocusPolicy(TQ_NoFocus);
d->resetCurveBtn->setAutoRaise(true);
- QToolTip::add(d->resetCurveBtn, i18n("Reset curve to linear"));
+ TQToolTip::add(d->resetCurveBtn, i18n("Reset curve to linear"));
- QLabel *spaceh = new QLabel(d->curveBox);
+ TQLabel *spaceh = new TQLabel(d->curveBox);
spaceh->setFixedHeight(1);
ColorGradientWidget *hGradient = new ColorGradientWidget(ColorGradientWidget::Horizontal, 10, d->curveBox);
- hGradient->setColors( QColor( "black" ), QColor( "white" ) );
+ hGradient->setColors( TQColor( "black" ), TQColor( "white" ) );
curveLayout->addMultiCellWidget(vGradient, 0, 0, 0, 0);
curveLayout->addMultiCellWidget(spacev, 0, 0, 1, 1);
@@ -383,15 +383,15 @@ RawSettingsBox::RawSettingsBox(const KURL& url, QWidget *parent)
button(Default)->setText(i18n("Reset"));
button(Default)->setIconSet(SmallIconSet("reload_page"));
- QToolTip::add(button(Default), i18n("<p>Reset all settings to default values."));
+ TQToolTip::add(button(Default), i18n("<p>Reset all settings to default values."));
button(Ok)->setText(i18n("Import"));
button(Ok)->setIconSet(SmallIconSet("ok"));
- QToolTip::add(button(Ok), i18n("<p>Import image to editor using current settings."));
+ TQToolTip::add(button(Ok), i18n("<p>Import image to editor using current settings."));
button(Cancel)->setText(i18n("Use Default"));
button(Cancel)->setIconSet(SmallIconSet("gohome"));
- QToolTip::add(button(Cancel), i18n("<p>Use general Raw decoding settings to load this image in editor."));
+ TQToolTip::add(button(Cancel), i18n("<p>Use general Raw decoding settings to load this image in editor."));
// ---------------------------------------------------------------
@@ -409,44 +409,44 @@ RawSettingsBox::RawSettingsBox(const KURL& url, QWidget *parent)
// ---------------------------------------------------------------
- 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->resetCurveBtn, SIGNAL(clicked()),
- this, SLOT(slotResetCurve()));
+ connect(d->resetCurveBtn, TQT_SIGNAL(clicked()),
+ this, TQT_SLOT(slotResetCurve()));
- connect(d->updateBtn, SIGNAL(clicked()),
- this, SIGNAL(signalUpdatePreview()));
+ connect(d->updateBtn, TQT_SIGNAL(clicked()),
+ this, TQT_SIGNAL(signalUpdatePreview()));
- connect(d->abortBtn, SIGNAL(clicked()),
- this, SIGNAL(signalAbortPreview()));
+ connect(d->abortBtn, TQT_SIGNAL(clicked()),
+ this, TQT_SIGNAL(signalAbortPreview()));
- connect(d->decodingSettingsBox, SIGNAL(signalSettingsChanged()),
- this, SIGNAL(signalDemosaicingChanged()));
+ connect(d->decodingSettingsBox, TQT_SIGNAL(signalSettingsChanged()),
+ this, TQT_SIGNAL(signalDemosaicingChanged()));
- connect(d->curveWidget, SIGNAL(signalCurvesChanged()),
- this, SIGNAL(signalPostProcessingChanged()));
+ connect(d->curveWidget, TQT_SIGNAL(signalCurvesChanged()),
+ this, TQT_SIGNAL(signalPostProcessingChanged()));
- connect(d->brightnessInput, SIGNAL(valueChanged(int)),
- this, SIGNAL(signalPostProcessingChanged()));
+ connect(d->brightnessInput, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SIGNAL(signalPostProcessingChanged()));
- connect(d->contrastInput, SIGNAL(valueChanged(int)),
- this, SIGNAL(signalPostProcessingChanged()));
+ connect(d->contrastInput, TQT_SIGNAL(valueChanged(int)),
+ this, TQT_SIGNAL(signalPostProcessingChanged()));
- connect(d->gammaInput, SIGNAL(valueChanged(double)),
- this, SIGNAL(signalPostProcessingChanged()));
+ connect(d->gammaInput, TQT_SIGNAL(valueChanged(double)),
+ this, TQT_SIGNAL(signalPostProcessingChanged()));
- connect(d->saturationInput, SIGNAL(valueChanged(double)),
- this, SIGNAL(signalPostProcessingChanged()));
+ connect(d->saturationInput, TQT_SIGNAL(valueChanged(double)),
+ this, TQT_SIGNAL(signalPostProcessingChanged()));
- connect(d->fineExposureInput, SIGNAL(valueChanged(double)),
- this, SIGNAL(signalPostProcessingChanged()));
+ connect(d->fineExposureInput, TQT_SIGNAL(valueChanged(double)),
+ this, TQT_SIGNAL(signalPostProcessingChanged()));
}
RawSettingsBox::~RawSettingsBox()
@@ -546,8 +546,8 @@ void RawSettingsBox::readSettings()
(DRawDecoding::OutputColorSpace)config->readNumEntry("Output Color Space",
(int)(DRawDecoding::SRGB)));
- d->decodingSettingsBox->setInputColorProfile(config->readPathEntry("Input Color Profile", QString()));
- d->decodingSettingsBox->setOutputColorProfile(config->readPathEntry("Output Color Profile", QString()));
+ d->decodingSettingsBox->setInputColorProfile(config->readPathEntry("Input Color Profile", TQString()));
+ d->decodingSettingsBox->setOutputColorProfile(config->readPathEntry("Output Color Profile", TQString()));
d->brightnessInput->setValue(config->readNumEntry("Brightness", 0));
d->contrastInput->setValue(config->readNumEntry("Contrast", 0));
@@ -559,8 +559,8 @@ void RawSettingsBox::readSettings()
for (int j = 0 ; j <= 17 ; j++)
{
- QPoint disable(-1, -1);
- QPoint p = config->readPointEntry(QString("CurveAjustmentPoint%1").arg(j), &disable);
+ TQPoint disable(-1, -1);
+ TQPoint p = config->readPointEntry(TQString("CurveAjustmentPoint%1").tqarg(j), &disable);
if (!d->decodingSettingsBox->sixteenBits() && p != disable)
{
// Restore point as 16 bits depth.
@@ -620,14 +620,14 @@ void RawSettingsBox::writeSettings()
for (int j = 0 ; j <= 17 ; j++)
{
- QPoint p = d->curveWidget->curves()->getCurvePoint(ImageHistogram::ValueChannel, j);
+ TQPoint p = d->curveWidget->curves()->getCurvePoint(ImageHistogram::ValueChannel, j);
if (!d->curveWidget->curves()->isSixteenBits())
{
// Store point as 16 bits depth.
p.setX(p.x()*255);
p.setY(p.y()*255);
}
- config->writeEntry(QString("CurveAjustmentPoint%1").arg(j), p);
+ config->writeEntry(TQString("CurveAjustmentPoint%1").tqarg(j), p);
}
config->writeEntry("Settings Page", d->tabView->currentPage());
@@ -680,42 +680,42 @@ void RawSettingsBox::slotChannelChanged(int channel)
{
case RawSettingsBoxPriv::LuminosityChannel:
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;
case RawSettingsBoxPriv::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 RawSettingsBoxPriv::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 RawSettingsBoxPriv::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 RawSettingsBoxPriv::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;
}
- d->histogramWidget->repaint(false);
+ d->histogramWidget->tqrepaint(false);
}
void RawSettingsBox::slotScaleChanged(int scale)
{
d->histogramWidget->m_scaleType = scale;
- d->histogramWidget->repaint(false);
+ d->histogramWidget->tqrepaint(false);
}
void RawSettingsBox::slotColorsChanged(int color)
@@ -735,7 +735,7 @@ void RawSettingsBox::slotColorsChanged(int color)
break;
}
- d->histogramWidget->repaint(false);
+ d->histogramWidget->tqrepaint(false);
}
} // NameSpace Digikam