libplasma
Plasma::LineEdit Class Reference
#include <lineedit.h>

Detailed Description
Class that emulates a QLineEdit inside plasma.Definition at line 39 of file lineedit.h.
Public Types | |
| enum | { Type = Plasma::LineEditType } |
Public Slots | |
| void | dataUpdated (const QString &, const Plasma::DataEngine::Data &) |
Signals | |
| void | editingFinished () |
| void | textChanged (const QString &text) |
Public Member Functions | |
| LineEdit (QGraphicsItem *parent=0) | |
| ~LineEdit () | |
| void | paintWidget (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
| Qt::Orientations | expandingDirections () const |
| QSizeF | minimumSize () const |
| QSizeF | maximumSize () const |
| void | setStyled (bool style) |
| bool | styled () const |
| void | setMultiLine (bool multi) |
| bool | multiLine () const |
| bool | hasHeightForWidth () const |
| qreal | heightForWidth (qreal w) const |
| bool | hasWidthForHeight () const |
| qreal | widthForHeight (qreal h) const |
| QRectF | geometry () const |
| void | setGeometry (const QRectF &geometry) |
| void | updateGeometry () |
| QSizeF | sizeHint () const |
| void | setDefaultText (const QString &text) |
| const QString | toHtml () |
| const QString | toPlainText () |
| int | type () const |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *event) |
| void | focusInEvent (QFocusEvent *event) |
| void | focusOutEvent (QFocusEvent *event) |
Properties | |
| bool | styled |
| bool | multiLine |
| QString | defaultText |
| QString | html |
| QString | plainText |
Member Enumeration Documentation
| anonymous enum |
Constructor & Destructor Documentation
| Plasma::LineEdit::LineEdit | ( | QGraphicsItem * | parent = 0 |
) | [explicit] |
Definition at line 50 of file lineedit.cpp.
| Plasma::LineEdit::~LineEdit | ( | ) |
Definition at line 59 of file lineedit.cpp.
Member Function Documentation
| void Plasma::LineEdit::paintWidget | ( | QPainter * | painter, | |
| const QStyleOptionGraphicsItem * | option, | |||
| QWidget * | widget = 0 | |||
| ) |
Definition at line 64 of file lineedit.cpp.
| Qt::Orientations Plasma::LineEdit::expandingDirections | ( | ) | const [virtual] |
Returns a bitmask with the directions that this Item can be expanded.
Implements Plasma::LayoutItem.
Definition at line 120 of file lineedit.cpp.
| QSizeF Plasma::LineEdit::minimumSize | ( | ) | const [virtual] |
Returns the minimum size of this Item and it's contents.
Implements Plasma::LayoutItem.
Definition at line 125 of file lineedit.cpp.
| QSizeF Plasma::LineEdit::maximumSize | ( | ) | const [virtual] |
Returns the maximum size of this Item.
Implements Plasma::LayoutItem.
Definition at line 130 of file lineedit.cpp.
| void Plasma::LineEdit::setStyled | ( | bool | style | ) |
Definition at line 110 of file lineedit.cpp.
| bool Plasma::LineEdit::styled | ( | ) | const |
| void Plasma::LineEdit::setMultiLine | ( | bool | multi | ) |
Definition at line 99 of file lineedit.cpp.
| bool Plasma::LineEdit::multiLine | ( | ) | const |
| bool Plasma::LineEdit::hasHeightForWidth | ( | ) | const [virtual] |
Returns true whatever this Item can use height-for-width layout management, false otherwise.
Reimplemented from Plasma::LayoutItem.
Definition at line 135 of file lineedit.cpp.
| qreal Plasma::LineEdit::heightForWidth | ( | qreal | w | ) | const [virtual] |
Returns the corresponding height for a given width.
- Parameters:
-
w Width
Reimplemented from Plasma::LayoutItem.
Definition at line 140 of file lineedit.cpp.
| bool Plasma::LineEdit::hasWidthForHeight | ( | ) | const [virtual] |
Returns true whatever this Item can use width-for-height layout management, false otherwise.
Reimplemented from Plasma::LayoutItem.
Definition at line 149 of file lineedit.cpp.
| qreal Plasma::LineEdit::widthForHeight | ( | qreal | h | ) | const [virtual] |
Returns the corresponding width for a given height.
- Parameters:
-
h Height
Reimplemented from Plasma::LayoutItem.
Definition at line 154 of file lineedit.cpp.
| QRectF Plasma::LineEdit::geometry | ( | ) | const [virtual] |
Returns the geometry of this Item.
Implements Plasma::LayoutItem.
Definition at line 160 of file lineedit.cpp.
| void Plasma::LineEdit::setGeometry | ( | const QRectF & | geometry | ) | [virtual] |
Sets the geometry of this Item.
Implements Plasma::LayoutItem.
Definition at line 165 of file lineedit.cpp.
| void Plasma::LineEdit::updateGeometry | ( | ) | [virtual] |
Updates the layouting of the item without first changing its geometry.
Calling this may result in a geometry change, but may not, depending on the managing layout if any.
Implements Plasma::LayoutItem.
Definition at line 173 of file lineedit.cpp.
| QSizeF Plasma::LineEdit::sizeHint | ( | ) | const [virtual] |
Returns the most appropriate size of this Item to hold whatever contents it has.
Implements Plasma::LayoutItem.
Definition at line 182 of file lineedit.cpp.
| void Plasma::LineEdit::setDefaultText | ( | const QString & | text | ) |
Definition at line 187 of file lineedit.cpp.
| const QString Plasma::LineEdit::toHtml | ( | ) |
| const QString Plasma::LineEdit::toPlainText | ( | ) |
| int Plasma::LineEdit::type | ( | ) | const [inline] |
Definition at line 84 of file lineedit.h.
| void Plasma::LineEdit::editingFinished | ( | ) | [signal] |
| void Plasma::LineEdit::textChanged | ( | const QString & | text | ) | [signal] |
| void Plasma::LineEdit::dataUpdated | ( | const QString & | , | |
| const Plasma::DataEngine::Data & | data | |||
| ) | [slot] |
Definition at line 85 of file lineedit.cpp.
| void Plasma::LineEdit::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
Definition at line 213 of file lineedit.cpp.
| void Plasma::LineEdit::focusInEvent | ( | QFocusEvent * | event | ) | [protected] |
Definition at line 230 of file lineedit.cpp.
| void Plasma::LineEdit::focusOutEvent | ( | QFocusEvent * | event | ) | [protected] |
Definition at line 238 of file lineedit.cpp.
Property Documentation
bool Plasma::LineEdit::styled [read, write] |
Definition at line 42 of file lineedit.h.
bool Plasma::LineEdit::multiLine [read, write] |
Definition at line 43 of file lineedit.h.
QString Plasma::LineEdit::defaultText [write] |
Definition at line 44 of file lineedit.h.
QString Plasma::LineEdit::html [read] |
Definition at line 45 of file lineedit.h.
QString Plasma::LineEdit::plainText [read] |
Definition at line 46 of file lineedit.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference