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

tdeui

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

#include <kiconview.h>

Inherits TQIconViewItem.

Public Member Functions

 TDEIconViewItem (TQIconView *parent)
 
 TDEIconViewItem (TQIconView *parent, TQIconViewItem *after)
 
 TDEIconViewItem (TQIconView *parent, const TQString &text)
 
 TDEIconViewItem (TQIconView *parent, TQIconViewItem *after, const TQString &text)
 
 TDEIconViewItem (TQIconView *parent, const TQString &text, const TQPixmap &icon)
 
 TDEIconViewItem (TQIconView *parent, TQIconViewItem *after, const TQString &text, const TQPixmap &icon)
 
 TDEIconViewItem (TQIconView *parent, const TQString &text, const TQPicture &picture)
 
 TDEIconViewItem (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.

TDEIconViewItem exists to improve the word-wrap functionality of QIconViewItem Use TDEIconViewItem 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.

Constructor & Destructor Documentation

◆ TDEIconViewItem() [1/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent)
inline

Definition at line 230 of file kiconview.h.

◆ TDEIconViewItem() [2/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent,
TQIconViewItem *  after 
)
inline

Definition at line 232 of file kiconview.h.

◆ TDEIconViewItem() [3/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent,
const TQString &  text 
)
inline

Definition at line 234 of file kiconview.h.

◆ TDEIconViewItem() [4/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent,
TQIconViewItem *  after,
const TQString &  text 
)
inline

Definition at line 236 of file kiconview.h.

◆ TDEIconViewItem() [5/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent,
const TQString &  text,
const TQPixmap &  icon 
)
inline

Definition at line 238 of file kiconview.h.

◆ TDEIconViewItem() [6/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent,
TQIconViewItem *  after,
const TQString &  text,
const TQPixmap &  icon 
)
inline

Definition at line 240 of file kiconview.h.

◆ TDEIconViewItem() [7/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent,
const TQString &  text,
const TQPicture &  picture 
)
inline

Definition at line 242 of file kiconview.h.

◆ TDEIconViewItem() [8/8]

TDEIconViewItem::TDEIconViewItem ( TQIconView *  parent,
TQIconViewItem *  after,
const TQString &  text,
const TQPicture &  picture 
)
inline

Definition at line 244 of file kiconview.h.

◆ ~TDEIconViewItem()

TDEIconViewItem::~TDEIconViewItem ( )
virtual

Definition at line 469 of file kiconview.cpp.

Member Function Documentation

◆ calcRect()

void TDEIconViewItem::calcRect ( const TQString &  text_ = TQString::null)
protectedvirtual

Definition at line 477 of file kiconview.cpp.

◆ init()

void TDEIconViewItem::init ( )
protected

Definition at line 462 of file kiconview.cpp.

◆ paintItem()

void TDEIconViewItem::paintItem ( TQPainter *  p,
const TQColorGroup &  c 
)
protectedvirtual

Definition at line 657 of file kiconview.cpp.

◆ paintPixmap()

void TDEIconViewItem::paintPixmap ( TQPainter *  p,
const TQColorGroup &  c 
)
protected

Definition at line 684 of file kiconview.cpp.

◆ paintText()

void TDEIconViewItem::paintText ( TQPainter *  p,
const TQColorGroup &  c 
)
protected

Definition at line 730 of file kiconview.cpp.

◆ pixmapSize()

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

Definition at line 770 of file kiconview.cpp.

◆ setPixmapSize()

void TDEIconViewItem::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.

◆ wordWrap()

KWordWrap * TDEIconViewItem::wordWrap ( )
protected

Definition at line 679 of file kiconview.cpp.


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

tdeui

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

tdeui

Skip menu "tdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeui by doxygen 1.9.4
This website is maintained by Timothy Pearson.