Home

Download

Features

Screenshots

Handbook

Browse Source

Authors

SourceForge.net Logo
Hosted by SourceForge.net

OSI Certified


Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages   Search  

fungcolorbutton.h

00001 /***************************************************************************
00002                           fungcolorbutton.h  -  description
00003                              -------------------
00004     begin                : Thu Nov 28 2002
00005     copyright            : (C) 2002-03 by Fungmeista
00006     email                : mizunoami44@users.sourceforge.net
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef FUNGCOLORBUTTON_H
00019 #define FUNGCOLORBUTTON_H
00020 
00021 #include <qpushbutton.h>
00022 
00031 class FungColorButton : public QPushButton
00032 {
00033     Q_OBJECT
00034 
00035     public: 
00036         FungColorButton( QWidget *parent=0, const char *name=0, const QColor & color = Qt::white );
00037 
00038         void setColor(const QColor &);
00039         inline QColor color(){return currentColor;}
00040 
00041     protected:
00042         void mouseReleaseEvent(QMouseEvent *);
00043 
00044     private:
00045         QColor currentColor;
00046         QPixmap p;
00047 };
00048 
00049 #endif