Fix include order to respect the Coding Conventions. Add needed includes to avoid Transitive includes. Remove uneeded classes. Remove QT_{BEGIN,END}_NAMESPACE because these are private Qt macros that should not be used in the examples. Task-number: QTBUG-117064 Pick-to: 6.6 6.5 Change-Id: Ie98d4fbddb18d5578e2651bdb4850527ff984582 Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
16 lines
374 B
C++
16 lines
374 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#include "server.h"
|
|
|
|
#include <QApplication>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
QApplication app(argc, argv);
|
|
QGuiApplication::setApplicationDisplayName(Server::tr("Local Fortune Server"));
|
|
Server server;
|
|
server.show();
|
|
return app.exec();
|
|
}
|