diff options
| author | Frank Reininghaus <[email protected]> | 2011-08-14 17:20:33 +0200 |
|---|---|---|
| committer | Frank Reininghaus <[email protected]> | 2011-08-14 17:21:18 +0200 |
| commit | 2476f632de00829425f458462c3b16ea661dfe2f (patch) | |
| tree | 216926d10f61207e7a263635183ffb05340b6c65 /src/kitemviews/kitemlistcontainer.cpp | |
| parent | a7060e6fec46c859000fe963ddf1f8381246741d (diff) | |
Keep the current item visible in the view
Diffstat (limited to 'src/kitemviews/kitemlistcontainer.cpp')
| -rw-r--r-- | src/kitemviews/kitemlistcontainer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistcontainer.cpp b/src/kitemviews/kitemlistcontainer.cpp index 28e526a6f..b8d05dc34 100644 --- a/src/kitemviews/kitemlistcontainer.cpp +++ b/src/kitemviews/kitemlistcontainer.cpp @@ -267,6 +267,11 @@ void KItemListContainer::updateScrollBars() scrollBar->setMaximum(maximum); scrollBar->setValue(value); + disconnect(view, SIGNAL(scrollTo(int)), + otherScrollBar, SLOT(setValue(int))); + connect(view, SIGNAL(scrollTo(int)), + scrollBar, SLOT(setValue(int))); + // Make sure that the other scroll bar is hidden otherScrollBar->setMaximum(0); otherScrollBar->setValue(0); |
