From 486cca968107d9b1d868fa6f2a404c8289d89bf9 Mon Sep 17 00:00:00 2001 From: Pierre Giraud Date: Wed, 21 Jun 2017 09:43:00 +0200 Subject: [PATCH] les fichiers de base --- presqueArriver/main.cpp | 11 +++++++++++ presqueArriver/mainwindow.cpp | 14 ++++++++++++++ presqueArriver/mainwindow.h | 22 ++++++++++++++++++++++ presqueArriver/mainwindow.ui | 24 ++++++++++++++++++++++++ presqueArriver/presqueArriver.pro | 20 ++++++++++++++++++++ 5 files changed, 91 insertions(+), 0 deletions(-) create mode 100644 presqueArriver/main.cpp create mode 100644 presqueArriver/mainwindow.cpp create mode 100644 presqueArriver/mainwindow.h create mode 100644 presqueArriver/mainwindow.ui create mode 100644 presqueArriver/presqueArriver.pro diff --git a/presqueArriver/main.cpp b/presqueArriver/main.cpp new file mode 100644 index 0000000..b48f94e --- /dev/null +++ b/presqueArriver/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/presqueArriver/mainwindow.cpp b/presqueArriver/mainwindow.cpp new file mode 100644 index 0000000..49d64fc --- /dev/null +++ b/presqueArriver/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/presqueArriver/mainwindow.h b/presqueArriver/mainwindow.h new file mode 100644 index 0000000..a3948a9 --- /dev/null +++ b/presqueArriver/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/presqueArriver/mainwindow.ui b/presqueArriver/mainwindow.ui new file mode 100644 index 0000000..6050363 --- /dev/null +++ b/presqueArriver/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + diff --git a/presqueArriver/presqueArriver.pro b/presqueArriver/presqueArriver.pro new file mode 100644 index 0000000..cd9c7e4 --- /dev/null +++ b/presqueArriver/presqueArriver.pro @@ -0,0 +1,20 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2017-06-21T09:41:58 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = presqueArriver +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui -- libgit2 0.21.4