~ubuntu-branches/ubuntu/feisty/digikam/feisty

« back to all changes in this revision

Viewing changes to digikam/libs/widgets/colorgradientwidget.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Achim Bohnet
  • Date: 2005-03-10 02:39:02 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050310023902-023nymfst5mg696c
Tags: 0.7.2-2
* debian/TODO: clean
* digikam manpage: better --detect-camera description

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* ============================================================
 
2
 * Author: Gilles Caulier <caulier dot gilles at free.fr>
 
3
 * Date  : 2004-07-28
 
4
 * Description : a color gradient widget without arrow.
 
5
 * 
 
6
 * Copyright 2004 by Gilles Caulier
 
7
 *
 
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)
 
12
 * any later version.
 
13
 * 
 
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.
 
18
 * 
 
19
 * ============================================================ */
 
20
 
 
21
// KDE includes.
 
22
 
 
23
#include "colorgradientwidget.h"
 
24
 
 
25
namespace Digikam
 
26
{
 
27
 
 
28
ColorGradientWidget::ColorGradientWidget(Orientation o, int size, QWidget *parent)
 
29
                   : KGradientSelector (o, parent)
 
30
{
 
31
    if ( o == KSelector::Horizontal )
 
32
        setFixedHeight( size );
 
33
    else
 
34
        setFixedWidth( size );
 
35
     
 
36
}      
 
37
 
 
38
ColorGradientWidget::~ColorGradientWidget()
 
39
{
 
40
}
 
41
    
 
42
void ColorGradientWidget::drawArrow( QPainter *, bool , const QPoint & )
 
43
{
 
44
    // Do nothing !!! We won't arrow...
 
45
}
 
46
 
 
47
}
 
48
 
 
49
#include "colorgradientwidget.moc"