service/tray: fix compile on qt versions older than 6.8

This commit is contained in:
outfoxxed 2024-11-22 15:35:21 -08:00
parent ec143d6119
commit 5301227ec1
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 11 additions and 0 deletions

View file

@ -121,3 +121,10 @@ QDebug operator<<(QDebug debug, const DBusSniTooltip& tooltip) {
return debug;
}
#if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
QDebug operator<<(QDebug debug, const QDBusObjectPath& path) {
debug.nospace() << "QDBusObjectPath(" << path.path() << ")";
return debug;
}
#endif

View file

@ -35,3 +35,7 @@ const QDBusArgument& operator<<(QDBusArgument& argument, const DBusSniTooltip& t
QDebug operator<<(QDebug debug, const DBusSniIconPixmap& pixmap);
QDebug operator<<(QDebug debug, const DBusSniTooltip& tooltip);
#if QT_VERSION < QT_VERSION_CHECK(6, 8, 0)
QDebug operator<<(QDebug debug, const QDBusObjectPath& path);
#endif