diff options
Diffstat (limited to 'src/dolphinview.h')
| -rw-r--r-- | src/dolphinview.h | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/src/dolphinview.h b/src/dolphinview.h index bcccb7404..ebca53e99 100644 --- a/src/dolphinview.h +++ b/src/dolphinview.h @@ -236,18 +236,14 @@ public: KFileItem* fileItem(const QModelIndex index) const; /** - * Returns the x-position of the view content. - * The content of the view might be larger than the visible area + * Sets the upper left position of the view content + * to (x,y). The content of the view might be larger than the visible area * and hence a scrolling must be done. */ - int contentsX() const; + void setContentsPosition(int x, int y); - /** - * Returns the y-position of the view content. - * The content of the view might be larger than the visible area - * and hence a scrolling must be done. - */ - int contentsY() const; + /** Returns the upper left position of the view content. */ + QPoint contentsPosition() const; /** Increases the size of the current set view mode. */ void zoomIn(); @@ -415,12 +411,6 @@ private slots: */ void showPreview(const KFileItem& item, const QPixmap& pixmap); - /** - * Restores the x- and y-position of the contents if the - * current view is part of the history. - */ - void restoreContentsPos(); - void emitSelectionChangedSignal(); /** |
