Changeset View
Changeset View
Standalone View
Standalone View
libnotificationmanager/notificationgroupingproxymodel.cpp
Show All 38 Lines | |||||
39 | { | 39 | { | ||
40 | const QString aName = a.data(Notifications::ApplicationNameRole).toString(); | 40 | const QString aName = a.data(Notifications::ApplicationNameRole).toString(); | ||
41 | const QString bName = b.data(Notifications::ApplicationNameRole).toString(); | 41 | const QString bName = b.data(Notifications::ApplicationNameRole).toString(); | ||
42 | 42 | | |||
43 | const QString aDesktopEntry = a.data(Notifications::DesktopEntryRole).toString(); | 43 | const QString aDesktopEntry = a.data(Notifications::DesktopEntryRole).toString(); | ||
44 | const QString bDesktopEntry = b.data(Notifications::DesktopEntryRole).toString(); | 44 | const QString bDesktopEntry = b.data(Notifications::DesktopEntryRole).toString(); | ||
45 | 45 | | |||
46 | const QString aOriginName = a.data(Notifications::OriginNameRole).toString(); | 46 | const QString aOriginName = a.data(Notifications::OriginNameRole).toString(); | ||
47 | const QString bOriginName = a.data(Notifications::OriginNameRole).toString(); | 47 | const QString bOriginName = b.data(Notifications::OriginNameRole).toString(); | ||
48 | 48 | | |||
49 | return !aName.isEmpty() && aName == bName | 49 | return !aName.isEmpty() && aName == bName | ||
50 | && aDesktopEntry == bDesktopEntry | 50 | && aDesktopEntry == bDesktopEntry | ||
51 | && aOriginName == bOriginName; | 51 | && aOriginName == bOriginName; | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | bool NotificationGroupingProxyModel::isGroup(int row) const | 54 | bool NotificationGroupingProxyModel::isGroup(int row) const | ||
55 | { | 55 | { | ||
▲ Show 20 Lines • Show All 466 Lines • Show Last 20 Lines |