From b4c2bc9e062a8df4fe44dc39a8322831575ae607 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 19 May 2007 17:23:35 +0000 Subject: internal cleanup; additional meta information can be shown now, although this code path is deactivated currently because the system hangs when retreiving the meta information of a zip-file svn path=/trunk/KDE/kdebase/apps/; revision=666379 --- src/infosidebarpage.h | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'src/infosidebarpage.h') diff --git a/src/infosidebarpage.h b/src/infosidebarpage.h index c9b15bdac..4bd5671a1 100644 --- a/src/infosidebarpage.h +++ b/src/infosidebarpage.h @@ -120,19 +120,26 @@ private: /** Assures that any pending item information request is cancelled. */ void cancelRequest(); - // TODO: the following methods are just a prototypes for meta - // info generation... - void createMetaInfo(); - void addInfoLine(const QString& labelText, + /** + * Shows the meta information for the current shown item inside + * a label. + */ + void showMetaInfo(); + + /** + * Adds the texts \a labelText and \a infoText as one formated line + * to text. + */ + void addInfoLine(QString& text, + const QString& labelText, const QString& infoText); - void beginInfoLines(); - void endInfoLines(); /** + * Converts the meta key \a key to a readable format into \a text. * Returns true, if the string \a key represents a meta information - * that should be shown. + * that should be shown. If false is returned, \a text is not modified. */ - bool showMetaInfo(const QString& key) const; + bool convertMetaInfo(const QString& key, QString& text) const; private: bool m_pendingPreview; @@ -143,8 +150,7 @@ private: PixmapViewer* m_preview; QLabel* m_name; - QString m_infoLines; - QLabel* m_infos; + QLabel* m_infoLabel; MetaDataWidget* m_metadataWidget; }; -- cgit v1.3