1
/****************************************************************************
2
** $Id: metal.h,v 1.2 2001/11/20 15:19:34 muse Exp $
4
** Definition of the Metal Style for the themes example
8
** Copyright (C) 1997 by Trolltech AS. All rights reserved.
10
** This file is part of an example program for Qt. This example
11
** program may be used, distributed and modified without limitation.
13
*****************************************************************************/
18
#include "qmusewindowsstyle.h"
21
class MetalStyle : public QMuseWindowsStyle
25
void polish( QApplication*);
26
void unPolish( QApplication*);
27
void polish( QWidget* );
28
void unPolish( QWidget* );
30
void drawPrimitive( PrimitiveElement pe,
33
const QColorGroup &cg,
34
SFlags flags = Style_Default,
35
const QStyleOption& = QStyleOption::Default) const;
37
void drawControl( ControlElement element,
39
const QWidget *widget,
41
const QColorGroup &cg,
42
SFlags how = Style_Default,
43
const QStyleOption& = QStyleOption::Default ) const;
45
void drawComplexControl( ComplexControl cc,
47
const QWidget *widget,
49
const QColorGroup &cg,
50
SFlags how = Style_Default,
52
SCFlags subActive = SC_None,
53
const QStyleOption& = QStyleOption::Default ) const;
54
int pixelMetric( PixelMetric, const QWidget * ) const;
58
void drawMetalFrame( QPainter *p, int x, int y, int w, int h ) const;
59
void drawMetalGradient( QPainter *p, int x, int y, int w, int h,
60
bool sunken, bool horz, bool flat=FALSE ) const;
61
void drawMetalButton( QPainter *p, int x, int y, int w, int h,
62
bool sunken, bool horz, bool flat=FALSE ) const;