┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-05-19 17:23:35 +0000
committerPeter Penz <[email protected]>2007-05-19 17:23:35 +0000
commitb4c2bc9e062a8df4fe44dc39a8322831575ae607 (patch)
tree62a7ea93c01d20c8cf7fc392fd7be72d1b774ca1 /src/infosidebarpage.h
parenta97895441cd269280c6fe15efc882413a2c2265d (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.h26
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;
};