diff options
| author | Peter Penz <[email protected]> | 2009-02-24 08:09:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-02-24 08:09:35 +0000 |
| commit | 7b6ace6466cf349a4ce7a080d5e978aa0a7043e2 (patch) | |
| tree | 42f92ce2db3868834c7f06a63e256011989d93a7 /src/dolphincontroller.h | |
| parent | 7e7c14ba65bfc524d03bfce00d158010194e9534 (diff) | |
After renaming an item the view should be scrolled in a way to still have a fully visible renamed item. The implementation required a lot of more code changes as such a fix should require: QAbstractItemView::scrollTo() cannot be used directly (inconsistent default behavior in QListView and QTreeView, a special case for the column view), so the communication has to be done with the DolphinController...
BUG: 185191
svn path=/trunk/KDE/kdebase/apps/; revision=930754
Diffstat (limited to 'src/dolphincontroller.h')
| -rw-r--r-- | src/dolphincontroller.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index 29dd7dfb1..ba1036060 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -73,6 +73,7 @@ class QWidget; * - setShowPreview() * - indicateActivationChange() * - setZoomLevel() + * - triggerScrollToCurrentItem() */ class LIBDOLPHINPRIVATE_EXPORT DolphinController : public QObject { @@ -190,6 +191,12 @@ public: int zoomLevel() const; /** + * Triggers the view implementation to assure having a fully visible + * current item. The signal scrollToCurrentItem() will be emitted. + */ + void triggerScrollToCurrentItem(); + + /** * Tells the view implementation to zoom out by emitting the signal zoomOut() * and is invoked by the abstract Dolphin view. */ @@ -369,6 +376,12 @@ signals: */ void hideToolTip(); + /** + * Is emitted if the view implementation should scroll to the current item, so + * that it is fully visible. + */ + void scrollToCurrentItem(); + private slots: void updateMouseButtonState(); |
