summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2017-09-27 15:39:39 (GMT)
committerDenis Shienkov <denis.shienkov@gmail.com>2017-10-05 06:43:57 (GMT)
commit2cc09578947ee65dc502d5097d4553b696d91c9b (patch)
tree7f794ddd5f1556def932606002579887b51a1ad5
parent60efa7c9a2d393d5c7e48f1e0dcb26b6effa4e5d (diff)
downloadqtserialport-2cc09578947ee65dc502d5097d4553b696d91c9b.tar.gz
Revamp the Enumerator Example
* Update includes to common style. * Remove QT_USE_NAMESPACE macro. Task-number: QTBUG-60652 Change-Id: Ic8860e7e6d0fa320e251e02f3d294845c662a8d0 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--examples/serialport/enumerator/main.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/serialport/enumerator/main.cpp b/examples/serialport/enumerator/main.cpp
index d7622a2..fef1ce0 100644
--- a/examples/serialport/enumerator/main.cpp
+++ b/examples/serialport/enumerator/main.cpp
@@ -50,13 +50,11 @@
****************************************************************************/
#include <QApplication>
-#include <QWidget>
-#include <QVBoxLayout>
#include <QLabel>
#include <QScrollArea>
-#include <QtSerialPort/QSerialPortInfo>
-
-QT_USE_NAMESPACE
+#include <QSerialPortInfo>
+#include <QVBoxLayout>
+#include <QWidget>
int main(int argc, char *argv[])
{