[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kdmthemes
From: Unai Garro <ugarro () telefonica ! net>
Date: 2004-04-04 18:38:48
Message-ID: 20040404183848.516129A01 () office ! kde ! org
[Download RAW message or body]
CVS commit by uga:
Redraw the widgets when necessary
M +0 -1 kdmbox.cpp 1.23
M +0 -1 kdmpixmap.cpp 1.8
M +0 -1 kdmrect.cpp 1.8
M +8 -2 kdmthemer.cpp 1.67
--- kdenonbeta/kdmthemes/kdmbox.cpp #1.22:1.23
@@ -165,5 +165,4 @@ void
KdmBox::drawWidget(QPainter *p, KdmThemer *t)
{
- kdDebug() << "Drawing box "<< endl;
drawChildren(p,t); // Call it to continue drawing all the children
}
--- kdenonbeta/kdmthemes/kdmpixmap.cpp #1.7:1.8
@@ -35,5 +35,4 @@ void KdmPixmap::setFocused(bool focus)
void KdmPixmap::drawWidget(QPainter *p, KdmThemer *t)
{
- kdDebug() << "drawing pixmap" << endl;
QPixmap iconPixmap=*(icon());
QRect r=area();
--- kdenonbeta/kdmthemes/kdmrect.cpp #1.7:1.8
@@ -34,5 +34,4 @@ void KdmRect::setFocused(bool focus)
void KdmRect::drawWidget(QPainter *p, KdmThemer *t)
{
- kdDebug() << "Drawing rect" << endl;
if(!color().isValid())
return;
--- kdenonbeta/kdmthemes/kdmthemer.cpp #1.66:1.67
@@ -107,4 +107,5 @@ void KdmThemer::childEvent(QChildEvent *
* so that we know when to redraw it
*/
+ kdDebug()<<"connecting widget"<<(void *) w<<"\n";
connect (w,SIGNAL(redrawWidget(const QRect&)),this,SLOT(update(const \
QRect&)));
@@ -359,4 +360,8 @@ QRect KdmThemer::generateItem(KdmWidget
+ /*
+ * Signal redrawing events to the themer
+ */
+ if (newItem) connect (newItem,SIGNAL(redrawWidget(const \
QRect&)),this,SLOT(update(const QRect&)));
/*
@@ -635,4 +640,5 @@ if (counter==0) kdDebug()<<"\n\n<=======
void KdmThemer::paintEvent(QPaintEvent* e)
{
+ kdDebug()<<"Repainting main widget!\n";
QRegion region=e->region();
QValueList <KdmWidget*>::Iterator it;
@@ -649,5 +655,5 @@ void KdmThemer::paintEvent(QPaintEvent*
// Get the widget position
KdmWidget *w=(*it);
- showStructure(w);
+ //showStructure(w);
w->drawWidget(p, this);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic