blob: 1da4f9f5dded595ec05aa3523d043960e6197b03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include "chat.h"
#include <QLoggingCategory>
#include <QApplication>
using namespace Qt::StringLiterals;
int main(int argc, char *argv[])
{
// QLoggingCategory::setFilterRules(QStringLiteral("qt.bluetooth* = true"));
QApplication app(argc, argv);
QIcon::setThemeName(u"btchat"_s);
Chat d;
QObject::connect(&d, &Chat::accepted, &app, &QApplication::quit);
#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS)
d.showMaximized();
#else
d.show();
#endif
app.exec();
return 0;
}
|