diff --git a/src/Part.h b/src/Part.h --- a/src/Part.h +++ b/src/Part.h @@ -133,6 +133,13 @@ * */ void setMonitorActivityEnabled(bool enabled); + /** + * Returns the status of the blur of the current profile. + * + * @return True if blur is enabled for the current active Konsole color profile. + * */ + bool isBlurEnabled(); + Q_SIGNALS: /** * Emitted when the key sequence for a shortcut, which is also a valid terminal key sequence, diff --git a/src/Part.cpp b/src/Part.cpp --- a/src/Part.cpp +++ b/src/Part.cpp @@ -377,6 +377,11 @@ } } +bool Part::isBlurEnabled() +{ + return ViewManager::profileHasBlurEnabled(SessionManager::instance()->sessionProfile(activeSession())); +} + void Part::sessionStateChanged(int state) { if (state == NOTIFYSILENCE) {