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

Plasma

  • Plasma
  • TextBrowser
Public Slots | Signals | Public Member Functions | Protected Member Functions | Properties | List of all members
Plasma::TextBrowser Class Reference

#include <textbrowser.h>

Inheritance diagram for Plasma::TextBrowser:
QGraphicsProxyWidget

Public Slots

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

Signals

void textChanged ()
 

Public Member Functions

 TextBrowser (QGraphicsWidget *parent=0)
 
 ~TextBrowser ()
 
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
 

Protected Member Functions

void changeEvent (QEvent *event)
 
void contextMenuEvent (QGraphicsSceneContextMenuEvent *event)
 
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

◆ TextBrowser()

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

Definition at line 78 of file textbrowser.cpp.

◆ ~TextBrowser()

Plasma::TextBrowser::~TextBrowser ( )

Definition at line 99 of file textbrowser.cpp.

Member Function Documentation

◆ append

void Plasma::TextBrowser::append ( const QString &  text)
slot

Allows appending text to the text browser.

Since
4.4

Definition at line 140 of file textbrowser.cpp.

◆ changeEvent()

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

Definition at line 184 of file textbrowser.cpp.

◆ contextMenuEvent()

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

Definition at line 159 of file textbrowser.cpp.

◆ dataUpdated

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

Definition at line 145 of file textbrowser.cpp.

◆ nativeWidget()

KTextBrowser * Plasma::TextBrowser::nativeWidget ( ) const
Returns
the native widget wrapped by this TextBrowser

Definition at line 135 of file textbrowser.cpp.

◆ resizeEvent()

void Plasma::TextBrowser::resizeEvent ( QGraphicsSceneResizeEvent *  event)
protected

Definition at line 168 of file textbrowser.cpp.

◆ setHorizontalScrollBarPolicy()

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

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

Definition at line 115 of file textbrowser.cpp.

◆ setStyleSheet()

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

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

Parameters
stylesheeta CSS string

Definition at line 125 of file textbrowser.cpp.

◆ setText()

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

Sets the display text for this TextBrowser.

Parameters
textthe text to display; should be translated.

Definition at line 105 of file textbrowser.cpp.

◆ setVerticalScrollBarPolicy()

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

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

Definition at line 120 of file textbrowser.cpp.

◆ styleSheet()

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

◆ text()

QString Plasma::TextBrowser::text ( ) const
Returns
the display text

Definition at line 110 of file textbrowser.cpp.

◆ textChanged

void Plasma::TextBrowser::textChanged ( )
signal

◆ wheelEvent()

void Plasma::TextBrowser::wheelEvent ( QGraphicsSceneWheelEvent *  event)
protected

Definition at line 174 of file textbrowser.cpp.

Property Documentation

◆ nativeWidget

KTextBrowser * Plasma::TextBrowser::nativeWidget
read

Definition at line 1 of file textbrowser.h.

◆ parentWidget

QGraphicsWidget * Plasma::TextBrowser::parentWidget
read

Definition at line 1 of file textbrowser.h.

◆ styleSheet

QString Plasma::TextBrowser::styleSheet
readwrite

Definition at line 1 of file textbrowser.h.

◆ text

QString Plasma::TextBrowser::text
readwrite

Definition at line 1 of file textbrowser.h.


The documentation for this class was generated from the following files:
  • textbrowser.h
  • textbrowser.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 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.14.38 API Reference

Skip menu "kdelibs-4.14.38 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