1
/***************************************************************************
2
* Project TUPI: Magia 2D *
3
* Project Contact: info@maefloresta.com *
4
* Project Website: http://www.maefloresta.com *
5
* Project Leader: Gustav Gonzalez <info@maefloresta.com> *
9
* Gustavo Gonzalez / xtingray *
20
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
22
* This program is free software; you can redistribute it and/or modify *
23
* it under the terms of the GNU General Public License as published by *
24
* the Free Software Foundation; either version 3 of the License, or *
25
* (at your option) any later version. *
27
* This program is distributed in the hope that it will be useful, *
28
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
29
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
30
* GNU General Public License for more details. *
32
* You should have received a copy of the GNU General Public License *
33
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
34
***************************************************************************/
36
#ifndef KTPENTHICKNESSWIDGET_H
37
#define KTPENTHICKNESSWIDGET_H
39
#include "tapplicationproperties.h"
43
#include <QPaintEvent>
48
* This class shows a preview of the pen thickness
49
* @author Gustav Gonzalez <info@maefloresta.com>
52
class KTPenThicknessWidget : public QWidget
57
KTPenThicknessWidget(QWidget *parent = 0);
58
~KTPenThicknessWidget();
60
QSize minimumSizeHint() const;
61
QSize sizeHint() const;
62
void setColor(const QColor color);
63
void setBrush(int index);
64
void setBrush(const QBrush brush);
67
void render(int thickness);
70
void paintEvent(QPaintEvent *e);