[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Wed Nov 23 20:54:59 CET 2005
SVN commit 482686 by staikos:
turn on debugging so we can see what's happening
M +8 -5 kstviewwidget.cpp
--- trunk/extragear/graphics/kst/kst/kstviewwidget.cpp #482685:482686
@@ -192,7 +192,7 @@
void KstViewWidget::mousePressEvent(QMouseEvent *e) {
- //kstdDebug() << "Press event. button=" << e->button() << " state=" << e->state() << endl;
+ kstdDebug() << "Press event. button=" << e->button() << " state=" << e->state() << endl;
if (_view->viewMode() == KstTopLevelView::DisplayMode) {
KstViewObjectPtr vo;
@@ -202,7 +202,7 @@
vo = findChildFor(e->pos());
}
if (vo) {
- //kstdDebug() << "Found mouse handler " << vo->tagName() << endl;
+ kstdDebug() << "Found mouse handler " << vo->tagName() << endl;
vo->mousePressEvent(this, e);
}
return;
@@ -210,18 +210,19 @@
// Layout/graphics mode
if (e->button() & Qt::LeftButton) {
+ kstdDebug() << " -> left button" << endl;
if (_view->handlePress(e->pos(), e->state() & Qt::ShiftButton)) {
- //kstdDebug() << " -> Accepting" << endl;
+ kstdDebug() << " -> Accepting" << endl;
e->accept();
return;
}
}
if (e->state() & Qt::LeftButton && _view->tracking()) {
- //kstdDebug() << " -> Swallowing" << endl;
+ kstdDebug() << " -> Swallowing" << endl;
e->accept(); // swallow
return;
}
- //kstdDebug() << " -> Passing up" << endl;
+ kstdDebug() << " -> Passing up" << endl;
QWidget::mousePressEvent(e);
}
@@ -350,8 +351,10 @@
if (e) { // Resize/expose/etc triggered by X11
QRegion r = e->region();
if (r.isEmpty()) {
+ kstdDebug() << "Paint event with NO region" << endl;
_view->paint(_nextUpdate);
} else {
+ kstdDebug() << "Paint event with region " << e->region() << endl;
_view->paint(_nextUpdate, e->region());
}
_nextUpdate = P_PAINT;
More information about the Kst
mailing list