From 8135bf0f2a71102b83cd1d56d9e4e9339eb13690 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Thu, 1 Apr 2021 19:31:40 +0300 Subject: Added option related to background blurring feature. Signed-off-by: Mavridis Philippe --- src/komposepreferences.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/komposepreferences.cpp') diff --git a/src/komposepreferences.cpp b/src/komposepreferences.cpp index 572b714..9adf4eb 100644 --- a/src/komposepreferences.cpp +++ b/src/komposepreferences.cpp @@ -168,6 +168,12 @@ KomposePreferences::KomposePreferences() TQToolTip::add( imageEffects, imageEffectsHelp ); page2Layout->addWidget(imageEffects); + blurBackground = new TQCheckBox(i18n("Blur desktop background"), page2); + TQString blurBackgroundHelp = i18n("Apply a Gaussian blur to the desktop background."); + TQWhatsThis::add( blurBackground, blurBackgroundHelp ); + TQToolTip::add( blurBackground, blurBackgroundHelp ); + page2Layout->addWidget(blurBackground); + showDesktopNum = new TQCheckBox(i18n("Show Desktop number on Systray icon"), page2); TQString showDesktopNumHelp = i18n("Displays the number of the currently active Desktop on the Komposé systray icon." ); TQWhatsThis::add( showDesktopNum, showDesktopNumHelp ); @@ -300,6 +306,8 @@ void KomposePreferences::fillPages() dynamicVirtDeskLayout->setChecked( KomposeSettings::instance()->getDynamicVirtDeskLayout() ); imageEffects->setChecked( KomposeSettings::instance()->getImageEffects() ); + blurBackground->setChecked( KomposeSettings::instance()->getBlurBackground() ); + showDesktopNum->setChecked( KomposeSettings::instance()->getShowDesktopNum() ); showWindowTitles->setChecked( KomposeSettings::instance()->getShowWindowTitles() ); @@ -360,6 +368,7 @@ void KomposePreferences::slotApply() KomposeSettings::instance()->setCacheScaledPixmaps( cacheScaledPixmaps->isChecked() ); KomposeSettings::instance()->setDynamicVirtDeskLayout( dynamicVirtDeskLayout->isChecked() ); KomposeSettings::instance()->setImageEffects( imageEffects->isChecked() ); + KomposeSettings::instance()->setBlurBackground( blurBackground->isChecked() ); KomposeSettings::instance()->setShowDesktopNum( showDesktopNum->isChecked() ); KomposeSettings::instance()->setShowWindowTitles( showWindowTitles->isChecked() ); -- cgit v1.2.3