From ee26284ec35084bb00e2b0d0592d9dedb23535f4 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Fri, 22 Feb 2008 19:40:46 +0000 Subject: [PATCH] fix maximum size in lieu of the WoC porting svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=778192 --- widgets/lineedit.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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; }