summaryrefslogtreecommitdiffstats
path: root/digikam/imageplugins/adjustlevels
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:35:21 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:35:21 -0600
commit419fcddc00ceaddb5ec78da0b3eb84a26e3fc4ea (patch)
treeeefc3fdac16a4ec706222b50a4fa9d7825cc9f46 /digikam/imageplugins/adjustlevels
parentc1bbc88281394639e2a92c2d1b43ca4f3e1813aa (diff)
downloaddigikam-419fcddc00ceaddb5ec78da0b3eb84a26e3fc4ea.tar.gz
digikam-419fcddc00ceaddb5ec78da0b3eb84a26e3fc4ea.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'digikam/imageplugins/adjustlevels')
-rw-r--r--digikam/imageplugins/adjustlevels/adjustlevels.cpp28
-rw-r--r--digikam/imageplugins/adjustlevels/adjustlevelstool.cpp28
2 files changed, 28 insertions, 28 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();
diff --git a/digikam/imageplugins/adjustlevels/adjustlevelstool.cpp b/digikam/imageplugins/adjustlevels/adjustlevelstool.cpp
index 5c0c6671..aae7cc42 100644
--- a/digikam/imageplugins/adjustlevels/adjustlevelstool.cpp
+++ b/digikam/imageplugins/adjustlevels/adjustlevelstool.cpp
@@ -658,16 +658,16 @@ void AdjustLevelsTool::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 AdjustLevelsTool::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 AdjustLevelsTool::readSettings()
@@ -682,11 +682,11 @@ void AdjustLevelsTool::readSettings()
{
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);
@@ -724,11 +724,11 @@ void AdjustLevelsTool::writeSettings()
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);
}
m_previewWidget->writeSettings();