┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/kcommentwidget_p.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-11-11 18:59:29 +0000
committerPeter Penz <[email protected]>2009-11-11 18:59:29 +0000
commit36ae0b6185e310113e0e31e247919da866d7f91b (patch)
tree0b3ee37adc99e364993c0624c56a8e8760d4bcb4 /src/panels/information/kcommentwidget_p.h
parent6d0ddb92fd7e872a9b54782a2bf2a998c7980531 (diff)
* 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
Diffstat (limited to 'src/panels/information/kcommentwidget_p.h')
-rw-r--r--src/panels/information/kcommentwidget_p.h9
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;
};