Skip to content

Commit 5301227

Browse files
committed
service/tray: fix compile on qt versions older than 6.8
1 parent ec143d6 commit 5301227

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/services/status_notifier/dbus_item_types.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,10 @@ QDebug operator<<(QDebug debug, const DBusSniTooltip& tooltip) {
121121

122122
return debug;
123123
}
124+
125+
#if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
126+
QDebug operator<<(QDebug debug, const QDBusObjectPath& path) {
127+
debug.nospace() << "QDBusObjectPath(" << path.path() << ")";
128+
return debug;
129+
}
130+
#endif

src/services/status_notifier/dbus_item_types.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ const QDBusArgument& operator<<(QDBusArgument& argument, const DBusSniTooltip& t
3535

3636
QDebug operator<<(QDebug debug, const DBusSniIconPixmap& pixmap);
3737
QDebug operator<<(QDebug debug, const DBusSniTooltip& tooltip);
38+
39+
#if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
40+
QDebug operator<<(QDebug debug, const QDBusObjectPath& path);
41+
#endif

0 commit comments

Comments
 (0)