comparison src/converter.cpp @ 32:ad54c98cb8d8

Minor layout fixes
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 11 Apr 2016 14:33:01 +0200
parents 5acd601356ba
children ca66763b6524
comparison
equal deleted inserted replaced
31:7bc75b1ff367 32:ad54c98cb8d8
63 mAnswerTextFmt.setHorizontalAlignment(Format::AlignLeft); 63 mAnswerTextFmt.setHorizontalAlignment(Format::AlignLeft);
64 64
65 mTitleStyle = QStringLiteral("<tr><td colspan='3' style='vertical-align: top;" 65 mTitleStyle = QStringLiteral("<tr><td colspan='3' style='vertical-align: top;"
66 "font-weight: bold; text-decoration:underline; font-size: 18pt;'>" 66 "font-weight: bold; text-decoration:underline; font-size: 18pt;'>"
67 "%1</td></tr><tr/>"); 67 "%1</td></tr><tr/>");
68 mQuestionStyle = QStringLiteral("<tr><td colspan='3' style='text-decoration: underline;" 68 mQuestionStyle = QStringLiteral("<tr><td colspan='3' style='font-size: 11pt;font-weight: bold;'"
69 "font-size: 11pt;font-weight: bold;'><hr/>%1<hr/></td></tr>"); 69 "><hr/>%1<hr/></td></tr>");
70 mAnswerChoiceStyle= QStringLiteral("<tr><td colspan='3' style='text-align: left; font-size: 11pt;'>Answer</td></tr>"); 70 mAnswerChoiceStyle= QStringLiteral("<tr><td colspan='3' style='text-align: left; font-size: 11pt;'>Answer</td></tr>");
71 mChoiceTextStyle= QStringLiteral("<tr><td align='right' style='vertical-align: middle; font-size:11pt;'>%1</td>"); 71 mChoiceTextStyle= QStringLiteral("<tr><td align='right' style='vertical-align: middle; font-size:11pt;'>%1</td>");
72 mChoiceVotesStyle = QStringLiteral("<td style='text-align: left;vertical-algin: center;" 72 mChoiceVotesStyle = QStringLiteral("<td style='text-align: left;vertical-algin: center;"
73 "font-size:10pt;'</td>%1</td></tr>"); 73 "font-size:10pt;'</td>%1</td></tr>");
74 mAnswerTextStyle = QStringLiteral("<tr><td colspan='3' style='font-weight: bold;vertical-algin: middle;" 74 mAnswerTextStyle = QStringLiteral("<tr><td colspan='3' style='font-weight: bold;vertical-algin: middle;"
130 rect.setRight(width); 130 rect.setRight(width);
131 painter.fillRect(rect, Qt::white); 131 painter.fillRect(rect, Qt::white);
132 qDebug() << "Filled " << rect << " with white"; 132 qDebug() << "Filled " << rect << " with white";
133 doc.addResource(QTextDocument::ImageResource, QUrl(QStringLiteral("internal://bar%1.png").arg(barCnt)), 133 doc.addResource(QTextDocument::ImageResource, QUrl(QStringLiteral("internal://bar%1.png").arg(barCnt)),
134 QVariant(image)); 134 QVariant(image));
135 html << QStringLiteral("<td><img src=\"internal://bar%1.png\"/></td>").arg(barCnt++); 135 html << QStringLiteral("<td style='vertical-align: middle'><img src=\"internal://bar%1.png\"/></td>").arg(barCnt++);
136 image.save(QStringLiteral("/tmp/foo.png")); 136 image.save(QStringLiteral("/tmp/foo.png"));
137 return; 137 return;
138 } 138 }
139 139
140 void Converter::convertToXSLX(QTextStream& instream, QFile &output) 140 void Converter::convertToXSLX(QTextStream& instream, QFile &output)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)