From d96712f50ea5ab3fd0998d5118fcc5c0d6e804e9 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 27 Jun 2008 20:01:04 +0000 Subject: tried to simplify the logic to decide whether the information panel should show the information for one file or for a multiple selection CCMAIL: sebastian@trueg.de svn path=/trunk/KDE/kdebase/apps/; revision=825317 --- src/infosidebarpage.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/infosidebarpage.h') diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index b15a01814..5663c119c 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -139,6 +139,23 @@ private: */ bool convertMetaInfo(const QString& key, QString& text) const; + /** + * Returns the URL of the file where the preview and meta information + * should be received, if InfoSidebarPage::showMultipleSelectionInfo() + * returns false. + */ + KUrl fileUrl() const; + + /** + * Returns true, if the meta information should be shown for + * the items multiple selected items that are stored in + * m_selection. If true is returned, it is assured that + * m_selection.count() > 1. If false is returned, the meta + * information should be shown for the file + * InfosidebarPage::fileUrl(); + */ + bool showMultipleSelectionInfo() const; + void init(); private: -- cgit v1.3.1