Changeset View
Changeset View
Standalone View
Standalone View
src/Part.cpp
Show First 20 Lines • Show All 240 Lines • ▼ Show 20 Line(s) | 240 | connect(controller, &Konsole::SessionController::currentDirectoryChanged, this, | |||
---|---|---|---|---|---|
241 | &Konsole::Part::currentDirectoryChanged); | 241 | &Konsole::Part::currentDirectoryChanged); | ||
242 | 242 | | |||
243 | const char *displaySignal = SIGNAL(overrideShortcutCheck(QKeyEvent*,bool&)); | 243 | const char *displaySignal = SIGNAL(overrideShortcutCheck(QKeyEvent*,bool&)); | ||
244 | const char *partSlot = SLOT(overrideTerminalShortcut(QKeyEvent*,bool&)); | 244 | const char *partSlot = SLOT(overrideTerminalShortcut(QKeyEvent*,bool&)); | ||
245 | 245 | | |||
246 | disconnect(controller->view(), displaySignal, this, partSlot); | 246 | disconnect(controller->view(), displaySignal, this, partSlot); | ||
247 | connect(controller->view(), displaySignal, this, partSlot); | 247 | connect(controller->view(), displaySignal, this, partSlot); | ||
248 | 248 | | |||
249 | // set the current session's search bar | | |||
250 | controller->setSearchBar(_viewManager->searchBar()); | | |||
251 | | ||||
252 | _pluggedController = controller; | 249 | _pluggedController = controller; | ||
253 | } | 250 | } | ||
254 | 251 | | |||
255 | void Part::overrideTerminalShortcut(QKeyEvent *event, bool &override) | 252 | void Part::overrideTerminalShortcut(QKeyEvent *event, bool &override) | ||
256 | { | 253 | { | ||
257 | // Shift+Insert is commonly used as the alternate shortcut for | 254 | // Shift+Insert is commonly used as the alternate shortcut for | ||
258 | // pasting in KDE apps(including konsole), so it deserves some | 255 | // pasting in KDE apps(including konsole), so it deserves some | ||
259 | // special treatment. | 256 | // special treatment. | ||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |