mirror of
https://github.com/Skycoder42/QHotkey.git
synced 2026-11-19 12:49:58 +03:00
init commit
This commit is contained in:
@@ -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
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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
|
||||
@@ -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>
|
||||
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user