AlbumShaper  1.0a3
item.h
Go to the documentation of this file.
00001 //==============================================
00002 //  copyright            : (C) 2003-2005 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 
00011 #ifndef GUI_WELCOMEWINDOW_ITEM_H
00012 #define GUI_WELCOMEWINDOW_ITEM_H
00013 
00014 //--------------------
00015 //forward declarations
00016 class QPixmap;
00017 class QString;
00018 //--------------------
00019 
00020 #include <qiconview.h>
00021 #include <qobject.h>
00022 #include <qstring.h>
00023 
00024 //=====================================
00025 class Item : public QIconViewItem
00026 {
00027 public:
00028   Item( QIconView* parent, QPixmap icon, QString text);
00029 
00030   void paintItem( QPainter* p, const QColorGroup& cg);
00031   void paintFocus( QPainter *, const QColorGroup &) { }
00032   void setMousedOver(bool val);
00033   void setTextWidth(int w);
00034 private:
00035   bool mousedOver;
00036 };
00037 //======================
00038 
00039 #endif //GUI_WELCOMEWINDOW_ITEM_H