00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef GUI_RECENTALBUMMENUITEM_H
00012 #define GUI_RECENTALBUMMENUITEM_H
00013
00014 #include <qmenudata.h>
00015 #include <qimage.h>
00016
00017
00018
00019
00022
00023 class RecentAlbumMenuItem : public QCustomMenuItem
00024 {
00025
00026 public:
00027 RecentAlbumMenuItem( QString albumName, QString albumLocation, QString numPhotos );
00028
00030 void paint( QPainter * p, const QColorGroup & cg, bool act, bool enabled,
00031 int x, int y, int w, int h );
00032
00034 QSize sizeHint ();
00035
00037 bool fullSpan() const;
00038
00039 private:
00041 QImage albumImage;
00042
00044 QString albumName;
00045
00047 QString numPhotos;
00048
00050 QSize size;
00051
00053 int idealImageWidth;
00054
00055 };
00056
00057 #endif //GUI_RECENTALBUMMENUITEM_H