Changeset View
Changeset View
Standalone View
Standalone View
src/Part.cpp
Show First 20 Lines • Show All 370 Lines • ▼ Show 20 Line(s) | 369 | } else { | |||
---|---|---|---|---|---|
371 | disconnect(activeSession(), &Konsole::Session::stateChanged, | 371 | disconnect(activeSession(), &Konsole::Session::stateChanged, | ||
372 | this, | 372 | this, | ||
373 | &Konsole::Part::sessionStateChanged); | 373 | &Konsole::Part::sessionStateChanged); | ||
374 | } | 374 | } | ||
375 | } | 375 | } | ||
376 | 376 | | |||
377 | bool Part::isBlurEnabled() | 377 | bool Part::isBlurEnabled() | ||
378 | { | 378 | { | ||
379 | return ViewManager::profileHasBlurEnabled(SessionManager::instance()->sessionProfile(activeSession())); | 379 | auto profile = SessionManager::instance()->sessionProfile(activeSession()); | ||
380 | return profile->colorScheme()->blur(); | ||||
380 | } | 381 | } | ||
381 | 382 | | |||
382 | void Part::sessionStateChanged(int state) | 383 | void Part::sessionStateChanged(int state) | ||
383 | { | 384 | { | ||
384 | if (state == NOTIFYSILENCE) { | 385 | if (state == NOTIFYSILENCE) { | ||
385 | emit silenceDetected(); | 386 | emit silenceDetected(); | ||
386 | } else if (state == NOTIFYACTIVITY) { | 387 | } else if (state == NOTIFYACTIVITY) { | ||
387 | emit activityDetected(); | 388 | emit activityDetected(); | ||
388 | } | 389 | } | ||
389 | } | 390 | } | ||
390 | 391 | | |||
391 | #include "Part.moc" | 392 | #include "Part.moc" |