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

Plasma

Plasma::ComboBox

Plasma::ComboBox Class Reference

Provides a Plasma-themed combo box. More...

#include <Plasma/Widgets/ComboBox>

Inheritance diagram for Plasma::ComboBox:
QGraphicsProxyWidget

List of all members.

Public Slots

void clear ()

Signals

void activated (const QString &text)
void textChanged (const QString &text)

Public Member Functions

void addItem (const QString &text)
 ComboBox (QGraphicsWidget *parent=0)
KComboBox * nativeWidget () const
void setStyleSheet (const QString &stylesheet)
QString styleSheet ()
QString text () const
 ~ComboBox ()

Protected Member Functions

void hoverEnterEvent (QGraphicsSceneHoverEvent *event)
void hoverLeaveEvent (QGraphicsSceneHoverEvent *event)
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
void resizeEvent (QGraphicsSceneResizeEvent *event)

Properties

KComboBox nativeWidget
QGraphicsWidget parentWidget
QString styleSheet
QString text

Detailed Description

Provides a Plasma-themed combo box.

Definition at line 39 of file combobox.h.


Constructor & Destructor Documentation

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

Definition at line 113 of file combobox.cpp.

Plasma::ComboBox::~ComboBox (  ) 

Definition at line 136 of file combobox.cpp.


Member Function Documentation

void Plasma::ComboBox::activated ( const QString &  text  )  [signal]
void Plasma::ComboBox::addItem ( const QString &  text  ) 

Adds an item to the combobox with the given text.

The item is appended to the list of existing items.

Definition at line 162 of file combobox.cpp.

void Plasma::ComboBox::clear (  )  [slot]

Definition at line 167 of file combobox.cpp.

void Plasma::ComboBox::hoverEnterEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]

Definition at line 266 of file combobox.cpp.

void Plasma::ComboBox::hoverLeaveEvent ( QGraphicsSceneHoverEvent *  event  )  [protected]

Definition at line 282 of file combobox.cpp.

KComboBox* Plasma::ComboBox::nativeWidget (  )  const
Returns:
the native widget wrapped by this ComboBox
void Plasma::ComboBox::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
) [protected]

Definition at line 191 of file combobox.cpp.

void Plasma::ComboBox::resizeEvent ( QGraphicsSceneResizeEvent *  event  )  [protected]

Definition at line 172 of file combobox.cpp.

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

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

  • stylesheet a CSS string

Definition at line 147 of file combobox.cpp.

QString Plasma::ComboBox::styleSheet (  ) 
Returns:
the stylesheet currently used with this widget
QString Plasma::ComboBox::text (  )  const
Returns:
the display text
void Plasma::ComboBox::textChanged ( const QString &  text  )  [signal]

Property Documentation

KComboBox * Plasma::ComboBox::nativeWidget [read]

Definition at line 46 of file combobox.h.

QGraphicsWidget Plasma::ComboBox::parentWidget [read]

Definition at line 43 of file combobox.h.

QString Plasma::ComboBox::styleSheet [read, write]

Definition at line 45 of file combobox.h.

QString Plasma::ComboBox::text [read]

Definition at line 44 of file combobox.h.


The documentation for this class was generated from the following files:
  • combobox.h
  • combobox.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