From d073d8c9992e601e0b39b9fd5dca2cf0384cd82a Mon Sep 17 00:00:00 2001 From: chani Date: Fri, 28 Mar 2008 19:43:17 +0000 Subject: [PATCH] comments++ git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdebase@791229 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- workspace/libs/plasma/widgets/lineedit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/workspace/libs/plasma/widgets/lineedit.h b/workspace/libs/plasma/widgets/lineedit.h index e67c5071e8..8621fef9a0 100644 --- a/workspace/libs/plasma/widgets/lineedit.h +++ b/workspace/libs/plasma/widgets/lineedit.h @@ -73,6 +73,10 @@ class PLASMA_EXPORT LineEdit : public QGraphicsTextItem, public LayoutItem void updateGeometry(); QSizeF sizeHint() const; + /** + * Set text to be displayed when the LineEdit is empty and doesn't have focus. + * Warning: this will overwrite any text currently in the item + */ void setDefaultText(const QString &text); const QString toHtml(); const QString toPlainText(); -- 2.11.4.GIT