Changeset View
Changeset View
Standalone View
Standalone View
krusader/krusader.cpp
Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Line(s) | 112 | { | |||
---|---|---|---|---|---|
267 | isStarting = false; | 267 | isStarting = false; | ||
268 | 268 | | |||
269 | //HACK - used by [ListerTextArea|KrSearchDialog|LocateDlg]:keyPressEvent() | 269 | //HACK - used by [ListerTextArea|KrSearchDialog|LocateDlg]:keyPressEvent() | ||
270 | KrGlobal::copyShortcut = _listPanelActions->actCopy->shortcut(); | 270 | KrGlobal::copyShortcut = _listPanelActions->actCopy->shortcut(); | ||
271 | 271 | | |||
272 | //HACK: make sure the active view becomes focused | 272 | //HACK: make sure the active view becomes focused | ||
273 | // for some reason sometimes the active view cannot be focused immediately at this point, | 273 | // for some reason sometimes the active view cannot be focused immediately at this point, | ||
274 | // so queue it for the main loop | 274 | // so queue it for the main loop | ||
275 | QTimer::singleShot(0, ACTIVE_PANEL->view->widget(), QOverload<>::of(&QWidget::setFocus)); | 275 | QTimer::singleShot(0, ACTIVE_PANEL->view->widget(), static_cast<void (QWidget::*)()>(&QWidget::setFocus)); | ||
276 | 276 | | |||
277 | _openUrlTimer.setSingleShot(true); | 277 | _openUrlTimer.setSingleShot(true); | ||
278 | connect(&_openUrlTimer, &QTimer::timeout, this, &Krusader::doOpenUrl); | 278 | connect(&_openUrlTimer, &QTimer::timeout, this, &Krusader::doOpenUrl); | ||
279 | 279 | | |||
280 | auto *startupInfo = new KStartupInfo(0, this); | 280 | auto *startupInfo = new KStartupInfo(0, this); | ||
281 | connect(startupInfo, &KStartupInfo::gotNewStartup, | 281 | connect(startupInfo, &KStartupInfo::gotNewStartup, | ||
282 | this, &Krusader::slotGotNewStartup); | 282 | this, &Krusader::slotGotNewStartup); | ||
283 | connect(startupInfo, &KStartupInfo::gotRemoveStartup, | 283 | connect(startupInfo, &KStartupInfo::gotRemoveStartup, | ||
▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines |