added dummy result widget to main window

This commit is contained in:
mandlm 2018-06-06 10:17:19 +02:00
parent f7e0ae9c84
commit 2c0a7c1388
6 changed files with 99 additions and 1 deletions

View File

@ -42,6 +42,7 @@ target_link_libraries(${PROJECT_NAME}
VerbEnd
Plural
Genus
ResultWidget
Qt5::Widgets
)
@ -51,3 +52,5 @@ add_subdirectory(CheckableTestModel)
add_subdirectory(MetaData)
add_subdirectory(SubTests)
add_subdirectory(ResultWidget)

View 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
)

View 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;
}

View 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();
};

View 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>

View File

@ -62,6 +62,9 @@
</widget>
</widget>
</item>
<item>
<widget class="ResultWidget" name="resultWidget" native="true"/>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
@ -70,7 +73,7 @@
<x>0</x>
<y>0</y>
<width>905</width>
<height>19</height>
<height>17</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
@ -185,6 +188,12 @@
<header>PluralWidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ResultWidget</class>
<extends>QWidget</extends>
<header>ResultWidget.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources>
<include location="mainwindow.qrc"/>