#include <subalbumsIconView.h>
Inheritance diagram for SubalbumsIconView:
Definition at line 34 of file subalbumsIconView.h.
Signals | |
| void | itemHasMoved () |
Public Member Functions | |
| SubalbumsIconView (QWidget *parent) | |
Protected Member Functions | |
| void | drawContents (QPainter *p, int clipx, int clipy, int clipw, int cliph) |
Private Member Functions | |
| void | contentsDropEvent (QDropEvent *e) |
Private Attributes | |
| QPixmap | bufferPixmap |
|
|
Definition at line 25 of file subalbumsIconView.cpp.
00025 : QIconView( parent ) 00026 { 00027 } |
|
|
Definition at line 29 of file subalbumsIconView.cpp. References itemHasMoved().
00030 {
00031 QIconView::contentsDropEvent( e );
00032
00033 //get iconviewitem that was dropped
00034 QIconViewItem *item = findItem( e->pos() );
00035
00036 //if item exists and drop item was originally in this viewport then
00037 //user has dragged item within iconview, emit item has moved signal
00038 if( item != NULL && e->source() == viewport())
00039 emit itemHasMoved();
00040 }
|
|
||||||||||||||||||||||||
|
Definition at line 42 of file subalbumsIconView.cpp. References bufferPixmap.
00043 {
00044 if( bufferPixmap.size() != size())
00045 { bufferPixmap.resize( size() ); }
00046 QPainter bufferPainter( &bufferPixmap, viewport() );
00047 int xOffset = clipx - contentsX();
00048 int yOffset = clipy - contentsY();
00049
00050 bufferPainter.translate( -contentsX(), -contentsY() );
00051 QIconView::drawContents( &bufferPainter, clipx, clipy, clipw, cliph );
00052 bitBlt(p->device(), xOffset, yOffset, &bufferPixmap, xOffset, yOffset, clipw, cliph );
00053 }
|
|
|
Referenced by contentsDropEvent(). |
|
|
Definition at line 49 of file subalbumsIconView.h. Referenced by drawContents(). |
1.3.4