summaryrefslogtreecommitdiffstats
path: root/src/imageplugins/coreplugin/imageeffect_bcg.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-01-21 14:25:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-02-03 22:24:26 +0900
commitedfc85e62cba9be0a16a44c060141f33d0f28481 (patch)
treecf90faf51aca0a8e89f7fbdcbfcc11b02f3021b5 /src/imageplugins/coreplugin/imageeffect_bcg.cpp
parent0bf733ec1780acd7d7f0122559029e09001b840e (diff)
downloaddigikam-edfc85e62cba9be0a16a44c060141f33d0f28481.tar.gz
digikam-edfc85e62cba9be0a16a44c060141f33d0f28481.zip
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/imageplugins/coreplugin/imageeffect_bcg.cpp')
-rw-r--r--src/imageplugins/coreplugin/imageeffect_bcg.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imageplugins/coreplugin/imageeffect_bcg.cpp b/src/imageplugins/coreplugin/imageeffect_bcg.cpp
index 9d21115d..5d6d3a90 100644
--- a/src/imageplugins/coreplugin/imageeffect_bcg.cpp
+++ b/src/imageplugins/coreplugin/imageeffect_bcg.cpp
@@ -256,7 +256,7 @@ void ImageEffect_BCG::slotColorSelectedFromTarget( const Digikam::DColor &color
void ImageEffect_BCG::readUserSettings()
{
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
config->setGroup("bcgadjust Tool Dialog");
m_channelCB->setCurrentItem(config->readNumEntry("Histogram Channel", 0)); // Luminosity.
m_scaleBG->setButton(config->readNumEntry("Histogram Scale", Digikam::HistogramWidget::LogScaleHistogram));
@@ -269,7 +269,7 @@ void ImageEffect_BCG::readUserSettings()
void ImageEffect_BCG::writeUserSettings()
{
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
config->setGroup("bcgadjust Tool Dialog");
config->writeEntry("Histogram Channel", m_channelCB->currentItem());
config->writeEntry("Histogram Scale", m_scaleBG->selectedId());
@@ -294,7 +294,7 @@ void ImageEffect_BCG::resetValues()
void ImageEffect_BCG::slotEffect()
{
- kapp->setOverrideCursor( KCursor::waitCursor() );
+ tdeApp->setOverrideCursor( KCursor::waitCursor() );
double b = (double)m_bInput->value()/250.0;
double c = (double)(m_cInput->value()/100.0) + 1.00;
@@ -329,12 +329,12 @@ void ImageEffect_BCG::slotEffect()
memcpy(m_destinationPreviewData, preview.bits(), preview.numBytes());
m_histogramWidget->updateData(m_destinationPreviewData, w, h, sb, 0, 0, 0, false);
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
}
void ImageEffect_BCG::finalRendering()
{
- kapp->setOverrideCursor( KCursor::waitCursor() );
+ tdeApp->setOverrideCursor( KCursor::waitCursor() );
Digikam::ImageIface* iface = m_previewWidget->imageIface();
double b = (double)m_bInput->value()/250.0;
@@ -342,7 +342,7 @@ void ImageEffect_BCG::finalRendering()
double g = m_gInput->value();
iface->setOriginalBCG(b, c, g);
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
accept();
}