Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/helper/kill.cpp
Show All 18 Lines | |||||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | #include <QApplication> | 21 | #include <QApplication> | ||
22 | #include <QEventLoop> | 22 | #include <QEventLoop> | ||
23 | #include <QTimer> | 23 | #include <QTimer> | ||
24 | #include <QWidget> | 24 | #include <QWidget> | ||
25 | #include <unistd.h> | 25 | #include <unistd.h> | ||
26 | 26 | | |||
27 | #include <signal.h> | 27 | #include <csignal> | ||
28 | 28 | | |||
29 | int main(int argc, char *argv[]) | 29 | int main(int argc, char *argv[]) | ||
30 | { | 30 | { | ||
31 | qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("wayland")); | 31 | qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("wayland")); | ||
32 | QApplication app(argc, argv); | 32 | QApplication app(argc, argv); | ||
33 | QWidget w; | 33 | QWidget w; | ||
34 | w.setGeometry(QRect(0, 0, 100, 200)); | 34 | w.setGeometry(QRect(0, 0, 100, 200)); | ||
35 | w.show(); | 35 | w.show(); | ||
Show All 11 Lines |