diff options
| author | Peter Penz <[email protected]> | 2007-05-19 17:23:35 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-05-19 17:23:35 +0000 |
| commit | b4c2bc9e062a8df4fe44dc39a8322831575ae607 (patch) | |
| tree | 62a7ea93c01d20c8cf7fc392fd7be72d1b774ca1 /src/infosidebarpage.h | |
| parent | a97895441cd269280c6fe15efc882413a2c2265d (diff) | |
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
Diffstat (limited to 'src/infosidebarpage.h')
| -rw-r--r-- | src/infosidebarpage.h | 26 |
1 files changed, 16 insertions, 10 deletions
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; }; |
