diff options
Diffstat (limited to 'src/panels/information/kcommentwidget_p.h')
| -rw-r--r-- | src/panels/information/kcommentwidget_p.h | 9 |
1 files changed, 9 insertions, 0 deletions
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; }; |
