diff options
| author | Peter Penz <[email protected]> | 2010-03-13 13:38:40 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2010-03-13 13:38:40 +0000 |
| commit | 54a1499586d5395f0f4589ce6deb6431d02eb866 (patch) | |
| tree | ccbab754f09c2d2a98c1519267d0776e7e60b8a0 /src/panels/information/kmetadatawidget.h | |
| parent | a7f4541eb8c4d33e30ee733cc39b3d40b237e903 (diff) | |
Provide a KMetaDataModel for KMetaDataWidget.
This allows to extend the model with custom meta data (might e. g. be useful for Gwenview).
svn path=/trunk/KDE/kdebase/apps/; revision=1102749
Diffstat (limited to 'src/panels/information/kmetadatawidget.h')
| -rw-r--r-- | src/panels/information/kmetadatawidget.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/panels/information/kmetadatawidget.h b/src/panels/information/kmetadatawidget.h index 715defbc3..858f1998a 100644 --- a/src/panels/information/kmetadatawidget.h +++ b/src/panels/information/kmetadatawidget.h @@ -1,6 +1,6 @@ /***************************************************************************** * Copyright (C) 2008 by Sebastian Trueg <[email protected]> * - * Copyright (C) 2009 by Peter Penz <[email protected]> * + * Copyright (C) 2009-2010 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 * @@ -27,6 +27,7 @@ #include <config-nepomuk.h> +class KMetaDataModel; class KUrl; /** @@ -38,6 +39,10 @@ class KUrl; * to change specific meta data like rating, tags and * comment. The changes are stored automatically by the * meta data widget. + * + * To show more than basic meta data, the meta data widget + * must be provided with a meta data model + * (see KMetaDataWidget::setModel()). */ class KMetaDataWidget : public QWidget { @@ -102,6 +107,13 @@ public: KFileItemList items() const; /** + * Sets the used model which provides the data for the widget. + * One model can be shared by several meta data widgets. + */ + void setModel(KMetaDataModel* model); + KMetaDataModel* model() const; + + /** * If set to true, data like comment, tag or rating cannot be changed by the user. * Per default read-only is disabled. */ |
