Use central table format for printing
This commit is contained in:
parent
a718113747
commit
6eb585b08c
14 changed files with 48 additions and 64 deletions
|
@ -217,9 +217,7 @@ void ResultModel::printTo(QTextCursor &cursor) const
|
|||
cursor.insertBlock();
|
||||
cursor.insertText("\nProzentränge (PR)");
|
||||
|
||||
QTextTableFormat tableFormat;
|
||||
tableFormat.setCellPadding(2);
|
||||
tableFormat.setCellSpacing(0);
|
||||
QTextTableFormat tableFormat = defaultTableFormat();
|
||||
|
||||
const unsigned int columnCount = 10;
|
||||
|
||||
|
|
|
@ -1,12 +1,13 @@
|
|||
#pragma once
|
||||
|
||||
#include "../PrintableModel.h"
|
||||
#include "Age.h"
|
||||
#include "TestResult.h"
|
||||
|
||||
#include <QAbstractTableModel>
|
||||
#include <QTextCursor>
|
||||
|
||||
class ResultModel : public QAbstractTableModel
|
||||
class ResultModel : public QAbstractTableModel, protected PrintableModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
@ -36,5 +37,5 @@ public:
|
|||
void setPassivResult(unsigned int points);
|
||||
void setGenitivResult(unsigned int points);
|
||||
|
||||
void printTo(QTextCursor &cursor) const;
|
||||
void printTo(QTextCursor &cursor) const override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue