From 4a1e1b1fcbcd66e47cc3e4bd8876cb6e98abd4c8 Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sat, 23 Jan 2010 00:07:21 +0100 Subject: test program for package qt --- src/qt-test.cpp | 15 ++++++++ src/qt-test.pro | 6 ++++ src/qt-test.ui | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/qt.mk | 6 ++++ 4 files changed, 134 insertions(+) create mode 100644 src/qt-test.cpp create mode 100644 src/qt-test.pro create mode 100644 src/qt-test.ui diff --git a/src/qt-test.cpp b/src/qt-test.cpp new file mode 100644 index 0000000..706082d --- /dev/null +++ b/src/qt-test.cpp @@ -0,0 +1,15 @@ +/* This file is part of mingw-cross-env. */ +/* See doc/index.html or doc/README for further information. */ + +#include +#include "ui_qt-test.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + QMainWindow w; + Ui::MainWindow u; + u.setupUi(&w); + w.show(); + return a.exec(); +} diff --git a/src/qt-test.pro b/src/qt-test.pro new file mode 100644 index 0000000..85d1109 --- /dev/null +++ b/src/qt-test.pro @@ -0,0 +1,6 @@ +# This file is part of mingw-cross-env. +# See doc/index.html or doc/README for further information. + +TARGET = test-qt +SOURCES += qt-test.cpp +FORMS += qt-test.ui diff --git a/src/qt-test.ui b/src/qt-test.ui new file mode 100644 index 0000000..4515072 --- /dev/null +++ b/src/qt-test.ui @@ -0,0 +1,107 @@ + + + + + + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + test-qt + + + + + + + + + + + + test-qt + + + +

test-qt

+

test-qt

+
    +
  1. test-qt
  2. +
  3. test-qt
  4. +
  5. test-qt
  6. +
+ + + ]]> +
+
+
+
+
+
+ + + + 0 + 0 + 400 + 26 + + + + + &File + + + + + + + + + &Quit + + + Ctrl+Q + + + + + + + actionQuit + triggered() + MainWindow + close() + + + -1 + -1 + + + 399 + 299 + + + + +
diff --git a/src/qt.mk b/src/qt.mk index 9aa2cd9..9cf9b3f 100644 --- a/src/qt.mk +++ b/src/qt.mk @@ -135,4 +135,10 @@ define $(PKG)_BUILD '$(TARGET)-ranlib' '$(1)'/lib/*.a rm -rf '$(PREFIX)/$(TARGET)/mkspecs' $(MAKE) -C '$(1)' -j 1 install + + mkdir '$(1)/test-qt' + cp '$(2)'* '$(1)/test-qt/' + cd '$(1)/test-qt' && '$(TARGET)-qmake' + $(MAKE) -C '$(1)/test-qt' -j '$(JOBS)' + $(INSTALL) -m755 '$(1)/test-qt/release/test-qt.exe' '$(PREFIX)/$(TARGET)/bin/' endef -- cgit v0.12