Changeset View
Changeset View
Standalone View
Standalone View
applets/notifications/plugin/notificationshelper.cpp
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Line(s) | 137 | if (!popup) { | |||
---|---|---|---|---|---|
144 | m_mutex->unlock(); | 144 | m_mutex->unlock(); | ||
145 | // Set the source name directly on the popup object too | 145 | // Set the source name directly on the popup object too | ||
146 | // to avoid looking up the notificationProperties map as above | 146 | // to avoid looking up the notificationProperties map as above | ||
147 | popup->setProperty("sourceName", sourceName); | 147 | popup->setProperty("sourceName", sourceName); | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | // Populate the popup with data, this is the component's own QML method | 150 | // Populate the popup with data, this is the component's own QML method | ||
151 | QMetaObject::invokeMethod(popup, "populatePopup", Qt::DirectConnection, Q_ARG(QVariant, notificationData)); | 151 | QMetaObject::invokeMethod(popup, "populatePopup", Qt::DirectConnection, Q_ARG(QVariant, notificationData)); | ||
152 | Q_EMIT popupShown(popup); | ||||
152 | 153 | | |||
153 | QTimer::singleShot(300, popup, &QWindow::show); | 154 | QTimer::singleShot(300, popup, &QWindow::show); | ||
154 | 155 | | |||
155 | if (!m_dispatchTimer->isActive()) { | 156 | if (!m_dispatchTimer->isActive()) { | ||
156 | m_dispatchTimer->start(); | 157 | m_dispatchTimer->start(); | ||
157 | } | 158 | } | ||
158 | } | 159 | } | ||
159 | 160 | | |||
▲ Show 20 Lines • Show All 198 Lines • Show Last 20 Lines |