• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.10.2 API Reference
  • KDE Home
  • Contact Us
 

Plasma

  • Plasma
  • TextEdit
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties
Plasma::TextEdit Class Reference

#include <Plasma/Widgets/TextEdit>

Inheritance diagram for Plasma::TextEdit:
QGraphicsProxyWidget

List of all members.

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

Allows appending text to the text browser.

Since:
4.4

Definition at line 125 of file textedit.cpp.

void Plasma::TextEdit::changeEvent ( QEvent *  event)
protected

Definition at line 156 of file textedit.cpp.

void Plasma::TextEdit::contextMenuEvent ( QGraphicsSceneContextMenuEvent *  event)
protected

Definition at line 144 of file textedit.cpp.

void Plasma::TextEdit::dataUpdated ( const QString &  sourceName,
const Plasma::DataEngine::Data &  data 
)
slot

Definition at line 130 of file textedit.cpp.

void Plasma::TextEdit::focusOutEvent ( QFocusEvent *  event)
protected

Definition at line 178 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 162 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 151 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.

Parameters:
nativeWidgettext 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.

Parameters:
trueto 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.

Parameters:
stylesheeta CSS string

Definition at line 90 of file textedit.cpp.

void Plasma::TextEdit::setText ( const QString &  text)

Sets the display text for this TextEdit.

Parameters:
textthe 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
readwrite

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
readwrite

Definition at line 48 of file textedit.h.

QString Plasma::TextEdit::styleSheet
readwrite

Definition at line 46 of file textedit.h.

QString Plasma::TextEdit::text
readwrite

Definition at line 45 of file textedit.h.


The documentation for this class was generated from the following files:
  • textedit.h
  • textedit.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:25:06 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Plasma

Skip menu "Plasma"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.10.2 API Reference

Skip menu "kdelibs-4.10.2 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal