Debian Codegraph @

tests/manual/examples/widgets/draganddrop/fridgemagnets/main.cpp

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4 #include <QApplication>
5
6 #include "dragwidget.h"
7
8 int main(int argc, char *argv[])
9 {
10 QApplication app(argc, argv);
11 #ifdef QT_KEYPAD_NAVIGATION
12 QApplication::setNavigationMode(Qt::NavigationModeCursorAuto);
13 #endif
14 DragWidget window;
15
16 bool smallScreen = QApplication::arguments().contains(QStringLiteral("-small-screen"));
17 if (smallScreen)
18 window.showFullScreen();
19 else
20 window.show();
21
22 return app.exec();
23 }