Plasma
Plasma::TextEdit Class Reference
Provides a plasma-themed KTextEdit. More...
#include <Plasma/Widgets/TextEdit>

Public Slots | |
| void | append (const QString &text) |
| void | dataUpdated (const QString &sourceName, const Plasma::DataEngine::Data &data) |
Signals | |
| void | textChanged () |
Public Member Functions | |
| TextEdit (QGraphicsWidget *parent=0) | |
| ~TextEdit () | |
| bool | isReadOnly () const |
| KTextEdit * | nativeWidget () const |
| void | setNativeWidget (KTextEdit *nativeWidget) |
| void | setReadOnly (bool readOnly) |
| void | setStyleSheet (const QString &stylesheet) |
| void | setText (const QString &text) |
| QString | styleSheet () |
| QString | text () const |
Protected Member Functions | |
| void | changeEvent (QEvent *event) |
| void | contextMenuEvent (QGraphicsSceneContextMenuEvent *event) |
| void | focusOutEvent (QFocusEvent *event) |
| void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
| void | resizeEvent (QGraphicsSceneResizeEvent *event) |
Properties | |
| KTextEdit | nativeWidget |
| QGraphicsWidget | parentWidget |
| bool | readOnly |
| QString | styleSheet |
| QString | text |
Detailed Description
Provides a plasma-themed KTextEdit.
Definition at line 40 of file textedit.h.
Constructor & Destructor Documentation
| Plasma::TextEdit::TextEdit | ( | QGraphicsWidget * | parent = 0 | ) | [explicit] |
Definition at line 55 of file textedit.cpp.
| Plasma::TextEdit::~TextEdit | ( | ) |
Definition at line 64 of file textedit.cpp.
Member Function Documentation
| void Plasma::TextEdit::append | ( | const QString & | text | ) | [slot] |
| void Plasma::TextEdit::changeEvent | ( | QEvent * | event | ) | [protected] |
Definition at line 157 of file textedit.cpp.
| void Plasma::TextEdit::contextMenuEvent | ( | QGraphicsSceneContextMenuEvent * | event | ) | [protected] |
Definition at line 145 of file textedit.cpp.
| void Plasma::TextEdit::dataUpdated | ( | const QString & | sourceName, |
| const Plasma::DataEngine::Data & | data | ||
| ) | [slot] |
Definition at line 131 of file textedit.cpp.
| void Plasma::TextEdit::focusOutEvent | ( | QFocusEvent * | event | ) | [protected] |
Definition at line 179 of file textedit.cpp.
| bool Plasma::TextEdit::isReadOnly | ( | ) | const |
- Returns:
- true if the text area is non-interacive
Definition at line 85 of file textedit.cpp.
| void Plasma::TextEdit::mousePressEvent | ( | QGraphicsSceneMouseEvent * | event | ) | [protected] |
Definition at line 163 of file textedit.cpp.
| KTextEdit* Plasma::TextEdit::nativeWidget | ( | ) | const |
- Returns:
- the native widget wrapped by this TextEdit
| void Plasma::TextEdit::resizeEvent | ( | QGraphicsSceneResizeEvent * | event | ) | [protected] |
Definition at line 152 of file textedit.cpp.
| void Plasma::TextEdit::setNativeWidget | ( | KTextEdit * | nativeWidget | ) |
Sets the text edit wrapped by this TextEdit (widget must inherit KTextEdit), ownership is transferred to the TextEdit.
- text edit that will be wrapped by this TextEdit
- Since:
- KDE4.4
Definition at line 100 of file textedit.cpp.
| void Plasma::TextEdit::setReadOnly | ( | bool | readOnly | ) |
Sets the text area to be read only or interactive.
- true to make it read only, false for interactive
- Since:
- 4.4
Definition at line 80 of file textedit.cpp.
| void Plasma::TextEdit::setStyleSheet | ( | const QString & | stylesheet | ) |
Sets the stylesheet used to control the visual display of this TextEdit.
- stylesheet a CSS string
Definition at line 90 of file textedit.cpp.
| void Plasma::TextEdit::setText | ( | const QString & | text | ) |
Sets the display text for this TextEdit.
- text the text to display; should be translated.
Definition at line 70 of file textedit.cpp.
| QString Plasma::TextEdit::styleSheet | ( | ) |
- Returns:
- the stylesheet currently used with this widget
| QString Plasma::TextEdit::text | ( | ) | const |
- Returns:
- the display text
| void Plasma::TextEdit::textChanged | ( | ) | [signal] |
Property Documentation
KTextEdit * Plasma::TextEdit::nativeWidget [read, write] |
Definition at line 47 of file textedit.h.
QGraphicsWidget Plasma::TextEdit::parentWidget [read] |
Definition at line 44 of file textedit.h.
bool Plasma::TextEdit::readOnly [read, write] |
Definition at line 48 of file textedit.h.
QString Plasma::TextEdit::styleSheet [read, write] |
Definition at line 46 of file textedit.h.
QString Plasma::TextEdit::text [read, write] |
Definition at line 45 of file textedit.h.
The documentation for this class was generated from the following files:
KDE 4.6 API Reference