00001 //============================================== 00002 // copyright : (C) 2003 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // As a special exception, Will Stokes gives permission to 00011 // link this program with Qt non-commercial edition, and 00012 // distribute the resulting executable, without including the 00013 // source code for the Qt non-commercial edition in the 00014 // source distribution. 00015 //============================================== 00016 00017 #ifndef GUI_SUBALBUMSICONVIEW_H 00018 #define GUI_SUBALBUMSICONVIEW_H 00019 00020 //-------------------- 00021 //forward declarations 00022 class QPixmap; 00023 class QPainter; 00024 //-------------------- 00025 00026 #include <qiconview.h> 00027 00028 //===================================== 00033 //===================================== 00034 class SubalbumsIconView : public QIconView 00035 { 00036 Q_OBJECT 00037 00038 public: 00039 SubalbumsIconView( QWidget *parent ); 00040 //---------------------- 00041 signals: 00042 void itemHasMoved(); 00043 //---------------------- 00044 protected: 00045 void drawContents ( QPainter * p, int clipx, int clipy, int clipw, int cliph ); 00046 //---------------------- 00047 private: 00048 void contentsDropEvent( QDropEvent *e ); 00049 QPixmap bufferPixmap; 00050 //---------------------- 00051 }; 00052 //====================== 00053 00054 #endif //GUI_SUBALBUMSICONVIEW_H