mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 23:00:07 +01:00
examples: fix qt demo to work without STL support
The function toStdString() is only available when QT was
compiled with STL support. The configure script does
not check STL support and might build the QT examples
even if toStdString() is not available.
Fix this, by not using the function.
This fixes the previous commit f73e3669b3
that I pushed accidentally.
https://bugzilla.gnome.org/show_bug.cgi?id=727608
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
dac51747ab
commit
2748bcfebf
1 changed files with 2 additions and 2 deletions
|
|
@ -51,13 +51,13 @@ class NMWatcher: public QObject {
|
|||
|
||||
void NMWatcher::serviceRegistered(const QString& name)
|
||||
{
|
||||
std::cout << "Name '" << name.constData() << "' registered"
|
||||
std::cout << "Name '" << name.toUtf8().constData() << "' registered"
|
||||
<< " => NM is running" << std::endl;
|
||||
}
|
||||
|
||||
void NMWatcher::serviceUnregistered(const QString& name)
|
||||
{
|
||||
std::cout << "Name '" << name.constData() << "' unregistered"
|
||||
std::cout << "Name '" << name.toUtf8().constData() << "' unregistered"
|
||||
<< " => NM is not running" << std::endl;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue