Changeset View
Changeset View
Standalone View
Standalone View
krusader/Panel/krsearchbar.cpp
Show First 20 Lines • Show All 216 Lines • ▼ Show 20 Line(s) | |||||
217 | { | 217 | { | ||
218 | // only handle KeyPress events in this method | 218 | // only handle KeyPress events in this method | ||
219 | if (event->type() != QEvent::KeyPress) { | 219 | if (event->type() != QEvent::KeyPress) { | ||
220 | return false; | 220 | return false; | ||
221 | } | 221 | } | ||
222 | 222 | | |||
223 | qDebug() << "key press event=" << event; | 223 | qDebug() << "key press event=" << event; | ||
224 | 224 | | |||
225 | auto *ke = static_cast<QKeyEvent *>(event); | 225 | auto *ke = dynamic_cast<QKeyEvent *>(event); | ||
226 | auto modifiers = ke->modifiers(); | 226 | auto modifiers = ke->modifiers(); | ||
227 | 227 | | |||
228 | if (watched == _view->widget()) { | 228 | if (watched == _view->widget()) { | ||
229 | KConfigGroup grpSv(krConfig, "Look&Feel"); | 229 | KConfigGroup grpSv(krConfig, "Look&Feel"); | ||
230 | const bool autoShow = grpSv.readEntry("New Style Quicksearch", _NewStyleQuicksearch); | 230 | const bool autoShow = grpSv.readEntry("New Style Quicksearch", _NewStyleQuicksearch); | ||
231 | 231 | | |||
232 | if (isHidden() && !autoShow) { | 232 | if (isHidden() && !autoShow) { | ||
233 | return false; | 233 | return false; | ||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |