From d47146fd2bdc5b746c67c724897537868dd2f296 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Wed, 25 May 2011 10:17:28 +0200 Subject: [PATCH] dummy project --- main.cpp | 11 ++++++ mainwindow.cpp | 14 +++++++ mainwindow.h | 22 +++++++++++ mainwindow.ui | 104 +++++++++++++++++++++++++++++++++++++++++++++++++ qtmindmap.pro | 18 +++++++++ 5 files changed, 169 insertions(+) create mode 100644 main.cpp create mode 100644 mainwindow.cpp create mode 100644 mainwindow.h create mode 100644 mainwindow.ui create mode 100644 qtmindmap.pro diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..9ae175b --- /dev/null +++ b/main.cpp @@ -0,0 +1,11 @@ +#include +#include "mainwindow.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/mainwindow.cpp b/mainwindow.cpp new file mode 100644 index 0000000..49d64fc --- /dev/null +++ b/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/mainwindow.h b/mainwindow.h new file mode 100644 index 0000000..c9fd6a9 --- /dev/null +++ b/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/mainwindow.ui b/mainwindow.ui new file mode 100644 index 0000000..14b367a --- /dev/null +++ b/mainwindow.ui @@ -0,0 +1,104 @@ + + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + 0 + 0 + 400 + 23 + + + + + File + + + + + + + + + + + Help + + + + + + + + + TopToolBarArea + + + false + + + + + + New + + + Ctrl+N + + + + + Open + + + Ctrl+O + + + + + Save + + + Ctrl+S + + + + + Quit + + + Ctrl+Q + + + + + About QtMindMap + + + + + Close + + + Ctrl+W + + + + + + + diff --git a/qtmindmap.pro b/qtmindmap.pro new file mode 100644 index 0000000..d0ba429 --- /dev/null +++ b/qtmindmap.pro @@ -0,0 +1,18 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2011-05-24T11:24:26 +# +#------------------------------------------------- + +QT += core gui + +TARGET = qtmindmap +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui