author | mickeyl <mickeyl> | 2003-10-29 16:53:56 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-10-29 16:53:56 (UTC) |
commit | 80fc44ae81d88c4cee5ea160818881acb2422a62 (patch) (side-by-side diff) | |
tree | c7a9b698aa1bc3f12fc757e924ed424916ce1a06 | |
parent | f254437deda45d7cccf2ba3c27c5fe934af1fca7 (diff) | |
download | opie-80fc44ae81d88c4cee5ea160818881acb2422a62.zip opie-80fc44ae81d88c4cee5ea160818881acb2422a62.tar.gz opie-80fc44ae81d88c4cee5ea160818881acb2422a62.tar.bz2 |
merge noncore/styles/*
-rw-r--r-- | noncore/styles/metal/metal.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/styles/metal/metal.cpp b/noncore/styles/metal/metal.cpp index 5cb2d22..e13a249 100644 --- a/noncore/styles/metal/metal.cpp +++ b/noncore/styles/metal/metal.cpp @@ -1,66 +1,65 @@ /**************************************************************************** -** $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 <qpushbutton.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++) { QRgb rgb = img.color(i); QColor c(rgb); rgb = c.light().rgb(); img.setColor(i,rgb); } |