Print formatting
This commit is contained in:
parent
bf963adeb5
commit
bf08d0c5e4
2 changed files with 11 additions and 1 deletions
|
@ -65,8 +65,10 @@ void DataModel::printTo(QTextCursor &cursor) const
|
|||
QTextCharFormat titleFormat;
|
||||
titleFormat.setFontPointSize(18);
|
||||
cursor.insertText("ESGRAF 4-8 Auswertungsbogen", titleFormat);
|
||||
cursor.insertText("\n", titleFormat);
|
||||
|
||||
m_metaData.printTo(cursor);
|
||||
cursor.insertText("\n", titleFormat);
|
||||
m_v2Svk.printTo(cursor);
|
||||
}
|
||||
|
||||
|
|
|
@ -206,7 +206,15 @@ void V2SvkModel::printTo(QTextCursor &cursor) const
|
|||
|
||||
QTextCharFormat headerFormat;
|
||||
headerFormat.setFontPointSize(12);
|
||||
cursor.insertText("Subtest 1: Verbzweitstellungsregel (V2) und Subjekt-Verb-Kontrollregel (SVK)", headerFormat);
|
||||
cursor.insertText(
|
||||
"Subtest 1: Verbzweitstellungsregel (V2) und Subjekt-Verb-Kontrollregel (SVK)",
|
||||
headerFormat);
|
||||
|
||||
QTextTableFormat tableFormat;
|
||||
tableFormat.setCellPadding(2);
|
||||
tableFormat.setCellSpacing(0);
|
||||
|
||||
QTextTable *table = cursor.insertTable(1, 1, tableFormat);
|
||||
|
||||
cursor.movePosition(QTextCursor::NextBlock);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue