mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-26 22:27:06 +08:00
24 lines
561 B
C++
24 lines
561 B
C++
|
// Copyright (C) 2016 The Qt Company Ltd.
|
||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||
|
|
||
|
#include <QApplication>
|
||
|
|
||
|
#include "dragwidget.h"
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QApplication app(argc, argv);
|
||
|
#ifdef QT_KEYPAD_NAVIGATION
|
||
|
QApplication::setNavigationMode(Qt::NavigationModeCursorAuto);
|
||
|
#endif
|
||
|
DragWidget window;
|
||
|
|
||
|
bool smallScreen = QApplication::arguments().contains(QStringLiteral("-small-screen"));
|
||
|
if (smallScreen)
|
||
|
window.showFullScreen();
|
||
|
else
|
||
|
window.show();
|
||
|
|
||
|
return app.exec();
|
||
|
}
|