init commit

This commit is contained in:
Skycoder42
2016-02-05 22:03:36 +01:00
parent 4fa20f9e2d
commit 4d71726f03
11 changed files with 707 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
#-------------------------------------------------
#
# Project created by QtCreator 2016-02-05T22:01:03
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = HotkeyTest
TEMPLATE = app
include(../QHotkey/qhotkey.pri)
SOURCES += main.cpp\
hottestwidget.cpp
HEADERS += hottestwidget.h
FORMS += hottestwidget.ui
+14
View File
@@ -0,0 +1,14 @@
#include "hottestwidget.h"
#include "ui_hottestwidget.h"
HotTestWidget::HotTestWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::HotTestWidget)
{
ui->setupUi(this);
}
HotTestWidget::~HotTestWidget()
{
delete ui;
}
+22
View File
@@ -0,0 +1,22 @@
#ifndef HOTTESTWIDGET_H
#define HOTTESTWIDGET_H
#include <QWidget>
namespace Ui {
class HotTestWidget;
}
class HotTestWidget : public QWidget
{
Q_OBJECT
public:
explicit HotTestWidget(QWidget *parent = 0);
~HotTestWidget();
private:
Ui::HotTestWidget *ui;
};
#endif // HOTTESTWIDGET_H
+20
View File
@@ -0,0 +1,20 @@
<ui version="4.0">
<class>HotTestWidget</class>
<widget class="QWidget" name="HotTestWidget" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>HotTestWidget</string>
</property>
</widget>
<layoutDefault spacing="6" margin="11" />
<pixmapfunction></pixmapfunction>
<resources/>
<connections/>
</ui>
+11
View File
@@ -0,0 +1,11 @@
#include "hottestwidget.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
HotTestWidget w;
w.show();
return a.exec();
}