┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/information/kcommentwidget_p.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2010-03-22 22:23:02 +0000
committerPeter Penz <[email protected]>2010-03-22 22:23:02 +0000
commitcaf017c2fefa8280046b02cfd071a118f2909ced (patch)
treea17f5bd569830806d679c7aedf103861ff9b2507 /src/panels/information/kcommentwidget_p.h
parent622acabf23b6c8c3badab6a8c2e93e0ae8963f1b (diff)
Use KFileMetaDataWidget from kdelibs. Still open: Provide dialog which wraps KFileMetaDataConfigurationWidget.
svn path=/trunk/KDE/kdebase/apps/; revision=1106465
Diffstat (limited to 'src/panels/information/kcommentwidget_p.h')
-rw-r--r--src/panels/information/kcommentwidget_p.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/src/panels/information/kcommentwidget_p.h b/src/panels/information/kcommentwidget_p.h
deleted file mode 100644
index b40fa71bc..000000000
--- a/src/panels/information/kcommentwidget_p.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/*****************************************************************************
- * Copyright (C) 2008 by Sebastian Trueg <[email protected]> *
- * Copyright (C) 2009 by Peter Penz <[email protected]> *
- * *
- * This library is free software; you can redistribute it and/or *
- * modify it under the terms of the GNU Library General Public *
- * License version 2 as published by the Free Software Foundation. *
- * *
- * This library is distributed in the hope that it will be useful, *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
- * Library General Public License for more details. *
- * *
- * You should have received a copy of the GNU Library General Public License *
- * along with this library; see the file COPYING.LIB. If not, write to *
- * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
- * Boston, MA 02110-1301, USA. *
- *****************************************************************************/
-
-#ifndef KCOMMENT_WIDGET
-#define KCOMMENT_WIDGET
-
-#include <QString>
-#include <QWidget>
-
-class QLabel;
-
-/**
- * @brief Allows to edit and show a comment as part of KMetaDataWidget.
- */
-class KCommentWidget : public QWidget
-{
- Q_OBJECT
-
-public:
- KCommentWidget(QWidget* parent);
- virtual ~KCommentWidget();
-
- 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);
-
-protected:
- virtual bool event(QEvent* event);
-
-private slots:
- void slotLinkActivated(const QString& link);
-
-private:
- bool m_readOnly;
- QLabel* m_label;
- QString m_comment;
-};
-
-#endif