#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 :)
Definition at line 226 of file kiconview.h.
Member Function Documentation
◆ 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
-
size The size to use
Definition at line 775 of file kiconview.cpp.
The documentation for this class was generated from the following files: