diff options
author | David Skoland <david.skoland@qt.io> | 2021-01-08 12:57:47 +0100 |
---|---|---|
committer | David Skoland <david.skoland@qt.io> | 2021-01-12 09:19:27 +0100 |
commit | 9e09677c1dd4da92735736a0fbcb703416bf4d6d (patch) | |
tree | ac921250db4b53b20101dd5f1aa0f3e9c83db8a2 /examples/dbus/pingpong/pong.cpp | |
parent | 6a3f8cbc3ad47d8585aac25d3775ed2350afe20c (diff) |
Remove QtDBus includes
Per the discussion of QTBUG-88831, we determined that module-wide
imports are unfortunate, especially for compile times. Following this,
all QtDBus includes have been replaced with the headers for the classes
actually used in each file. Additionally, some cleanup of header file
order and format has been performed in the changed files.
Pick-to: 6.0
Change-Id: I62c1b75682a48422f0ba1168dd5d7bd0952808ac
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'examples/dbus/pingpong/pong.cpp')
-rw-r--r-- | examples/dbus/pingpong/pong.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/examples/dbus/pingpong/pong.cpp b/examples/dbus/pingpong/pong.cpp index e1e362f218..37f6261142 100644 --- a/examples/dbus/pingpong/pong.cpp +++ b/examples/dbus/pingpong/pong.cpp @@ -48,16 +48,17 @@ ** ****************************************************************************/ -#include <stdio.h> -#include <stdlib.h> - -#include <QtCore/QCoreApplication> -#include <QtCore/QTimer> -#include <QtDBus/QtDBus> - #include "ping-common.h" #include "pong.h" +#include <QCoreApplication> +#include <QDBusConnection> +#include <QDBusError> +#include <QTimer> + +#include <stdio.h> +#include <stdlib.h> + QString Pong::ping(const QString &arg) { QMetaObject::invokeMethod(QCoreApplication::instance(), "quit"); |