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

kdeui

KIconViewItem Class Reference

A variant of QIconViewItem that wraps words better. More...

#include <kiconview.h>

Inheritance diagram for KIconViewItem:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 KIconViewItem (QIconView *parent, QIconViewItem *after, const QString &text, const QPicture &picture)
 KIconViewItem (QIconView *parent, const QString &text, const QPicture &picture)
 KIconViewItem (QIconView *parent, QIconViewItem *after, const QString &text, const QPixmap &icon)
 KIconViewItem (QIconView *parent, const QString &text, const QPixmap &icon)
 KIconViewItem (QIconView *parent, QIconViewItem *after, const QString &text)
 KIconViewItem (QIconView *parent, const QString &text)
 KIconViewItem (QIconView *parent, QIconViewItem *after)
 KIconViewItem (QIconView *parent)
QSize pixmapSize () const
void setPixmapSize (const QSize &size)
virtual ~KIconViewItem ()

Protected Member Functions

virtual void calcRect (const QString &text_=QString::null)
void init ()
virtual void paintItem (QPainter *p, const QColorGroup &c)
void paintPixmap (QPainter *p, const QColorGroup &c)
void paintText (QPainter *p, const QColorGroup &c)
KWordWrap * wordWrap ()

Detailed Description

A variant of QIconViewItem that wraps words better.

KIconViewItem exists to improve the word-wrap functionality of QIconViewItem Use KIconViewItem instead of QIconViewItem for any iconview item you might have :)

Author:
David Faure <david@mandrakesoft.com>

Definition at line 226 of file kiconview.h.


Constructor & Destructor Documentation

KIconViewItem::KIconViewItem ( QIconView *  parent  )  [inline]

Definition at line 230 of file kiconview.h.

KIconViewItem::KIconViewItem ( QIconView *  parent,
QIconViewItem *  after 
) [inline]

Definition at line 232 of file kiconview.h.

KIconViewItem::KIconViewItem ( QIconView *  parent,
const QString &  text 
) [inline]

Definition at line 234 of file kiconview.h.

KIconViewItem::KIconViewItem ( QIconView *  parent,
QIconViewItem *  after,
const QString &  text 
) [inline]

Definition at line 236 of file kiconview.h.

KIconViewItem::KIconViewItem ( QIconView *  parent,
const QString &  text,
const QPixmap &  icon 
) [inline]

Definition at line 238 of file kiconview.h.

KIconViewItem::KIconViewItem ( QIconView *  parent,
QIconViewItem *  after,
const QString &  text,
const QPixmap &  icon 
) [inline]

Definition at line 240 of file kiconview.h.

KIconViewItem::KIconViewItem ( QIconView *  parent,
const QString &  text,
const QPicture &  picture 
) [inline]

Definition at line 242 of file kiconview.h.

KIconViewItem::KIconViewItem ( QIconView *  parent,
QIconViewItem *  after,
const QString &  text,
const QPicture &  picture 
) [inline]

Definition at line 244 of file kiconview.h.

KIconViewItem::~KIconViewItem (  )  [virtual]

Definition at line 462 of file kiconview.cpp.


Member Function Documentation

void KIconViewItem::calcRect ( const QString &  text_ = QString::null  )  [protected, virtual]

Reimplemented from QIconViewItem.

Definition at line 468 of file kiconview.cpp.

void KIconViewItem::init (  )  [protected]

Definition at line 455 of file kiconview.cpp.

void KIconViewItem::paintItem ( QPainter *  p,
const QColorGroup &  c 
) [protected, virtual]

Reimplemented from QIconViewItem.

Definition at line 627 of file kiconview.cpp.

void KIconViewItem::paintPixmap ( QPainter *  p,
const QColorGroup &  c 
) [protected]

Definition at line 654 of file kiconview.cpp.

void KIconViewItem::paintText ( QPainter *  p,
const QColorGroup &  c 
) [protected]

Definition at line 700 of file kiconview.cpp.

QSize KIconViewItem::pixmapSize (  )  const

Returns:
The size set by setPixmapSize() or QSize( 0, 0 )
Since:
3.3

Definition at line 718 of file kiconview.cpp.

void KIconViewItem::setPixmapSize ( const QSize &  size  ) 

Using this function, you can specify a custom size for the pixmap.

The geometry of the item will be calculated to let a pixmap of the given size fit in the iconView without needing an update. This may be useful if you want to change the pixmap later without breaking the layout. A possible use of this function is to replace a fileItem icon by a larger pixmap (preview).

Since:
3.3
Parameters:
size The size to use

Definition at line 723 of file kiconview.cpp.

KWordWrap * KIconViewItem::wordWrap (  )  [protected]

Definition at line 649 of file kiconview.cpp.


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

kdeui

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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