added dummy result widget to main window
This commit is contained in:
parent
f7e0ae9c84
commit
2c0a7c1388
@ -42,6 +42,7 @@ target_link_libraries(${PROJECT_NAME}
|
|||||||
VerbEnd
|
VerbEnd
|
||||||
Plural
|
Plural
|
||||||
Genus
|
Genus
|
||||||
|
ResultWidget
|
||||||
Qt5::Widgets
|
Qt5::Widgets
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,3 +52,5 @@ add_subdirectory(CheckableTestModel)
|
|||||||
|
|
||||||
add_subdirectory(MetaData)
|
add_subdirectory(MetaData)
|
||||||
add_subdirectory(SubTests)
|
add_subdirectory(SubTests)
|
||||||
|
|
||||||
|
add_subdirectory(ResultWidget)
|
||||||
|
33
source/ResultWidget/CMakeLists.txt
Normal file
33
source/ResultWidget/CMakeLists.txt
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
cmake_minimum_required(VERSION 3.6)
|
||||||
|
|
||||||
|
project(ResultWidget LANGUAGES CXX)
|
||||||
|
|
||||||
|
find_package(Qt5Widgets REQUIRED)
|
||||||
|
|
||||||
|
set(CMAKE_AUTOMOC ON)
|
||||||
|
|
||||||
|
qt5_wrap_ui(GENUS_UI
|
||||||
|
ResultWidget.ui
|
||||||
|
)
|
||||||
|
|
||||||
|
add_library(${PROJECT_NAME}
|
||||||
|
ResultWidget.cpp
|
||||||
|
#ResultModel.cpp
|
||||||
|
${GENUS_UI}
|
||||||
|
)
|
||||||
|
|
||||||
|
set_target_properties(${PROJECT_NAME}
|
||||||
|
PROPERTIES CXX_STANDARD 14
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(${PROJECT_NAME}
|
||||||
|
PUBLIC
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
PRIVATE
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
)
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME}
|
||||||
|
PRIVATE
|
||||||
|
Qt5::Widgets
|
||||||
|
)
|
14
source/ResultWidget/ResultWidget.cpp
Normal file
14
source/ResultWidget/ResultWidget.cpp
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#include "ResultWidget.h"
|
||||||
|
#include "ui_ResultWidget.h"
|
||||||
|
|
||||||
|
ResultWidget::ResultWidget(QWidget *parent)
|
||||||
|
: QWidget(parent)
|
||||||
|
, ui(new Ui::ResultWidget)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
ResultWidget::~ResultWidget()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
19
source/ResultWidget/ResultWidget.h
Normal file
19
source/ResultWidget/ResultWidget.h
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class ResultWidget;
|
||||||
|
};
|
||||||
|
|
||||||
|
class ResultWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::ResultWidget *ui;
|
||||||
|
|
||||||
|
public:
|
||||||
|
ResultWidget(QWidget *parent = nullptr);
|
||||||
|
~ResultWidget();
|
||||||
|
};
|
20
source/ResultWidget/ResultWidget.ui
Normal file
20
source/ResultWidget/ResultWidget.ui
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>ResultWidget</class>
|
||||||
|
<widget class="QWidget" name="ResultWidget">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>556</width>
|
||||||
|
<height>210</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Form</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout"/>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
@ -62,6 +62,9 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="ResultWidget" name="resultWidget" native="true"/>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenuBar" name="menubar">
|
<widget class="QMenuBar" name="menubar">
|
||||||
@ -70,7 +73,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>905</width>
|
<width>905</width>
|
||||||
<height>19</height>
|
<height>17</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menuFile">
|
<widget class="QMenu" name="menuFile">
|
||||||
@ -185,6 +188,12 @@
|
|||||||
<header>PluralWidget.h</header>
|
<header>PluralWidget.h</header>
|
||||||
<container>1</container>
|
<container>1</container>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
|
<customwidget>
|
||||||
|
<class>ResultWidget</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header>ResultWidget.h</header>
|
||||||
|
<container>1</container>
|
||||||
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="mainwindow.qrc"/>
|
<include location="mainwindow.qrc"/>
|
||||||
|
Reference in New Issue
Block a user