From 36ae0b6185e310113e0e31e247919da866d7f91b Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 11 Nov 2009 18:59:29 +0000 Subject: * don't show the "Add Tags..." and "Add Comments..." links for the meta data inside a tooltip * minor cleanup of thread-interface to allow a proper sorting/merging on client side svn path=/trunk/KDE/kdebase/apps/; revision=1047662 --- src/panels/information/kcommentwidget_p.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/panels/information/kcommentwidget_p.h') diff --git a/src/panels/information/kcommentwidget_p.h b/src/panels/information/kcommentwidget_p.h index 977531372..cd895223f 100644 --- a/src/panels/information/kcommentwidget_p.h +++ b/src/panels/information/kcommentwidget_p.h @@ -39,6 +39,14 @@ public: void setText(const QString& comment); QString text() const; + /** + * If set to true, the comment cannot be changed by the user. + * Per default read-only is disabled. + */ + // TODO: provide common interface class for metadatawidgets + void setReadOnly(bool readOnly); + bool isReadOnly() const; + signals: void commentChanged(const QString& comment); @@ -46,6 +54,7 @@ private slots: void slotLinkActivated(const QString& link); private: + bool m_readOnly; QLabel* m_label; QString m_comment; }; -- cgit v1.3.1