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

KDE3Support

K3IconViewItem Class Reference

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

#include <k3iconview.h>

Inheritance diagram for K3IconViewItem:
Q3IconViewItem

List of all members.

Public Member Functions

 K3IconViewItem (Q3IconView *parent, Q3IconViewItem *after, const QString &text, const QPicture &picture)
 K3IconViewItem (Q3IconView *parent, const QString &text, const QPicture &picture)
 K3IconViewItem (Q3IconView *parent, Q3IconViewItem *after, const QString &text, const QPixmap &icon)
 K3IconViewItem (Q3IconView *parent, const QString &text, const QPixmap &icon)
 K3IconViewItem (Q3IconView *parent, Q3IconViewItem *after, const QString &text)
 K3IconViewItem (Q3IconView *parent, const QString &text)
 K3IconViewItem (Q3IconView *parent, Q3IconViewItem *after)
 K3IconViewItem (Q3IconView *parent)
QSize pixmapSize () const
void setPixmapSize (const QSize &size)
virtual ~K3IconViewItem ()

Protected Member Functions

virtual void calcRect (const QString &text_=QString())
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.

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

Author:
David Faure <faure@kde.org>

Definition at line 221 of file k3iconview.h.


Constructor & Destructor Documentation

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent  )  [inline]

Definition at line 225 of file k3iconview.h.

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent,
Q3IconViewItem *  after 
) [inline]

Definition at line 227 of file k3iconview.h.

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent,
const QString &  text 
) [inline]

Definition at line 229 of file k3iconview.h.

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent,
Q3IconViewItem *  after,
const QString &  text 
) [inline]

Definition at line 231 of file k3iconview.h.

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent,
const QString &  text,
const QPixmap &  icon 
) [inline]

Definition at line 233 of file k3iconview.h.

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent,
Q3IconViewItem *  after,
const QString &  text,
const QPixmap &  icon 
) [inline]

Definition at line 235 of file k3iconview.h.

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent,
const QString &  text,
const QPicture &  picture 
) [inline]

Definition at line 237 of file k3iconview.h.

K3IconViewItem::K3IconViewItem ( Q3IconView *  parent,
Q3IconViewItem *  after,
const QString &  text,
const QPicture &  picture 
) [inline]

Definition at line 239 of file k3iconview.h.

K3IconViewItem::~K3IconViewItem (  )  [virtual]

Definition at line 470 of file k3iconview.cpp.


Member Function Documentation

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

Definition at line 476 of file k3iconview.cpp.

void K3IconViewItem::init (  )  [protected]

Definition at line 463 of file k3iconview.cpp.

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

Definition at line 635 of file k3iconview.cpp.

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

Definition at line 662 of file k3iconview.cpp.

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

Definition at line 708 of file k3iconview.cpp.

QSize K3IconViewItem::pixmapSize (  )  const
Returns:
The size set by setPixmapSize() or QSize( 0, 0 )

Definition at line 726 of file k3iconview.cpp.

void K3IconViewItem::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).

Parameters:
size The size to use

Definition at line 731 of file k3iconview.cpp.

KWordWrap * K3IconViewItem::wordWrap (  )  [protected]

Definition at line 657 of file k3iconview.cpp.


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

KDE3Support

Skip menu "KDE3Support"
  • 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