changeset 32:ad54c98cb8d8

Minor layout fixes
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 11 Apr 2016 14:33:01 +0200 (2016-04-11)
parents 7bc75b1ff367
children 50dae38a5641
files src/converter.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/converter.cpp	Mon Apr 11 13:37:37 2016 +0200
+++ b/src/converter.cpp	Mon Apr 11 14:33:01 2016 +0200
@@ -65,8 +65,8 @@
     mTitleStyle = QStringLiteral("<tr><td colspan='3' style='vertical-align: top;"
                                  "font-weight: bold; text-decoration:underline; font-size: 18pt;'>"
                                  "%1</td></tr><tr/>");
-    mQuestionStyle = QStringLiteral("<tr><td colspan='3' style='text-decoration: underline;"
-                                    "font-size: 11pt;font-weight: bold;'><hr/>%1<hr/></td></tr>");
+    mQuestionStyle = QStringLiteral("<tr><td colspan='3' style='font-size: 11pt;font-weight: bold;'"
+                                    "><hr/>%1<hr/></td></tr>");
     mAnswerChoiceStyle= QStringLiteral("<tr><td colspan='3' style='text-align: left; font-size: 11pt;'>Answer</td></tr>");
     mChoiceTextStyle= QStringLiteral("<tr><td align='right' style='vertical-align: middle; font-size:11pt;'>%1</td>");
     mChoiceVotesStyle = QStringLiteral("<td style='text-align: left;vertical-algin: center;"
@@ -132,7 +132,7 @@
     qDebug() << "Filled " << rect << " with white";
     doc.addResource(QTextDocument::ImageResource, QUrl(QStringLiteral("internal://bar%1.png").arg(barCnt)),
                     QVariant(image));
-    html << QStringLiteral("<td><img src=\"internal://bar%1.png\"/></td>").arg(barCnt++);
+    html << QStringLiteral("<td style='vertical-align: middle'><img src=\"internal://bar%1.png\"/></td>").arg(barCnt++);
     image.save(QStringLiteral("/tmp/foo.png"));
     return;
 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)