Eneboo - Documentación para desarrolladores
src/qsa/src/custom/quickcolorbutton.h
Ir a la documentación de este archivo.
00001 /****************************************************************************
00002 ** $Id: quickcolorbutton.h  1.1.5   edited 2006-02-23T15:39:57$
00003 **
00004 ** Copyright (C) 2001-2006 Trolltech AS.  All rights reserved.
00005 **
00006 ** This file is part of the Qt Script for Applications framework (QSA).
00007 **
00008 ** This file may be distributed and/or modified under the terms of the
00009 ** GNU General Public License version 2 as published by the Free Software
00010 ** Foundation and appearing in the file LICENSE.GPL included in the
00011 ** packaging of this file.
00012 **
00013 ** Licensees holding a valid QSA Beta Evaluation Version license may use
00014 ** this file in accordance with the QSA Beta Evaluation Version License
00015 ** Agreement provided with the Software.
00016 **
00017 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00018 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00019 **
00020 ** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
00021 **   information about QSA Commercial License Agreements.
00022 ** See http://www.trolltech.com/gpl/ for GPL licensing information.
00023 **
00024 ** Contact info@trolltech.com if any conditions of this licensing are
00025 ** not clear to you.
00026 **
00027 *****************************************************************************/
00028 
00029 #ifndef QUICKCOLORBUTTON_H
00030 #define QUICKCOLORBUTTON_H
00031 
00032 #include <qpushbutton.h>
00033 
00034 class ColorButton : public QPushButton
00035 {
00036     Q_OBJECT
00037 
00038     Q_PROPERTY( QString color READ color WRITE setColor )
00039 
00040 public:
00041     ColorButton( QWidget *parent, const char *name );
00042 
00043     QString color() const;
00044     void setColor( const QString &c );
00045 
00046 signals:
00047     void colorChanged( const QColor &color );
00048 
00049 private slots:
00050     void getColor();
00051 
00052 private:
00053     void createPixmap();
00054     QColor col;
00055 
00056 };
00057 
00058 #endif
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'