From bbf9faa05396d66b3dbe101a0c309459e3ffacb1 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 26 Oct 2007 19:02:33 +0000 Subject: Simplify DolphinController: don't remember the show-preview state in the controller and add an unnecessary additional signal; instead just read the state from the DolphinView svn path=/trunk/KDE/kdebase/apps/; revision=729726 --- src/dolphincontroller.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/dolphincontroller.h') diff --git a/src/dolphincontroller.h b/src/dolphincontroller.h index d1b0799bf..c5f0e1a2b 100644 --- a/src/dolphincontroller.h +++ b/src/dolphincontroller.h @@ -159,14 +159,6 @@ public: */ void indicateAdditionalInfoChange(const KFileItemDelegate::InformationList& info); - /** - * Informs the view implementation about a change of the show preview - * state and is invoked by the abstract Dolphin view. - * The signal showPreviewChanged() is emitted. - */ - void setShowPreview(bool show); - bool showPreview() const; - /** * Informs the view implementation about a change of the activation * state and is invoked by the abstract Dolphin view. The signal @@ -290,14 +282,6 @@ signals: */ void additionalInfoChanged(const KFileItemDelegate::InformationList& info); - /** - * Is emitted if the state for showing previews has been - * changed to \a show by the abstract Dolphin view. - * The view implementation might connect to this signal if custom - * updates are required in this case. - */ - void showPreviewChanged(bool show); - /** * Is emitted if the activation state has been changed to \a active * by the abstract Dolphin view. @@ -341,7 +325,6 @@ signals: void zoomOut(); private: - bool m_showPreview; bool m_zoomInPossible; bool m_zoomOutPossible; KUrl m_url; @@ -358,11 +341,6 @@ inline const KUrl& DolphinController::url() const return m_url; } -inline bool DolphinController::showPreview() const -{ - return m_showPreview; -} - inline void DolphinController::setZoomInPossible(bool possible) { m_zoomInPossible = possible; -- cgit v1.3