• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

QtExtraComponents

Public Types | Signals | Public Member Functions | Properties | List of all members
QIconItem Class Reference

#include <qiconitem.h>

Inheritance diagram for QIconItem:
Inheritance graph
[legend]

Public Types

enum  State { DefaultState, ActiveState, DisabledState }
 

Signals

void stateChanged (State state)
 

Public Member Functions

 QIconItem (QDeclarativeItem *parent=0)
 
 ~QIconItem ()
 
QIcon icon () const
 
int implicitHeight () const
 
int implicitWidth () const
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
 
void setIcon (const QVariant &icon)
 
void setSmooth (const bool smooth)
 
void setState (State state)
 
bool smooth () const
 
QIconItem::State state () const
 

Properties

QVariant icon
 
int implicitHeight
 
int implicitWidth
 
bool smooth
 
State state
 

Detailed Description

Definition at line 27 of file qiconitem.h.

Member Enumeration Documentation

enum QIconItem::State
Enumerator
DefaultState 
ActiveState 

The default state.

DisabledState 

Icon is active.

Icon is disabled.

Definition at line 41 of file qiconitem.h.

Constructor & Destructor Documentation

QIconItem::QIconItem ( QDeclarativeItem *  parent = 0)

Definition at line 28 of file qiconitem.cpp.

QIconItem::~QIconItem ( )

Definition at line 37 of file qiconitem.cpp.

Member Function Documentation

QIcon QIconItem::icon ( ) const
int QIconItem::implicitHeight ( ) const
int QIconItem::implicitWidth ( ) const
void QIconItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
)

Definition at line 98 of file qiconitem.cpp.

void QIconItem::setIcon ( const QVariant &  icon)

Definition at line 41 of file qiconitem.cpp.

void QIconItem::setSmooth ( const bool  smooth)

Definition at line 84 of file qiconitem.cpp.

void QIconItem::setState ( QIconItem::State  state)

Definition at line 63 of file qiconitem.cpp.

bool QIconItem::smooth ( ) const
QIconItem::State QIconItem::state ( ) const
void QIconItem::stateChanged ( State  state)
signal

Property Documentation

QIcon QIconItem::icon
readwrite

Definition at line 31 of file qiconitem.h.

int QIconItem::implicitHeight
read

Definition at line 34 of file qiconitem.h.

int QIconItem::implicitWidth
read

Definition at line 33 of file qiconitem.h.

bool QIconItem::smooth
readwrite

Definition at line 32 of file qiconitem.h.

QIconItem::State QIconItem::state
readwrite

Definition at line 35 of file qiconitem.h.


The documentation for this class was generated from the following files:
  • qiconitem.h
  • qiconitem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:02:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

QtExtraComponents

Skip menu "QtExtraComponents"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

Search



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