author | sandman <sandman> | 2002-11-29 11:35:14 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-11-29 11:35:14 (UTC) |
commit | 3abc1725d255b507f42bcf060018d3ce0b461f4d (patch) (side-by-side diff) | |
tree | af6b2ca73fbc570f104f44223ba7d7d201553cc6 /noncore/styles/liquid/liquid.cpp | |
parent | 96d75cae7e5f270a543b0eb6138c6967577f2b11 (diff) | |
download | opie-3abc1725d255b507f42bcf060018d3ce0b461f4d.zip opie-3abc1725d255b507f42bcf060018d3ce0b461f4d.tar.gz opie-3abc1725d255b507f42bcf060018d3ce0b461f4d.tar.bz2 |
Not making at least qDebug outputs on every QToolButton redraw may speed
things up a bit ;)
Diffstat (limited to 'noncore/styles/liquid/liquid.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/styles/liquid/liquid.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/noncore/styles/liquid/liquid.cpp b/noncore/styles/liquid/liquid.cpp index daac22c..e6d8310 100644 --- a/noncore/styles/liquid/liquid.cpp +++ b/noncore/styles/liquid/liquid.cpp @@ -1095,34 +1095,30 @@ bool LiquidStyle::eventFilter(QObject *obj, QEvent *ev) if(child->isWidgetType()) ((QWidget *)child)->repaint(true); } } } else if(obj->inherits("QToolButton")){ QToolButton *btn = (QToolButton *)obj; if(ev->type() == QEvent::FocusIn ){ // && !btn-> autoRaise () if(btn->isEnabled()){ highlightWidget = btn; btn->repaint(false); - - qDebug ( "TB FOCUS IN [%p]", btn ); } } else if(ev->type() == QEvent::FocusOut ){ if(btn == highlightWidget){ highlightWidget = NULL; btn->repaint(false); - - qDebug ( "TB FOCUS OUT [%p]", btn ); } } else if(ev->type() == QEvent::Paint) { (( HackToolButton *) btn )-> paint ((QPaintEvent *) ev ); return true; } } else if(obj->inherits("QRadioButton") || obj->inherits("QCheckBox")){ QButton *btn = (QButton *)obj; bool isRadio = obj->inherits("QRadioButton"); if(ev->type() == QEvent::Paint){ //if(btn->autoMask()) @@ -1238,29 +1234,26 @@ void LiquidStyle::drawToolButton(QPainter *p, int x, int y, int w, int h, // fill QPixmap *pix = bevelFillDict.find(c.rgb()); if(!pix){ int h, s, v; c.hsv(&h, &s, &v); pix = new QPixmap(*bevelFillPix); adjustHSV(*pix, h, s, v); bevelFillDict.insert(c.rgb(), pix); } p->drawTiledPixmap(x+2, y+2, w-4, h-4, *pix); - qDebug ( "DRAW TOOLBUTTON IN PIXMAP" ); } else{ - qDebug ( "DRAW TOOLBUTTON sunken=%d/high=%p/device=%p", sunken, highlightWidget,p->device() ); - drawClearBevel(p, x, y, w, h, sunken ? g.button() : highlightWidget == p->device() ? g.button().light(110) : g.background(), g.background()); } } void LiquidStyle::drawPushButton(QPushButton *btn, QPainter *p) { QRect r = btn->rect(); bool sunken = btn->isOn() || btn->isDown(); QColorGroup g = btn->colorGroup(); |