From 498830a97001a793c12aef3d011c5374a05b4a83 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Tue, 12 Jan 2016 12:00:25 +0100 Subject: mv yocto examples into example dir Signed-off-by: Manuel Traut --- .../helloqt/files/helloqt-1.0.tar.bz2 | Bin 0 -> 3340 bytes .../helloqt/files/helloqt-1.0/helloqt.pro | 25 +++++++++++++++++++++ .../helloqt/files/helloqt-1.0/main.cpp | 11 +++++++++ .../helloqt/files/helloqt-1.0/mainwindow.cpp | 14 ++++++++++++ .../helloqt/files/helloqt-1.0/mainwindow.h | 22 ++++++++++++++++++ .../helloqt/files/helloqt-1.0/mainwindow.ui | 24 ++++++++++++++++++++ .../meta-mini/recipes-hello/helloqt/helloqt_1.0.bb | 14 ++++++++++++ 7 files changed, 110 insertions(+) create mode 100644 examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0.tar.bz2 create mode 100644 examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/helloqt.pro create mode 100644 examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/main.cpp create mode 100644 examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.cpp create mode 100644 examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.h create mode 100644 examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.ui create mode 100644 examples/yocto/meta-mini/recipes-hello/helloqt/helloqt_1.0.bb (limited to 'examples/yocto/meta-mini/recipes-hello/helloqt') diff --git a/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0.tar.bz2 b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0.tar.bz2 new file mode 100644 index 0000000..4ac91e9 Binary files /dev/null and b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0.tar.bz2 differ diff --git a/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/helloqt.pro b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/helloqt.pro new file mode 100644 index 0000000..c3cfcc0 --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/helloqt.pro @@ -0,0 +1,25 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2013-06-04T20:56:37 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = helloqt +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui + +target.path = /opt/helloqt +target.files = helloqt + +INSTALLS += target diff --git a/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/main.cpp b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/main.cpp new file mode 100644 index 0000000..9e2d83c --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.cpp b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.cpp new file mode 100644 index 0000000..49d64fc --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.h b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.h new file mode 100644 index 0000000..112fda1 --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.ui b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.ui new file mode 100644 index 0000000..6050363 --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/helloqt/files/helloqt-1.0/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + diff --git a/examples/yocto/meta-mini/recipes-hello/helloqt/helloqt_1.0.bb b/examples/yocto/meta-mini/recipes-hello/helloqt/helloqt_1.0.bb new file mode 100644 index 0000000..e9d7b90 --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/helloqt/helloqt_1.0.bb @@ -0,0 +1,14 @@ +DESCRIPTION = "helloqt QT example" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +SECTION = "examples" +SRC_URI = "file://${BPN}-${PV}.tar.bz2" + +inherit qt4e + +PR = "r4" + +do_install() { + install -d ${D}${bindir} + install -m 0755 helloqt ${D}${bindir} +} -- cgit v1.2.3