summary refs log tree commit diff
path: root/examples/C/qt/monitor-nm-running.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C/qt/monitor-nm-running.cpp')
-rw-r--r--examples/C/qt/monitor-nm-running.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/C/qt/monitor-nm-running.cpp b/examples/C/qt/monitor-nm-running.cpp
index 861f251e..cf597b54 100644
--- a/examples/C/qt/monitor-nm-running.cpp
+++ b/examples/C/qt/monitor-nm-running.cpp
@@ -51,13 +51,13 @@ class NMWatcher: public QObject {
 
 void NMWatcher::serviceRegistered(const QString& name)
 {
-    std::cout << "Name '" << name.toStdString() << "' registered"
+    std::cout << "Name '" << name.toUtf8().constData() << "' registered"
               << " => NM is running" << std::endl;
 }
 
 void NMWatcher::serviceUnregistered(const QString& name)
 {
-    std::cout << "Name '" << name.toStdString() << "' unregistered"
+    std::cout << "Name '" << name.toUtf8().constData() << "' unregistered"
               << " => NM is not running" << std::endl;
 }