Changeset View
Changeset View
Standalone View
Standalone View
src/SessionController.cpp
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Line(s) | 121 | { | |||
---|---|---|---|---|---|
201 | backgroundTimer->setInterval(2000); | 201 | backgroundTimer->setInterval(2000); | ||
202 | connect(backgroundTimer, &QTimer::timeout, this, &Konsole::SessionController::snapshot); | 202 | connect(backgroundTimer, &QTimer::timeout, this, &Konsole::SessionController::snapshot); | ||
203 | backgroundTimer->start(); | 203 | backgroundTimer->start(); | ||
204 | 204 | | |||
205 | // xterm '11;?' request | 205 | // xterm '11;?' request | ||
206 | connect(_session.data(), &Konsole::Session::getBackgroundColor, | 206 | connect(_session.data(), &Konsole::Session::getBackgroundColor, | ||
207 | this, &Konsole::SessionController::sendBackgroundColor); | 207 | this, &Konsole::SessionController::sendBackgroundColor); | ||
208 | 208 | | |||
209 | connect(_session, &Konsole::Session::primaryScreenInUse, view, &Konsole::TerminalDisplay::usingPrimaryScreen); | ||||
210 | | ||||
hindenburg: I think you could just a lambda and not need the below mthod | |||||
hindenburg: oh nvm this | |||||
209 | _allControllers.insert(this); | 211 | _allControllers.insert(this); | ||
210 | 212 | | |||
211 | // A list of programs that accept Ctrl+C to clear command line used | 213 | // A list of programs that accept Ctrl+C to clear command line used | ||
212 | // before outputting bookmark. | 214 | // before outputting bookmark. | ||
213 | _bookmarkValidProgramsToClear << QStringLiteral("bash") << QStringLiteral("fish") << QStringLiteral("sh"); | 215 | _bookmarkValidProgramsToClear << QStringLiteral("bash") << QStringLiteral("fish") << QStringLiteral("sh"); | ||
214 | _bookmarkValidProgramsToClear << QStringLiteral("tcsh") << QStringLiteral("zsh"); | 216 | _bookmarkValidProgramsToClear << QStringLiteral("tcsh") << QStringLiteral("zsh"); | ||
215 | } | 217 | } | ||
216 | 218 | | |||
▲ Show 20 Lines • Show All 1864 Lines • Show Last 20 Lines |
I think you could just a lambda and not need the below mthod