Adapt to new kdelibs

svn path=/trunk/KDE/kdebase/workspace/; revision=538512
This commit is contained in:
Laurent Montel 2006-05-08 08:28:37 +00:00
parent 9c5a5fd6ea
commit 366d1ee7cf
6 changed files with 7 additions and 9 deletions

View file

@ -21,7 +21,7 @@
class QSpacerItem;
class QBoxLayout;
class QGridLayout;
class KPixmap;
class QPixmap;
namespace Default {
@ -41,7 +41,7 @@ class KDEDefaultHandler: public KDecorationFactory
unsigned long readConfig( bool update );
void createPixmaps();
void freePixmaps();
void drawButtonBackground(KPixmap *pix,
void drawButtonBackground(QPixmap *pix,
const QPalette &g, bool sunken);
};

View file

@ -250,7 +250,7 @@ void QuartzHandler::readConfig()
// This does the colour transition magic. (You say "Oh, is that it?")
// This may be made configurable at a later stage
void QuartzHandler::drawBlocks( QPixmap *pi, KPixmap &p, const QColor &c1, const QColor &c2 )
void QuartzHandler::drawBlocks( QPixmap *pi, QPixmap &p, const QColor &c1, const QColor &c2 )
{
QPainter px;

View file

@ -43,7 +43,7 @@ class QuartzHandler: public QObject, public KDecorationFactory
void readConfig();
void createPixmaps();
void freePixmaps();
void drawBlocks(KPixmap* pi, KPixmap &p, const QColor &c1, const QColor &c2);
void drawBlocks(QPixmap* pi, QPixmap &p, const QColor &c1, const QColor &c2);
};

View file

@ -551,7 +551,7 @@ void RedmondDeco::paintEvent( QPaintEvent* )
// KS - Add gradient caching if needed at a later stage.
// Create a disposable pixmap buffer for the title blend
QPixmap* titleBuffer = new KPixmap;
QPixmap* titleBuffer = new QPixmap;
*titleBuffer = QPixmap(w-2*modBorderWidth, titleHeight);
if (titleBuffer->depth() > 16) {

View file

@ -67,14 +67,12 @@
typedef KGenericFactory<KWinDecorationModule, QWidget> KWinDecoFactory;
K_EXPORT_COMPONENT_FACTORY( kcm_kwindecoration, KWinDecoFactory("kcmkwindecoration") )
KWinDecorationModule::KWinDecorationModule(QWidget* parent, const char* name, const QStringList &)
KWinDecorationModule::KWinDecorationModule(QWidget* parent, const QStringList &)
: DCOPObject("KWinClientDecoration"),
KCModule(KWinDecoFactory::instance(), parent),
kwinConfig("kwinrc"),
pluginObject(0)
{
setObjectName( name );
kwinConfig.setGroup("Style");
plugins = new KDecorationPreviewPlugins( &kwinConfig );

View file

@ -66,7 +66,7 @@ class KWinDecorationModule : public KCModule, virtual public KWinDecorationIface
Q_OBJECT
public:
KWinDecorationModule(QWidget* parent, const char* name, const QStringList &);
KWinDecorationModule(QWidget* parent, const QStringList &);
~KWinDecorationModule();
virtual void load();