Changeset View
Changeset View
Standalone View
Standalone View
src/mainwidget.cpp
Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Line(s) | 393 | for (const QString &urlStr : parser.positionalArguments()) { | |||
---|---|---|---|---|---|
394 | const QUrl url(QUrl::fromUserInput(urlStr)); | 394 | const QUrl url(QUrl::fromUserInput(urlStr)); | ||
395 | for (KAddressBookImportExport::KAddressBookImportExportPluginInterface *interface : qAsConst(mImportExportPluginInterfaceList)) { | 395 | for (KAddressBookImportExport::KAddressBookImportExportPluginInterface *interface : qAsConst(mImportExportPluginInterfaceList)) { | ||
396 | if (interface->canImportFileType(url)) { | 396 | if (interface->canImportFileType(url)) { | ||
397 | interface->importFile(url); | 397 | interface->importFile(url); | ||
398 | break; | 398 | break; | ||
399 | } | 399 | } | ||
400 | } | 400 | } | ||
401 | } | 401 | } | ||
402 | } else if (parser.isSet(QStringLiteral("newcontact"))) { | ||||
403 | newContact(); | ||||
402 | } | 404 | } | ||
403 | } | 405 | } | ||
404 | 406 | | |||
405 | void MainWidget::updateQuickSearchText() | 407 | void MainWidget::updateQuickSearchText() | ||
406 | { | 408 | { | ||
407 | mQuickSearchWidget->updateQuickSearchText(i18nc("@label Search contacts in list", "Search...<%1>", mQuickSearchAction->shortcut().toString())); | 409 | mQuickSearchWidget->updateQuickSearchText(i18nc("@label Search contacts in list", "Search...<%1>", mQuickSearchAction->shortcut().toString())); | ||
408 | } | 410 | } | ||
409 | 411 | | |||
▲ Show 20 Lines • Show All 656 Lines • Show Last 20 Lines |