From 6e3e08e33ce46101542d2dadf2b363d0b823a647 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sun, 21 Jun 2009 08:16:03 +0000 Subject: Simplify how Nepomuk comments can be edited by the user: - don't provide any mode for editing, just let the user directly manipulate the comment inside the text widget - automatically save changes, no explicit confirmation required svn path=/trunk/KDE/kdebase/apps/; revision=984592 --- src/panels/information/commentwidget.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/panels/information/commentwidget.h') diff --git a/src/panels/information/commentwidget.h b/src/panels/information/commentwidget.h index 8c588518c..93460d703 100644 --- a/src/panels/information/commentwidget.h +++ b/src/panels/information/commentwidget.h @@ -28,17 +28,19 @@ class CommentWidget : public QWidget public: CommentWidget( QWidget* parent = 0 ); - ~CommentWidget(); + virtual ~CommentWidget(); void setComment( const QString& comment ); QString comment() const; + QString editorText() const; + + virtual bool eventFilter( QObject* watched, QEvent* event ); + Q_SIGNALS: void commentChanged( const QString& ); private: - bool eventFilter( QObject* watched, QEvent* event ); - class Private; Private* const d; -- cgit v1.3