diff --git a/widgets/lineedit.cpp b/widgets/lineedit.cpp index 39327d32d..91d8ecdd2 100644 --- a/widgets/lineedit.cpp +++ b/widgets/lineedit.cpp @@ -20,6 +20,8 @@ #include "lineedit.h" +#include + #include #include #include @@ -140,7 +142,9 @@ QSizeF LineEdit::minimumSize() const QSizeF LineEdit::maximumSize() const { - return minimumSize(); + //TODO: well, this is useless, isn't it? ;) when ported to WoC, remove it + return QSizeF(std::numeric_limits::infinity(), + std::numeric_limits::infinity()); } bool LineEdit::hasHeightForWidth() const @@ -153,7 +157,7 @@ qreal LineEdit::heightForWidth(qreal w) const QTextDocument* doc = document(); doc->setTextWidth(w); qreal height = doc->size().height(); - kDebug() << "LineEdit::heightForWidth(" << w << ") is " << height; + //kDebug() << "LineEdit::heightForWidth(" << w << ") is " << height; return height; }