comparison src/converter.cpp @ 20:df7936065450

Add default title
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 30 Mar 2016 16:56:18 +0200
parents 03dad1cff5b9
children 0b66b10a287d
comparison
equal deleted inserted replaced
19:4ecb91aaf33f 20:df7936065450
115 115
116 int row = 1; 116 int row = 1;
117 if (!mTitle.isEmpty()) { 117 if (!mTitle.isEmpty()) {
118 // Set the title of the Questionaire 118 // Set the title of the Questionaire
119 xlsx.write(row++, 1, mTitle, mTitleFmt); 119 xlsx.write(row++, 1, mTitle, mTitleFmt);
120 xlsx.mergeCells("A1:C1"); 120 } else {
121 xlsx.setRowHeight(1, TITLE_ROW_HEIGHT); 121 xlsx.write(row++, 1, DEFAULT_TITLE, mTitleFmt);
122 } 122 }
123 xlsx.mergeCells("A1:C1");
124 xlsx.setRowHeight(1, TITLE_ROW_HEIGHT);
123 125
124 const QString input = instream.readAll(); 126 const QString input = instream.readAll();
125 127
126 QRegularExpression questionEx(QUESTION_PATTERN); 128 QRegularExpression questionEx(QUESTION_PATTERN);
127 QRegularExpression choiceEx(CHOICE_PATTERN); 129 QRegularExpression choiceEx(CHOICE_PATTERN);
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)