"Make it work"(tm) on theme change

svn path=/trunk/kdebase/kwin/; revision=163071
This commit is contained in:
Karol Szwed 2002-06-25 13:14:19 +00:00
parent 0de434cc20
commit 861d667ef6

View file

@ -17,7 +17,7 @@
using namespace KWinInternal; using namespace KWinInternal;
static QPixmap stretchPixmap(QPixmap& src, bool stretchVert){ /* static QPixmap stretchPixmap(QPixmap& src, bool stretchVert){
QPixmap dest; QPixmap dest;
QBitmap *srcMask, *destMask; QBitmap *srcMask, *destMask;
int w, h, w2, h2; int w, h, w2, h2;
@ -55,7 +55,7 @@ static QPixmap stretchPixmap(QPixmap& src, bool stretchVert){
p.end(); p.end();
} }
return dest; return dest;
} } */
@ -222,11 +222,6 @@ static void delete_pixmaps()
titleSunken = false; titleSunken = false;
} }
void KWMThemeClient::slotReset()
{
}
void MyButton::drawButtonLabel(QPainter *p) void MyButton::drawButtonLabel(QPainter *p)
{ {
if(pixmap()){ if(pixmap()){
@ -252,7 +247,6 @@ KWMThemeClient::KWMThemeClient( Workspace *ws, WId w, QWidget *parent,
: Client( ws, w, parent, name, WResizeNoErase | WStaticContents ) : Client( ws, w, parent, name, WResizeNoErase | WStaticContents )
{ {
stickyBtn = maxBtn = mnuBtn = 0; stickyBtn = maxBtn = mnuBtn = 0;
connect(options, SIGNAL(resetClients()), this, SLOT(slotReset()));
layout = new QGridLayout(this); layout = new QGridLayout(this);
layout->addColSpacing(0, maxExtent); layout->addColSpacing(0, maxExtent);
layout->addColSpacing(2, maxExtent); layout->addColSpacing(2, maxExtent);
@ -836,6 +830,7 @@ extern "C"
{ {
delete_pixmaps(); delete_pixmaps();
create_pixmaps(); create_pixmaps();
Workspace::self()->slotResetAllClientsDelayed();
} }
void deinit() void deinit()
{ {