From 4be32966bdb5d31b67c34e97dd419de01d385fcf Mon Sep 17 00:00:00 2001 From: Felipe Date: Tue, 29 Sep 2009 18:33:02 -0300 Subject: [PATCH] Initial commit, just the project skell Signed-off-by: Felipe Zimmerle --- slock.pro | 12 ++++++++++++ src/main.cpp | 10 ++++++++++ src/mainwindow.cpp | 17 +++++++++++++++++ src/mainwindow.h | 15 +++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 slock.pro create mode 100644 src/main.cpp create mode 100644 src/mainwindow.cpp create mode 100644 src/mainwindow.h diff --git a/slock.pro b/slock.pro new file mode 100644 index 0000000..c12fbfc --- /dev/null +++ b/slock.pro @@ -0,0 +1,12 @@ +###################################################################### +# Automatically generated by qmake (2.01a) Tue Sep 29 18:01:27 2009 +###################################################################### + +TEMPLATE = app +TARGET = slock +DEPENDPATH += . src +INCLUDEPATH += . src + +# Input +HEADERS += src/mainwindow.h +SOURCES += src/main.cpp src/mainwindow.cpp diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..6e7efd9 --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,10 @@ +#include +#include "mainwindow.h" + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + return a.exec(); +} diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp new file mode 100644 index 0000000..3bb2417 --- /dev/null +++ b/src/mainwindow.cpp @@ -0,0 +1,17 @@ +#include "mainwindow.h" + +#include + +MainWindow::MainWindow(QWidget *parent) + : QMainWindow(parent) +{ +#ifdef MAEMO + showFullScreen(); +#endif + qDebug() << "Trying to grab all inputs."; +} + +MainWindow::~MainWindow() +{ + +} diff --git a/src/mainwindow.h b/src/mainwindow.h new file mode 100644 index 0000000..40c9649 --- /dev/null +++ b/src/mainwindow.h @@ -0,0 +1,15 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + MainWindow(QWidget *parent = 0); + ~MainWindow(); +}; + +#endif // MAINWINDOW_H -- 1.7.9.5