summaryrefslogtreecommitdiffstats
path: root/tests/auto/cmake/linguist/test_i18n_filter_autogen_files/app1/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cmake/linguist/test_i18n_filter_autogen_files/app1/main.cpp')
-rw-r--r--tests/auto/cmake/linguist/test_i18n_filter_autogen_files/app1/main.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/auto/cmake/linguist/test_i18n_filter_autogen_files/app1/main.cpp b/tests/auto/cmake/linguist/test_i18n_filter_autogen_files/app1/main.cpp
new file mode 100644
index 000000000..21db50503
--- /dev/null
+++ b/tests/auto/cmake/linguist/test_i18n_filter_autogen_files/app1/main.cpp
@@ -0,0 +1,27 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include <QtCore/QCoreApplication>
+
+#include "ui_mainwindow.h"
+
+class MyObject : public QObject
+{
+ Q_OBJECT
+public:
+ MyObject(QObject *parent = nullptr)
+ : QObject(parent)
+ {
+ qDebug() << tr("Hello from app1!");
+ }
+};
+
+int main(int argc, char *argv[])
+{
+ QCoreApplication app(argc, argv);
+ MyObject obj;
+ Ui::MainWindow wnd;
+ app.exec();
+}
+
+#include "main.moc"