Initial commit
authorTorste Aikio <zokier@zokier-laptop.(none)>
Wed, 19 May 2010 06:32:33 +0000 (09:32 +0300)
committerTorste Aikio <zokier@zokier-laptop.(none)>
Wed, 19 May 2010 06:32:33 +0000 (09:32 +0300)
.gitignore [new file with mode: 0644]
src/main.cpp [new file with mode: 0644]
src/mainwidget.cpp [new file with mode: 0644]
src/mainwidget.h [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..616bbbf
--- /dev/null
@@ -0,0 +1,5 @@
+*.swp
+*.o
+moc_*
+qrc_*
+
diff --git a/src/main.cpp b/src/main.cpp
new file mode 100644 (file)
index 0000000..6ecb2a3
--- /dev/null
@@ -0,0 +1,12 @@
+#include <QApplication>
+
+#include <mainwidget.h>
+
+int main(int argc, char *argv[])
+{
+    QApplication app(argc, argv);
+    MainWidget widget;
+    widget.show();
+    return app.exec();
+}
+
diff --git a/src/mainwidget.cpp b/src/mainwidget.cpp
new file mode 100644 (file)
index 0000000..eccad5d
--- /dev/null
@@ -0,0 +1,10 @@
+#include "mainwidget.h"
+
+#include <QGridLayout>
+
+MainWidget::MainWidget (QWidget *parent)
+    : QWidget(parent)
+{
+    layout = new QGridLayout(this);
+}
+
diff --git a/src/mainwidget.h b/src/mainwidget.h
new file mode 100644 (file)
index 0000000..6475818
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef MAINWIDGET_H
+#define MAINWIDGET_H
+
+class MainWidget : public QWidget
+{
+    Q_OBJECT
+public:
+    MainWidget (QWidget *parent = NULL);
+
+private:
+    QLayout *layout;
+}
+
+#endif
+