comparison src/converter.cpp @ 15:03dad1cff5b9

Minor layout fixes
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 22 Mar 2016 17:49:11 +0100
parents 101ee762f021
children df7936065450
comparison
equal deleted inserted replaced
14:256182eca5b6 15:03dad1cff5b9
45 mAnswerChoiceFmt.setTextWarp(true); 45 mAnswerChoiceFmt.setTextWarp(true);
46 46
47 mChoiceTextFmt = mAnswerChoiceFmt; 47 mChoiceTextFmt = mAnswerChoiceFmt;
48 mChoiceTextFmt.setVerticalAlignment(Format::AlignVCenter); 48 mChoiceTextFmt.setVerticalAlignment(Format::AlignVCenter);
49 49
50 mChoiceVotesFmt = mChoiceTextFmt;
51 mChoiceVotesFmt.setFontSize(10);
52 mAnswerChoiceFmt.setHorizontalAlignment(Format::AlignLeft);
53
50 mFreeTextFmt = mQuestionFmt; 54 mFreeTextFmt = mQuestionFmt;
51 mFreeTextFmt.setFontBold(false); 55 mFreeTextFmt.setFontBold(false);
52 56
53 mAnswerTextFmt = mQuestionFmt; 57 mAnswerTextFmt = mQuestionFmt;
54 mAnswerTextFmt.setVerticalAlignment(Format::AlignVCenter); 58 mAnswerTextFmt.setVerticalAlignment(Format::AlignVCenter);
104 xlsx.setColumnWidth(i, colWidth[i-1]); 108 xlsx.setColumnWidth(i, colWidth[i-1]);
105 sum += colWidth[i-1]; 109 sum += colWidth[i-1];
106 } 110 }
107 111
108 /* For the merged cell wordwrap trick. */ 112 /* For the merged cell wordwrap trick. */
109 xlsx.setColumnWidth(26, sum - 1); 113 xlsx.setColumnWidth(26, sum + 1);
110 xlsx.setColumnHidden(26, true); 114 xlsx.setColumnHidden(26, true);
111 115
112 int row = 1; 116 int row = 1;
113 if (!mTitle.isEmpty()) { 117 if (!mTitle.isEmpty()) {
114 // Set the title of the Questionaire 118 // Set the title of the Questionaire
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)