Modifications permettant la compilation de QElectroTech sur architecture ARM.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@749 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2009-09-12 10:17:44 +00:00
parent 3ea8efbb1e
commit bcdc0138ce
5 changed files with 12 additions and 12 deletions

View File

@@ -86,7 +86,7 @@ QPointF ElementTextItem::pos() const {
*/
void ElementTextItem::fromXml(const QDomElement &e) {
QPointF _pos = pos();
if (qFuzzyCompare(e.attribute("x").toDouble(), _pos.x()) && qFuzzyCompare(e.attribute("y").toDouble(), _pos.y())) {
if (qFuzzyCompare(qreal(e.attribute("x").toDouble()), _pos.x()) && qFuzzyCompare(qreal(e.attribute("y").toDouble()), _pos.y())) {
setPlainText(e.attribute("text"));
previous_text = e.attribute("text");
}