• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Plasma

Plasma::TextBrowser

Plasma::TextBrowser Class Reference

Provides a plasma-themed KTextBrowser. More...

#include <textbrowser.h>

Inheritance diagram for Plasma::TextBrowser:
QGraphicsProxyWidget

List of all members.

Public Slots

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

Signals

void textChanged ()

Public Member Functions

KTextBrowser * nativeWidget () const
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy policy)
void setStyleSheet (const QString &stylesheet)
void setText (const QString &text)
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy policy)
QString styleSheet ()
QString text () const
 TextBrowser (QGraphicsWidget *parent=0)
 ~TextBrowser ()

Protected Member Functions

void resizeEvent (QGraphicsSceneResizeEvent *event)
void wheelEvent (QGraphicsSceneWheelEvent *event)

Properties

KTextBrowser nativeWidget
QGraphicsWidget parentWidget
QString stylesheet
QString text

Detailed Description

Provides a plasma-themed KTextBrowser.

Since:
4.3

Definition at line 42 of file textbrowser.h.


Constructor & Destructor Documentation

Plasma::TextBrowser::TextBrowser ( QGraphicsWidget *  parent = 0  )  [explicit]

Definition at line 78 of file textbrowser.cpp.

Plasma::TextBrowser::~TextBrowser (  ) 

Definition at line 96 of file textbrowser.cpp.


Member Function Documentation

void Plasma::TextBrowser::dataUpdated ( const QString &  sourceName,
const Plasma::DataEngine::Data &  data 
) [slot]

Definition at line 138 of file textbrowser.cpp.

KTextBrowser* Plasma::TextBrowser::nativeWidget (  )  const
Returns:
the native widget wrapped by this TextBrowser
void Plasma::TextBrowser::resizeEvent ( QGraphicsSceneResizeEvent *  event  )  [protected]

Definition at line 152 of file textbrowser.cpp.

void Plasma::TextBrowser::setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy  policy  ) 

Sets the policy used to show/hide the horizontal scrollbar.

Definition at line 113 of file textbrowser.cpp.

void Plasma::TextBrowser::setStyleSheet ( const QString &  stylesheet  ) 

Sets the stylesheet used to control the visual display of this TextBrowser.

  • stylesheet a CSS string

Definition at line 123 of file textbrowser.cpp.

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

Sets the display text for this TextBrowser.

  • text the text to display; should be translated.

Definition at line 102 of file textbrowser.cpp.

void Plasma::TextBrowser::setVerticalScrollBarPolicy ( Qt::ScrollBarPolicy  policy  ) 

Sets the policy used to show/hide the vertical scrollbar.

Definition at line 118 of file textbrowser.cpp.

QString Plasma::TextBrowser::styleSheet (  ) 
Returns:
the stylesheet currently used with this widget

Definition at line 128 of file textbrowser.cpp.

QString Plasma::TextBrowser::text (  )  const
Returns:
the display text
void Plasma::TextBrowser::textChanged (  )  [signal]
void Plasma::TextBrowser::wheelEvent ( QGraphicsSceneWheelEvent *  event  )  [protected]

Definition at line 158 of file textbrowser.cpp.


Property Documentation

KTextBrowser * Plasma::TextBrowser::nativeWidget [read]

Definition at line 49 of file textbrowser.h.

QGraphicsWidget Plasma::TextBrowser::parentWidget [read]

Definition at line 46 of file textbrowser.h.

QString Plasma::TextBrowser::stylesheet [read, write]

Definition at line 48 of file textbrowser.h.

QString Plasma::TextBrowser::text [read, write]

Definition at line 47 of file textbrowser.h.


The documentation for this class was generated from the following files:
  • textbrowser.h
  • textbrowser.cpp

Plasma

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal