From edfc85e62cba9be0a16a44c060141f33d0f28481 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 21 Jan 2025 14:25:31 +0900 Subject: Use tdeApp Signed-off-by: Michele Calgaro --- .../coreplugin/sharpnesseditor/sharpentool.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/imageplugins/coreplugin/sharpnesseditor/sharpentool.cpp') diff --git a/src/imageplugins/coreplugin/sharpnesseditor/sharpentool.cpp b/src/imageplugins/coreplugin/sharpnesseditor/sharpentool.cpp index aee5d841..de0a3d3c 100644 --- a/src/imageplugins/coreplugin/sharpnesseditor/sharpentool.cpp +++ b/src/imageplugins/coreplugin/sharpnesseditor/sharpentool.cpp @@ -375,7 +375,7 @@ void SharpenTool::slotSharpMethodActived(int w) void SharpenTool::readSettings() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("sharpen Tool"); m_radiusInput->blockSignals(true); m_radiusInput2->blockSignals(true); @@ -415,7 +415,7 @@ void SharpenTool::readSettings() void SharpenTool::writeSettings() { - TDEConfig* config = kapp->config(); + TDEConfig* config = tdeApp->config(); config->setGroup("sharpen Tool"); config->writeEntry("SimpleSharpRadiusAjustment", m_radiusInput->value()); config->writeEntry("UnsharpMaskRadiusAjustment", m_radiusInput2->value()); @@ -679,7 +679,7 @@ void SharpenTool::putFinalData() void SharpenTool::slotLoadSettings() { KURL loadRestorationFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(), - TQString( "*" ), kapp->activeWindow(), + TQString( "*" ), tdeApp->activeWindow(), TQString( i18n("Photograph Refocus Settings File to Load")) ); if ( loadRestorationFile.isEmpty() ) return; @@ -691,7 +691,7 @@ void SharpenTool::slotLoadSettings() TQTextStream stream( &file ); if ( stream.readLine() != "# Photograph Refocus Configuration File" ) { - KMessageBox::error(kapp->activeWindow(), + KMessageBox::error(tdeApp->activeWindow(), i18n("\"%1\" is not a Photograph Refocus settings text file.") .arg(loadRestorationFile.fileName())); file.close(); @@ -707,7 +707,7 @@ void SharpenTool::slotLoadSettings() blockSignals(false); } else - KMessageBox::error(kapp->activeWindow(), i18n("Cannot load settings from the Photograph Refocus text file.")); + KMessageBox::error(tdeApp->activeWindow(), i18n("Cannot load settings from the Photograph Refocus text file.")); file.close(); } @@ -715,7 +715,7 @@ void SharpenTool::slotLoadSettings() void SharpenTool::slotSaveAsSettings() { KURL saveRestorationFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(), - TQString( "*" ), kapp->activeWindow(), + TQString( "*" ), tdeApp->activeWindow(), TQString( i18n("Photograph Refocus Settings File to Save")) ); if ( saveRestorationFile.isEmpty() ) return; @@ -733,7 +733,7 @@ void SharpenTool::slotSaveAsSettings() stream << m_noise->value() << "\n"; } else - KMessageBox::error(kapp->activeWindow(), i18n("Cannot save settings to the Photograph Refocus text file.")); + KMessageBox::error(tdeApp->activeWindow(), i18n("Cannot save settings to the Photograph Refocus text file.")); file.close(); } -- cgit v1.2.3