comparison src/converter.cpp @ 73:a9bc9f907fcd

Remove overly verbose debug output
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 04 Oct 2016 17:11:17 +0200
parents 7e195eacb0da
children 9a2e35a7c19c
comparison
equal deleted inserted replaced
72:d545e5cb2b72 73:a9bc9f907fcd
125 if (percent) { 125 if (percent) {
126 rect.setRight(rect.right() / (100. / percent)); 126 rect.setRight(rect.right() / (100. / percent));
127 painter.fillRect(rect, QColor(BAR_COLOR)); 127 painter.fillRect(rect, QColor(BAR_COLOR));
128 rect.setLeft(rect.right()); 128 rect.setLeft(rect.right());
129 } 129 }
130 qDebug() << "Filled " << rect << " with color";
131 rect.setRight(IMAGE_WIDTH); 130 rect.setRight(IMAGE_WIDTH);
132 painter.fillRect(rect, Qt::white); 131 painter.fillRect(rect, Qt::white);
133 qDebug() << "Filled " << rect << " with white";
134 doc.addResource(QTextDocument::ImageResource, QUrl(QStringLiteral("internal://bar%1.png").arg((int)percent)), 132 doc.addResource(QTextDocument::ImageResource, QUrl(QStringLiteral("internal://bar%1.png").arg((int)percent)),
135 QVariant(image)); 133 QVariant(image));
136 html << QStringLiteral("<td style='vertical-align: middle'><img src=\"internal://bar%1.png\"/></td>").arg((int)percent); 134 html << QStringLiteral("<td style='vertical-align: middle'><img src=\"internal://bar%1.png\"/></td>").arg((int)percent);
137 return; 135 return;
138 } 136 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)