initial commit

This commit is contained in:
2019-08-13 09:59:36 +02:00
parent f1e73388e8
commit 510c67db58
5 changed files with 207 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#include "cmainwindow.h"
#include "ui_cmainwindow.h"
cMainWindow::cMainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::cMainWindow)
{
ui->setupUi(this);
}
cMainWindow::~cMainWindow()
{
delete ui;
}
void cMainWindow::on_m_lpLoadListFromFileLeft_triggered(QAction *arg1)
{
}
void cMainWindow::on_m_lpLoadListFromFileRight_triggered(QAction *arg1)
{
}
+27
View File
@@ -0,0 +1,27 @@
#ifndef CMAINWINDOW_H
#define CMAINWINDOW_H
#include <QMainWindow>
namespace Ui {
class cMainWindow;
}
class cMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit cMainWindow(QWidget *parent = nullptr);
~cMainWindow();
private slots:
void on_m_lpLoadListFromFileLeft_triggered(QAction *arg1);
void on_m_lpLoadListFromFileRight_triggered(QAction *arg1);
private:
Ui::cMainWindow *ui;
};
#endif // CMAINWINDOW_H
+105
View File
@@ -0,0 +1,105 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>cMainWindow</class>
<widget class="QMainWindow" name="cMainWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>718</width>
<height>623</height>
</rect>
</property>
<property name="windowTitle">
<string>compareDir</string>
</property>
<widget class="QWidget" name="m_lpCentralWidget">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QToolButton" name="m_lpLoadListFromFileLeft">
<property name="text">
<string>from File</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QTreeView" name="m_lpLeftList"/>
</item>
</layout>
</item>
<item row="0" column="1">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QToolButton" name="m_lpLoadListFromFileRight">
<property name="text">
<string>from File</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="QTreeView" name="m_lpRightList"/>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="m_lpMenuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>718</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QToolBar" name="m_lpMainToolBar">
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
</widget>
<widget class="QStatusBar" name="m_lpStatusBar"/>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>
+40
View File
@@ -0,0 +1,40 @@
#-------------------------------------------------
#
# Project created by QtCreator 2019-08-13T09:42:30
#
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = compareDir
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG += c++11
SOURCES += \
main.cpp \
cmainwindow.cpp
HEADERS += \
cmainwindow.h
FORMS += \
cmainwindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
+12
View File
@@ -0,0 +1,12 @@
#include "cmainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
cMainWindow w;
w.showMaximized();
return a.exec();
}