28 lines
542 B
C++
28 lines
542 B
C++
// Copyright (C) 2017 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#include "chat.h"
|
|
|
|
#include <QtWidgets/qapplication.h>
|
|
#include <QtCore/QLoggingCategory>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
// QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
|
|
QApplication app(argc, argv);
|
|
|
|
Chat d;
|
|
QObject::connect(&d, &Chat::accepted, &app, &QApplication::quit);
|
|
|
|
#ifdef Q_OS_ANDROID
|
|
d.showMaximized();
|
|
#else
|
|
d.show();
|
|
#endif
|
|
|
|
app.exec();
|
|
|
|
return 0;
|
|
}
|
|
|