• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

Public Member Functions | Protected Member Functions | List of all members
KIconViewItem Class Reference

#include <kiconview.h>

Inherits TQIconViewItem.

Public Member Functions

 KIconViewItem (TQIconView *parent)
 KIconViewItem (TQIconView *parent, TQIconViewItem *after)
 KIconViewItem (TQIconView *parent, const TQString &text)
 KIconViewItem (TQIconView *parent, TQIconViewItem *after, const TQString &text)
 KIconViewItem (TQIconView *parent, const TQString &text, const TQPixmap &icon)
 KIconViewItem (TQIconView *parent, TQIconViewItem *after, const TQString &text, const TQPixmap &icon)
 KIconViewItem (TQIconView *parent, const TQString &text, const TQPicture &picture)
 KIconViewItem (TQIconView *parent, TQIconViewItem *after, const TQString &text, const TQPicture &picture)
void setPixmapSize (const TQSize &size)
TQSize pixmapSize () const

Protected Member Functions

void init ()
virtual void calcRect (const TQString &text_=TQString::null)
virtual void paintItem (TQPainter *p, const TQColorGroup &c)
KWordWrap * wordWrap ()
void paintPixmap (TQPainter *p, const TQColorGroup &c)
void paintText (TQPainter *p, const TQColorGroup &c)

Detailed Description

A variant of TQIconViewItem that wraps words better.

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

Author
David Faure david.nosp@m.@man.nosp@m.drake.nosp@m.soft.nosp@m..com

Definition at line 226 of file kiconview.h.

Member Function Documentation

TQSize KIconViewItem::pixmapSize ( ) const
Returns
The size set by setPixmapSize() or TQSize( 0, 0 )
Since
3.3

Definition at line 770 of file kiconview.cpp.

void KIconViewItem::setPixmapSize ( const TQSize &  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
sizeThe size to use

Definition at line 775 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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |