[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdevplatform/plugins/standardoutputview
From: David Nolden <david.nolden.kde () art-master ! de>
Date: 2009-04-15 21:54:04
Message-ID: 1239832444.821367.17527.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 954557 by zwabel:
- Make the decision whether the view should scroll or not precise, by comparing the \
viewport rect instead of the widget rect
- Remove some debug output
M +1 -3 outputwidget.cpp
--- trunk/KDE/kdevplatform/plugins/standardoutputview/outputwidget.cpp #954556:954557
@@ -414,9 +414,7 @@
for( QMap< int, QTreeView* >::const_iterator it = views.constBegin(); it != \
views.constEnd(); ++it) { if((*it)->model() == sender()) {
QModelIndex pre = (*it)->model()->index(from-1, 0);
- kDebug() << pre.isValid() << (*it)->visualRect(pre).isValid() << (to == \
(*it)->model()->rowCount()-1);
- kDebug() << (*it)->rect() << (*it)->visualRect(pre);
- if(!pre.isValid() || ((*it)->visualRect(pre).isValid() && (*it)->rect \
().intersects((*it)->visualRect(pre)) && to == (*it)->model()->rowCount()-1)) { + \
if(!pre.isValid() || ((*it)->visualRect(pre).isValid() && \
(*it)->viewport()->rect().intersects((*it)->visualRect(pre)) && to == \
(*it)->model()->rowCount()-1)) { (*it)->scrollToBottom();
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic