1
/* ============================================================
2
* Author: Gilles Caulier <caulier dot gilles at free.fr>
4
* Description : a color gradient widget without arrow.
6
* Copyright 2004 by Gilles Caulier
8
* This program is free software; you can redistribute it
9
* and/or modify it under the terms of the GNU General
10
* Public License as published by the Free Software Foundation;
11
* either version 2, or (at your option)
14
* This program is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
* GNU General Public License for more details.
19
* ============================================================ */
23
#include "colorgradientwidget.h"
28
ColorGradientWidget::ColorGradientWidget(Orientation o, int size, QWidget *parent)
29
: KGradientSelector (o, parent)
31
if ( o == KSelector::Horizontal )
32
setFixedHeight( size );
34
setFixedWidth( size );
38
ColorGradientWidget::~ColorGradientWidget()
42
void ColorGradientWidget::drawArrow( QPainter *, bool , const QPoint & )
44
// Do nothing !!! We won't arrow...
49
#include "colorgradientwidget.moc"