aboutsummaryrefslogtreecommitdiffstats
path: root/src/macextras/qmacfunctions_mac.mm
diff options
context:
space:
mode:
Diffstat (limited to 'src/macextras/qmacfunctions_mac.mm')
-rw-r--r--src/macextras/qmacfunctions_mac.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/macextras/qmacfunctions_mac.mm b/src/macextras/qmacfunctions_mac.mm
index 88ebb61..38f941f 100644
--- a/src/macextras/qmacfunctions_mac.mm
+++ b/src/macextras/qmacfunctions_mac.mm
@@ -45,6 +45,8 @@
#include "qmacfunctions.h"
#include "qmacfunctions_p.h"
+#include <QtCore/QString>
+
#if QT_VERSION > QT_VERSION_CHECK(5, 0, 0)
#include <QtGui/QWindow>
#include <QtWidgets/QMenu>
@@ -104,7 +106,7 @@ CGContextRef currentCGContext()
*/
void setBadgeLabelText(const QString &text)
{
- [[[NSApplication sharedApplication] dockTile] setBadgeLabel:toNSString(text)];
+ [[[NSApplication sharedApplication] dockTile] setBadgeLabel:text.toNSString()];
}
/*!
@@ -114,7 +116,7 @@ void setBadgeLabelText(const QString &text)
*/
QString badgeLabelText()
{
- return fromNSString([[[NSApplication sharedApplication] dockTile] badgeLabel]);
+ return QString::fromNSString([[[NSApplication sharedApplication] dockTile] badgeLabel]);
}
} // namespace QtMac