Print formatting

This commit is contained in:
mandlm 2018-11-28 22:39:51 +01:00
parent bf963adeb5
commit bf08d0c5e4
2 changed files with 11 additions and 1 deletions

View File

@ -65,8 +65,10 @@ void DataModel::printTo(QTextCursor &cursor) const
QTextCharFormat titleFormat; QTextCharFormat titleFormat;
titleFormat.setFontPointSize(18); titleFormat.setFontPointSize(18);
cursor.insertText("ESGRAF 4-8 Auswertungsbogen", titleFormat); cursor.insertText("ESGRAF 4-8 Auswertungsbogen", titleFormat);
cursor.insertText("\n", titleFormat);
m_metaData.printTo(cursor); m_metaData.printTo(cursor);
cursor.insertText("\n", titleFormat);
m_v2Svk.printTo(cursor); m_v2Svk.printTo(cursor);
} }

View File

@ -206,7 +206,15 @@ void V2SvkModel::printTo(QTextCursor &cursor) const
QTextCharFormat headerFormat; QTextCharFormat headerFormat;
headerFormat.setFontPointSize(12); 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); cursor.movePosition(QTextCursor::NextBlock);
} }