From 7983ed5bb9963169b4aa58670d0081a6371e8cb3 Mon Sep 17 00:00:00 2001 From: Chani Armitage Date: Fri, 28 Mar 2008 19:43:17 +0000 Subject: [PATCH] comments++ svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=791229 --- widgets/lineedit.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widgets/lineedit.h b/widgets/lineedit.h index e67c5071e..8621fef9a 100644 --- a/widgets/lineedit.h +++ b/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();