summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2003-05-26 04:07:44 (UTC)
committer llornkcor <llornkcor>2003-05-26 04:07:44 (UTC)
commitf63dee18fe56ba54d9203836722a1f499e2539f3 (patch) (side-by-side diff)
tree557b83bb4048094072d9163f687b54ea8a709c96
parent4a9831b570a60075650863b571b0875e96ca8ad6 (diff)
downloadopie-f63dee18fe56ba54d9203836722a1f499e2539f3.zip
opie-f63dee18fe56ba54d9203836722a1f499e2539f3.tar.gz
opie-f63dee18fe56ba54d9203836722a1f499e2539f3.tar.bz2
remove extra includes
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/styles/metal/metal.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/noncore/styles/metal/metal.cpp b/noncore/styles/metal/metal.cpp
index 2380fed..5cb2d22 100644
--- a/noncore/styles/metal/metal.cpp
+++ b/noncore/styles/metal/metal.cpp
@@ -1,70 +1,61 @@
/****************************************************************************
** $Id$
**
** Copyright (C) 1992-2000 Trolltech AS. All rights reserved.
**
** This file is part of an example program for Qt. This example
** program may be used, distributed and modified without limitation.
**
*****************************************************************************/
#include "metal.h"
#include <qapplication.h>
-#include <qpainter.h>
-#include <qdrawutil.h> // for now
-#include <qpixmap.h> // for now
-#include <qpalette.h> // for now
-#include <qwidget.h>
-#include <qlabel.h>
-#include <qimage.h>
#include <qpushbutton.h>
-#include <qwidget.h>
-#include <qrangecontrol.h>
#include <qscrollbar.h>
#include <limits.h>
/////////////////////////////////////////////////////////
#include "stonedark.xpm"
#include "stone1.xpm"
#include "marble.xpm"
///////////////////////////////////////////////////////
MetalStyle::MetalStyle() : QWindowsStyle() { }
/*!
Reimplementation from QStyle
*/
void MetalStyle::polish( QApplication *app)
{
oldPalette = app->palette();
// we simply create a nice QColorGroup with a couple of fancy
// pixmaps here and apply to it all widgets
QFont f("times", app->font().pointSize() );
f.setBold( TRUE );
f.setItalic( TRUE );
app->setFont( f, TRUE, "QMenuBar");
app->setFont( f, TRUE, "QPopupMenu");
//QPixmap button( stone1_xpm );
QPixmap button( stonedark_xpm );
QPixmap background(marble_xpm);
#if 0
int i;
for (i=0; i<img.numColors(); i++) {
QRgb rgb = img.color(i);
QColor c(rgb);
rgb = c.dark().rgb();
img.setColor(i,rgb);
}
QPixmap mid;
mid.convertFromImage(img);
img = orig;
for (i=0; i<img.numColors(); i++) {