Print akkusativ and dativ model
This commit is contained in:
parent
1695174303
commit
57fe4256e2
@ -128,6 +128,8 @@ void DataModel::printTo(QPrinter &printer) const
|
||||
printer.newPage();
|
||||
painter.resetTransform();
|
||||
|
||||
m_akkusativ.printTo(painter);
|
||||
m_dativ.printTo(painter);
|
||||
m_plural.printTo(painter);
|
||||
|
||||
painter.end();
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "AkkusativModel.h"
|
||||
|
||||
AkkusativModel::AkkusativModel(QObject *parent)
|
||||
: CheckableTestModel(parent)
|
||||
: PrintableModel(parent)
|
||||
{
|
||||
m_tests = {{"Akkusativ Nominalphrase",
|
||||
{"Tiger", "Katze", "Affe", "Gans", "Bär", "Pferd", "Hund", "Elefant"}},
|
||||
@ -105,3 +105,8 @@ void AkkusativModel::write(ESGRAF48::AkkusativModel &model) const
|
||||
futterModel->set_zucker(testItems[7].isChecked());
|
||||
}
|
||||
}
|
||||
|
||||
void AkkusativModel::printHeader(QPainter &painter) const
|
||||
{
|
||||
drawHeader2(painter, "Subtest 4: Akkusativ und Dativ");
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "CheckableTestModel.h"
|
||||
#include "PrintableModel.h"
|
||||
#include "AkkusativModel.pb.h"
|
||||
|
||||
class AkkusativModel : public CheckableTestModel
|
||||
class AkkusativModel : public PrintableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -12,4 +12,7 @@ public:
|
||||
|
||||
void read(const ESGRAF48::AkkusativModel &model);
|
||||
void write(ESGRAF48::AkkusativModel &model) const;
|
||||
|
||||
protected:
|
||||
void printHeader(QPainter &painter) const override;
|
||||
};
|
||||
|
@ -43,9 +43,7 @@ target_include_directories(${PROJECT_NAME}
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PRIVATE
|
||||
CheckableItem
|
||||
CheckableTest
|
||||
CheckableTestModel
|
||||
PrintableModel
|
||||
Qt5::Widgets
|
||||
${Protobuf_LIBRARIES}
|
||||
)
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "DativModel.h"
|
||||
|
||||
DativModel::DativModel(QObject *parent)
|
||||
: CheckableTestModel(parent)
|
||||
: PrintableModel(parent)
|
||||
{
|
||||
m_tests = {{"Dativ Nominalphrase",
|
||||
{"Affe", "Gans", "Tiger", "Hund", "Elefant", "Pferd", "Bär", "Katze"}},
|
||||
|
@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "CheckableTestModel.h"
|
||||
#include "PrintableModel.h"
|
||||
#include "DativModel.pb.h"
|
||||
|
||||
class DativModel : public CheckableTestModel
|
||||
class DativModel : public PrintableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
@ -12,4 +12,7 @@ public:
|
||||
|
||||
void read(const ESGRAF48::DativModel &model);
|
||||
void write(ESGRAF48::DativModel &model) const;
|
||||
|
||||
protected:
|
||||
void printHeader(QPainter &) const override {};
|
||||
};
|
||||
|
Reference in New Issue
Block a user