diff options
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. */ |
