Changeset View
Changeset View
Standalone View
Standalone View
src/notifybypopup.cpp
Show First 20 Lines • Show All 637 Lines • ▼ Show 20 Line(s) | 568 | { | |||
---|---|---|---|---|---|
638 | if (!notification->eventId().isEmpty()) { | 638 | if (!notification->eventId().isEmpty()) { | ||
639 | hintsMap[QStringLiteral("x-kde-eventId")] = notification->eventId(); | 639 | hintsMap[QStringLiteral("x-kde-eventId")] = notification->eventId(); | ||
640 | } | 640 | } | ||
641 | 641 | | |||
642 | if (notification->flags() & KNotification::SkipGrouping) { | 642 | if (notification->flags() & KNotification::SkipGrouping) { | ||
643 | hintsMap[QStringLiteral("x-kde-skipGrouping")] = 1; | 643 | hintsMap[QStringLiteral("x-kde-skipGrouping")] = 1; | ||
644 | } | 644 | } | ||
645 | 645 | | |||
646 | if (!notification->urls().isEmpty()) { | | |||
647 | hintsMap[QStringLiteral("x-kde-urls")] = QUrl::toStringList(notification->urls()); | | |||
648 | } | | |||
649 | | ||||
650 | if (!(notification->flags() & KNotification::Persistent)) { | 646 | if (!(notification->flags() & KNotification::Persistent)) { | ||
651 | hintsMap[QStringLiteral("transient")] = true; | 647 | hintsMap[QStringLiteral("transient")] = true; | ||
652 | } | 648 | } | ||
653 | 649 | | |||
654 | QString desktopFileName = QGuiApplication::desktopFileName(); | 650 | QString desktopFileName = QGuiApplication::desktopFileName(); | ||
655 | if (!desktopFileName.isEmpty()) { | 651 | if (!desktopFileName.isEmpty()) { | ||
656 | // handle apps which set the desktopFileName property with filename suffix, | 652 | // handle apps which set the desktopFileName property with filename suffix, | ||
657 | // due to unclear API dox (https://bugreports.qt.io/browse/QTBUG-75521) | 653 | // due to unclear API dox (https://bugreports.qt.io/browse/QTBUG-75521) | ||
▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines |