summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/adjustlevels/adjustlevels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'digikam/imageplugins/adjustlevels/adjustlevels.cpp')
-rw-r--r--digikam/imageplugins/adjustlevels/adjustlevels.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/digikam/imageplugins/adjustlevels/adjustlevels.cpp b/digikam/imageplugins/adjustlevels/adjustlevels.cpp
index 74a394b2..35e099e8 100644
--- a/digikam/imageplugins/adjustlevels/adjustlevels.cpp
+++ b/digikam/imageplugins/adjustlevels/adjustlevels.cpp
@@ -676,16 +676,16 @@ void AdjustLevelDialog::slotChannelChanged(int channel)
m_levels->getLevelLowOutputValue(channel),
m_levels->getLevelHighOutputValue(channel));
- m_levelsHistogramWidget->tqrepaint(false);
- m_histogramWidget->tqrepaint(false);
+ m_levelsHistogramWidget->repaint(false);
+ m_histogramWidget->repaint(false);
}
void AdjustLevelDialog::slotScaleChanged(int scale)
{
m_levelsHistogramWidget->m_scaleType = scale;
m_histogramWidget->m_scaleType = scale;
- m_histogramWidget->tqrepaint(false);
- m_levelsHistogramWidget->tqrepaint(false);
+ m_histogramWidget->repaint(false);
+ m_levelsHistogramWidget->repaint(false);
}
void AdjustLevelDialog::readUserSettings()
@@ -700,11 +700,11 @@ void AdjustLevelDialog::readUserSettings()
{
bool sb = m_originalImage.sixteenBit();
int max = sb ? 65535 : 255;
- double gamma = config->readDoubleNumEntry(TQString("GammaChannel%1").tqarg(i), 1.0);
- int lowInput = config->readNumEntry(TQString("LowInputChannel%1").tqarg(i), 0);
- int lowOutput = config->readNumEntry(TQString("LowOutputChannel%1").tqarg(i), 0);
- int highInput = config->readNumEntry(TQString("HighInputChannel%1").tqarg(i), max);
- int highOutput = config->readNumEntry(TQString("HighOutputChannel%1").tqarg(i), max);
+ double gamma = config->readDoubleNumEntry(TQString("GammaChannel%1").arg(i), 1.0);
+ int lowInput = config->readNumEntry(TQString("LowInputChannel%1").arg(i), 0);
+ int lowOutput = config->readNumEntry(TQString("LowOutputChannel%1").arg(i), 0);
+ int highInput = config->readNumEntry(TQString("HighInputChannel%1").arg(i), max);
+ int highOutput = config->readNumEntry(TQString("HighOutputChannel%1").arg(i), max);
m_levels->setLevelGammaValue(i, gamma);
m_levels->setLevelLowInputValue(i, sb ? lowInput*255 : lowInput);
@@ -742,11 +742,11 @@ void AdjustLevelDialog::writeUserSettings()
int highInput = m_levels->getLevelHighInputValue(i);
int highOutput = m_levels->getLevelHighOutputValue(i);
- config->writeEntry(TQString("GammaChannel%1").tqarg(i), gamma);
- config->writeEntry(TQString("LowInputChannel%1").tqarg(i), sb ? lowInput/255 : lowInput);
- config->writeEntry(TQString("LowOutputChannel%1").tqarg(i), sb ? lowOutput/255 : lowOutput);
- config->writeEntry(TQString("HighInputChannel%1").tqarg(i), sb ? highInput/255 : highInput);
- config->writeEntry(TQString("HighOutputChannel%1").tqarg(i), sb ? highOutput/255 : highOutput);
+ config->writeEntry(TQString("GammaChannel%1").arg(i), gamma);
+ config->writeEntry(TQString("LowInputChannel%1").arg(i), sb ? lowInput/255 : lowInput);
+ config->writeEntry(TQString("LowOutputChannel%1").arg(i), sb ? lowOutput/255 : lowOutput);
+ config->writeEntry(TQString("HighInputChannel%1").arg(i), sb ? highInput/255 : highInput);
+ config->writeEntry(TQString("HighOutputChannel%1").arg(i), sb ? highOutput/255 : highOutput);
}
config->sync();