Add sub for main project
This commit is contained in:
parent
b13775a0d5
commit
170a24670d
6 changed files with 96 additions and 0 deletions
24
iFacility/iFacility.pro
Normal file
24
iFacility/iFacility.pro
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
QT += core gui
|
||||||
|
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
|
||||||
|
CONFIG += c++11
|
||||||
|
|
||||||
|
# You can make your code fail to compile if it uses deprecated APIs.
|
||||||
|
# In order to do so, uncomment the following line.
|
||||||
|
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
|
||||||
|
|
||||||
|
SOURCES += \
|
||||||
|
main.cpp \
|
||||||
|
loginwindow.cpp
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
loginwindow.h
|
||||||
|
|
||||||
|
FORMS += \
|
||||||
|
loginwindow.ui
|
||||||
|
|
||||||
|
# Default rules for deployment.
|
||||||
|
qnx: target.path = /tmp/$${TARGET}/bin
|
||||||
|
else: unix:!android: target.path = /opt/$${TARGET}/bin
|
||||||
|
!isEmpty(target.path): INSTALLS += target
|
||||||
15
iFacility/loginwindow.cpp
Normal file
15
iFacility/loginwindow.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
#include "loginwindow.h"
|
||||||
|
#include "ui_loginwindow.h"
|
||||||
|
|
||||||
|
LoginWindow::LoginWindow(QWidget *parent)
|
||||||
|
: QMainWindow(parent)
|
||||||
|
, ui(new Ui::LoginWindow)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
LoginWindow::~LoginWindow()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
21
iFacility/loginwindow.h
Normal file
21
iFacility/loginwindow.h
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
#ifndef LOGINWINDOW_H
|
||||||
|
#define LOGINWINDOW_H
|
||||||
|
|
||||||
|
#include <QMainWindow>
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
|
namespace Ui { class LoginWindow; }
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
|
class LoginWindow : public QMainWindow
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
LoginWindow(QWidget *parent = nullptr);
|
||||||
|
~LoginWindow();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::LoginWindow *ui;
|
||||||
|
};
|
||||||
|
#endif // LOGINWINDOW_H
|
||||||
22
iFacility/loginwindow.ui
Normal file
22
iFacility/loginwindow.ui
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>LoginWindow</class>
|
||||||
|
<widget class="QMainWindow" name="LoginWindow">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>800</width>
|
||||||
|
<height>600</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>LoginWindow</string>
|
||||||
|
</property>
|
||||||
|
<widget class="QWidget" name="centralwidget"/>
|
||||||
|
<widget class="QMenuBar" name="menubar"/>
|
||||||
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
11
iFacility/main.cpp
Normal file
11
iFacility/main.cpp
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#include "loginwindow.h"
|
||||||
|
|
||||||
|
#include <QApplication>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
QApplication a(argc, argv);
|
||||||
|
LoginWindow w;
|
||||||
|
w.show();
|
||||||
|
return a.exec();
|
||||||
|
}
|
||||||
|
|
@ -1 +1,4 @@
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
|
SUBDIRS += \
|
||||||
|
iFacility
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue