Quantum GIS API Documentation
1.7.5-Wroclaw
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
gui
qgscolorbutton.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgscolorbutton.h - Color button
3
--------------------------------------
4
Date : 12-Dec-2006
5
Copyright : (C) 2006 by Tom Elwertowski
6
Email : telwertowski at users dot sourceforge dot net
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
/* $Id: qgscolorbutton.h 6251 2006-12-13 23:23:50Z telwertowski $ */
16
#ifndef QGSCOLORBUTTON_H
17
#define QGSCOLORBUTTON_H
18
19
#include <QToolButton>
20
#include <QPushButton>
21
25
class
GUI_EXPORT
QgsColorButton
:
public
QToolButton
26
{
27
public
:
28
QgsColorButton
( QWidget *parent = 0 );
29
~
QgsColorButton
();
30
31
void
setColor(
const
QColor &color );
32
QColor
color
()
const
{
return
mColor; }
33
34
protected
:
35
void
paintEvent( QPaintEvent *e );
36
37
private
:
38
QColor
mColor
;
39
};
40
41
42
class
GUI_EXPORT
QgsColorButtonV2
:
public
QPushButton
43
{
44
public
:
45
QgsColorButtonV2
( QWidget* parent = 0 );
46
QgsColorButtonV2
( QString text, QWidget* parent = 0 );
47
48
void
setColor(
const
QColor &color );
49
QColor
color
()
const
{
return
mColor; }
50
51
private
:
52
QColor
mColor
;
53
};
54
55
56
#endif
Generated on Thu Sep 19 2013 17:30:55 for Quantum GIS API Documentation by
1.8.4