Changeset View
Changeset View
Standalone View
Standalone View
src/kded/helpers/requestpin.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
52 | actions.append(i18nc("Notification button which once clicked, a dialog to introduce the PIN will be shown", | 52 | actions.append(i18nc("Notification button which once clicked, a dialog to introduce the PIN will be shown", | ||
53 | "Introduce PIN")); | 53 | "Introduce PIN")); | ||
54 | 54 | | |||
55 | m_notification->setActions(actions); | 55 | m_notification->setActions(actions); | ||
56 | 56 | | |||
57 | connect(m_notification, &KNotification::action1Activated,this, &RequestPin::introducePin); | 57 | connect(m_notification, &KNotification::action1Activated,this, &RequestPin::introducePin); | ||
58 | connect(m_notification, &KNotification::closed, this, &RequestPin::quit); | 58 | connect(m_notification, &KNotification::closed, this, &RequestPin::quit); | ||
59 | connect(m_notification, &KNotification::ignored, this, &RequestPin::quit); | 59 | connect(m_notification, &KNotification::ignored, this, &RequestPin::quit); | ||
60 | connect(parent, SIGNAL(agentCanceled()), this, SLOT(quit())); | ||||
60 | 61 | | |||
61 | m_notification->sendEvent(); | 62 | m_notification->sendEvent(); | ||
62 | } | 63 | } | ||
63 | 64 | | |||
64 | void RequestPin::introducePin() | 65 | void RequestPin::introducePin() | ||
65 | { | 66 | { | ||
66 | m_notification->disconnect(); | 67 | m_notification->disconnect(); | ||
67 | m_notification->close(); | 68 | m_notification->close(); | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |