diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index da45af9..890ac1e 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -8,6 +8,7 @@ set(CMAKE_AUTOMOC ON) qt5_wrap_ui(UI_HEADERS mainwindow.ui + MetaDataWidget.ui ) add_executable(${PROJECT_NAME} @@ -15,6 +16,7 @@ add_executable(${PROJECT_NAME} DataModel.cpp MetaDataModel.cpp mainwindow.cpp + MetaDataWidget.cpp ${UI_HEADERS} ) @@ -24,6 +26,7 @@ set_target_properties(${PROJECT_NAME} target_include_directories(${PROJECT_NAME} PRIVATE + ${CMAKE_CURRENT_LIST_DIR} ${CMAKE_CURRENT_BINARY_DIR} ) diff --git a/source/MetaDataWidget.cpp b/source/MetaDataWidget.cpp new file mode 100644 index 0000000..b0a0fe3 --- /dev/null +++ b/source/MetaDataWidget.cpp @@ -0,0 +1,14 @@ +#include "MetaDataWidget.h" +#include "ui_MetaDataWidget.h" + +MetaDataWidget::MetaDataWidget(QWidget *parent) + : QWidget(parent), ui(new Ui::MetaDataWidget) +{ + ui->setupUi(this); +} + +MetaDataWidget::~MetaDataWidget() +{ + delete ui; +} + diff --git a/source/MetaDataWidget.h b/source/MetaDataWidget.h new file mode 100644 index 0000000..88f46d5 --- /dev/null +++ b/source/MetaDataWidget.h @@ -0,0 +1,19 @@ +#pragma once + +#include + +namespace Ui { +class MetaDataWidget; +}; + +class MetaDataWidget : public QWidget +{ + Q_OBJECT + +private: + Ui::MetaDataWidget *ui; + +public: + MetaDataWidget(QWidget *parent = nullptr); + ~MetaDataWidget(); +}; diff --git a/source/MetaDataWidget.ui b/source/MetaDataWidget.ui new file mode 100644 index 0000000..bac506e --- /dev/null +++ b/source/MetaDataWidget.ui @@ -0,0 +1,77 @@ + + + MetaDataWidget + + + + 0 + 0 + 637 + 269 + + + + Form + + + + + + + + + Untersuchungsdatum + + + + + + + + + + Geburtsdatum + + + + + + + Name, Vorname + + + + + + + + + + Untersucher(in) + + + + + + + + + + + + + + + + Bemerkungen + + + + + + + + + + + diff --git a/source/mainwindow.ui b/source/mainwindow.ui index 21c2d5a..ef91379 100644 --- a/source/mainwindow.ui +++ b/source/mainwindow.ui @@ -71,6 +71,28 @@ + + + + 0 + + + + Allgemein + + + + + + + + + + Tab 2 + + + + @@ -119,6 +141,14 @@ + + + MetaDataWidget + QWidget +
MetaDataWidget.h
+ 1 +
+