Changeset View
Changeset View
Standalone View
Standalone View
libs/editor/connectioneditorbase.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | #include <NetworkManagerQt/GsmSetting> | 50 | #include <NetworkManagerQt/GsmSetting> | ||
51 | #include <NetworkManagerQt/PppoeSetting> | 51 | #include <NetworkManagerQt/PppoeSetting> | ||
52 | #include <NetworkManagerQt/Settings> | 52 | #include <NetworkManagerQt/Settings> | ||
53 | #include <NetworkManagerQt/VpnSetting> | 53 | #include <NetworkManagerQt/VpnSetting> | ||
54 | #include <NetworkManagerQt/Utils> | 54 | #include <NetworkManagerQt/Utils> | ||
55 | #include <NetworkManagerQt/WirelessSetting> | 55 | #include <NetworkManagerQt/WirelessSetting> | ||
56 | #include <NetworkManagerQt/WirelessDevice> | 56 | #include <NetworkManagerQt/WirelessDevice> | ||
57 | 57 | | |||
58 | #include <KIconLoader> | | |||
59 | #include <KLocalizedString> | 58 | #include <KLocalizedString> | ||
60 | #include <KNotification> | 59 | #include <KNotification> | ||
61 | #include <KServiceTypeTrader> | 60 | #include <KServiceTypeTrader> | ||
62 | #include <KUser> | 61 | #include <KUser> | ||
63 | 62 | | |||
64 | ConnectionEditorBase::ConnectionEditorBase(const NetworkManager::ConnectionSettings::Ptr &connection, | 63 | ConnectionEditorBase::ConnectionEditorBase(const NetworkManager::ConnectionSettings::Ptr &connection, | ||
65 | QWidget *parent, Qt::WindowFlags f) | 64 | QWidget *parent, Qt::WindowFlags f) | ||
66 | : QWidget(parent, f) | 65 | : QWidget(parent, f) | ||
▲ Show 20 Lines • Show All 393 Lines • ▼ Show 20 Line(s) | 447 | if (key == settingName) { | |||
460 | } | 459 | } | ||
461 | } | 460 | } | ||
462 | } | 461 | } | ||
463 | } else { | 462 | } else { | ||
464 | KNotification *notification = new KNotification("FailedToGetSecrets", KNotification::CloseOnTimeout); | 463 | KNotification *notification = new KNotification("FailedToGetSecrets", KNotification::CloseOnTimeout); | ||
465 | notification->setComponentName("networkmanagement"); | 464 | notification->setComponentName("networkmanagement"); | ||
466 | notification->setTitle(i18n("Failed to get secrets for %1", watcher->property("connection").toString())); | 465 | notification->setTitle(i18n("Failed to get secrets for %1", watcher->property("connection").toString())); | ||
467 | notification->setText(reply.error().message()); | 466 | notification->setText(reply.error().message()); | ||
468 | notification->setPixmap(QIcon::fromTheme("dialog-warning").pixmap(KIconLoader::SizeHuge)); | 467 | notification->setIconName(QStringLiteral("dialog-warning")); | ||
469 | notification->sendEvent(); | 468 | notification->sendEvent(); | ||
470 | } | 469 | } | ||
471 | 470 | | |||
472 | watcher->deleteLater(); | 471 | watcher->deleteLater(); | ||
473 | validChanged(true); | 472 | validChanged(true); | ||
474 | 473 | | |||
475 | // We should be now fully with secrets | 474 | // We should be now fully with secrets | ||
476 | m_pendingReplies--; | 475 | m_pendingReplies--; | ||
Show All 22 Lines |