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