#include <Plasma/Widgets/LineEdit>
Provides a plasma-themed KLineEdit.
Definition at line 39 of file lineedit.h.
Plasma::LineEdit::~LineEdit |
( |
| ) |
|
void Plasma::LineEdit::changeEvent |
( |
QEvent * |
event | ) |
|
|
protected |
QString Plasma::LineEdit::clickMessage |
( |
| ) |
const |
- Returns
- the text of a greyed out message that will go away when clicked
- Since
- 4.5
void Plasma::LineEdit::editingFinished |
( |
| ) |
|
|
signal |
void Plasma::LineEdit::focusChanged |
( |
bool |
focused | ) |
|
|
signal |
Emitted when the widget receives or loses focus.
- Since
- 4.7
void Plasma::LineEdit::focusInEvent |
( |
QFocusEvent * |
event | ) |
|
|
protected |
void Plasma::LineEdit::focusOutEvent |
( |
QFocusEvent * |
event | ) |
|
|
protected |
void Plasma::LineEdit::hoverEnterEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
void Plasma::LineEdit::hoverLeaveEvent |
( |
QGraphicsSceneHoverEvent * |
event | ) |
|
|
protected |
bool Plasma::LineEdit::isClearButtonShown |
( |
| ) |
const |
- Returns
- true if the clear button is set to be shown
- Since
- 4.3
Definition at line 97 of file lineedit.cpp.
void Plasma::LineEdit::mousePressEvent |
( |
QGraphicsSceneMouseEvent * |
event | ) |
|
|
protected |
KLineEdit* Plasma::LineEdit::nativeWidget |
( |
| ) |
const |
- Returns
- the native widget wrapped by this LineEdit
void Plasma::LineEdit::returnPressed |
( |
| ) |
|
|
signal |
void Plasma::LineEdit::setClearButtonShown |
( |
bool |
show | ) |
|
Shows a button to clear the text.
- Since
- 4.3
Definition at line 92 of file lineedit.cpp.
void Plasma::LineEdit::setClickMessage |
( |
const QString & |
message | ) |
|
Sets a greyed out message that will go away after the user clicked the line edit.
- Parameters
-
- Since
- 4.5
Definition at line 102 of file lineedit.cpp.
void Plasma::LineEdit::setNativeWidget |
( |
KLineEdit * |
nativeWidget | ) |
|
Sets the line edit wrapped by this LineEdit (widget must inherit KLineEdit), ownership is transferred to the LineEdit.
- Parameters
-
nativeWidget | line edit that will be wrapped by this LineEdit |
- Since
- KDE4.4
Definition at line 122 of file lineedit.cpp.
void Plasma::LineEdit::setStyleSheet |
( |
const QString & |
stylesheet | ) |
|
Sets the stylesheet used to control the visual display of this LineEdit.
- Parameters
-
Definition at line 112 of file lineedit.cpp.
void Plasma::LineEdit::setText |
( |
const QString & |
text | ) |
|
Sets the display text for this LineEdit.
- Parameters
-
text | the text to display; should be translated. |
Definition at line 82 of file lineedit.cpp.
QString Plasma::LineEdit::styleSheet |
( |
| ) |
|
- Returns
- the stylesheet currently used with this widget
QString Plasma::LineEdit::text |
( |
| ) |
const |
void Plasma::LineEdit::textChanged |
( |
const QString & |
text | ) |
|
|
signal |
Emitted when the text changes.
- Since
- 4.4
void Plasma::LineEdit::textEdited |
( |
const QString & |
text | ) |
|
|
signal |
bool Plasma::LineEdit::clearButtonShown |
|
readwrite |
QString Plasma::LineEdit::clickMessage |
|
readwrite |
KLineEdit * Plasma::LineEdit::nativeWidget |
|
readwrite |
QString Plasma::LineEdit::styleSheet |
|
readwrite |
QString Plasma::LineEdit::text |
|
readwrite |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.