summaryrefslogtreecommitdiffstats
path: root/src/imageplugins/adjustlevels/adjustlevelstool.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/adjustlevels/adjustlevelstool.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/adjustlevels/adjustlevelstool.cpp')
-rw-r--r--src/imageplugins/adjustlevels/adjustlevelstool.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/imageplugins/adjustlevels/adjustlevelstool.cpp b/src/imageplugins/adjustlevels/adjustlevelstool.cpp
index 28066774..c8697226 100644
--- a/src/imageplugins/adjustlevels/adjustlevelstool.cpp
+++ b/src/imageplugins/adjustlevels/adjustlevelstool.cpp
@@ -285,12 +285,12 @@ AdjustLevelsTool::AdjustLevelsTool(TQObject* parent)
m_pickerColorButtonGroup->setFrameShape(TQFrame::NoFrame);
m_autoButton = new TQPushButton(m_gboxSettings->plainPage());
- m_autoButton->setPixmap(kapp->iconLoader()->loadIcon("system-run", (TDEIcon::Group)TDEIcon::Toolbar)); TQToolTip::add( m_autoButton, i18n( "Adjust all levels automatically." ) );
+ m_autoButton->setPixmap(tdeApp->iconLoader()->loadIcon("system-run", (TDEIcon::Group)TDEIcon::Toolbar)); TQToolTip::add( m_autoButton, i18n( "Adjust all levels automatically." ) );
TQWhatsThis::add( m_autoButton, i18n("<p>If you press this button, all channel levels will be adjusted "
"automatically."));
m_resetButton = new TQPushButton(i18n("&Reset"), m_gboxSettings->plainPage());
- m_resetButton->setPixmap(kapp->iconLoader()->loadIcon("reload_page", (TDEIcon::Group)TDEIcon::Toolbar));
+ m_resetButton->setPixmap(tdeApp->iconLoader()->loadIcon("reload_page", (TDEIcon::Group)TDEIcon::Toolbar));
TQToolTip::add( m_resetButton, i18n( "Reset current channel levels' values." ) );
TQWhatsThis::add( m_resetButton, i18n("<p>If you press this button, all levels' values "
"from the current selected channel "
@@ -579,7 +579,7 @@ void AdjustLevelsTool::slotEffect()
void AdjustLevelsTool::finalRendering()
{
- kapp->setOverrideCursor( KCursor::waitCursor() );
+ tdeApp->setOverrideCursor( KCursor::waitCursor() );
ImageIface* iface = m_previewWidget->imageIface();
uchar *orgData = iface->getOriginalImage();
int w = iface->originalWidth();
@@ -596,7 +596,7 @@ void AdjustLevelsTool::finalRendering()
m_levels->levelsLutProcess(orgData, desData, w, h);
iface->putOriginalImage(i18n("Adjust Level"), desData);
- kapp->restoreOverrideCursor();
+ tdeApp->restoreOverrideCursor();
delete [] orgData;
delete [] desData;
@@ -672,7 +672,7 @@ void AdjustLevelsTool::slotScaleChanged(int scale)
void AdjustLevelsTool::readSettings()
{
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
config->setGroup("adjustlevels Tool");
m_channelCB->setCurrentItem(config->readNumEntry("Histogram Channel", 0)); // Luminosity.
@@ -710,7 +710,7 @@ void AdjustLevelsTool::readSettings()
void AdjustLevelsTool::writeSettings()
{
- TDEConfig* config = kapp->config();
+ TDEConfig* config = tdeApp->config();
config->setGroup("adjustlevels Tool");
config->writeEntry("Histogram Channel", m_channelCB->currentItem());
config->writeEntry("Histogram Scale", m_scaleBG->selectedId());
@@ -752,14 +752,14 @@ void AdjustLevelsTool::slotLoadSettings()
KURL loadLevelsFile;
loadLevelsFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(),
- TQString( "*" ), kapp->activeWindow(),
+ TQString( "*" ), tdeApp->activeWindow(),
TQString( i18n("Select Gimp Levels File to Load")) );
if( loadLevelsFile.isEmpty() )
return;
if ( m_levels->loadLevelsFromGimpLevelsFile( loadLevelsFile ) == false )
{
- KMessageBox::error(kapp->activeWindow(), i18n("Cannot load from the Gimp levels text file."));
+ KMessageBox::error(tdeApp->activeWindow(), i18n("Cannot load from the Gimp levels text file."));
return;
}
@@ -772,14 +772,14 @@ void AdjustLevelsTool::slotSaveAsSettings()
KURL saveLevelsFile;
saveLevelsFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(),
- TQString( "*" ), kapp->activeWindow(),
+ TQString( "*" ), tdeApp->activeWindow(),
TQString( i18n("Gimp Levels File to Save")) );
if( saveLevelsFile.isEmpty() )
return;
if ( m_levels->saveLevelsToGimpLevelsFile( saveLevelsFile ) == false )
{
- KMessageBox::error(kapp->activeWindow(), i18n("Cannot save to the Gimp levels text file."));
+ KMessageBox::error(tdeApp->activeWindow(), i18n("Cannot save to the Gimp levels text file."));
return;
}