[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-02-12 0:28:56
Message-ID: 1234398536.124135.15367.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 924965 by zwabel:
Revert last change. It has shown that it doesn't work out in the end, the list-view \
still does too much layouting for the horizontal scroll-bar.
M +2 -8 outputwidget.cpp
--- trunk/KDE/kdevplatform/plugins/standardoutputview/outputwidget.cpp #924964:924965
@@ -310,7 +310,6 @@
listview->setViewMode( QListView::ListMode );
listview->setMovement( QListView::Static );
listview->setResizeMode( QListView::Fixed );
- listview->setVerticalScrollMode(QAbstractItemView::ScrollPerItem);
views[id] = listview;
connect( listview, SIGNAL(activated(const QModelIndex&)),
this, SLOT(activate(const QModelIndex&)));
@@ -409,7 +408,7 @@
void OutputWidget::scrollToBottom( int id )
{
-/* if( views.contains( id ) && views.value( id )->verticalScrollBar()->value() == \
views.value( id )->verticalScrollBar()->maximum() ) + if( views.contains( id ) && \
views.value( id )->verticalScrollBar()->value() == views.value( id \
)->verticalScrollBar()->maximum() ) {
kDebug() << "starting auto-scroll timer";
if (!scrollTimers.contains(id)) {
@@ -423,12 +422,7 @@
if (!scrollTimers[id]->isActive())
// 100ms delay in scrolling, for performance reasons
scrollTimers[id]->start(100);
- }*/
- QWidget* w = currentWidget();
- if( !w )
- return;
- QAbstractItemView *view = dynamic_cast<QAbstractItemView*>(w);
- view->scrollToBottom();
+ }
}
void OutputWidget::doScrollToBottom( int id )
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic