~ubuntu-branches/ubuntu/precise/gwenview/precise-proposed

« back to all changes in this revision

Viewing changes to lib/preferredimagemetainfomodel.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:54 UTC
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20111215141754-z043hyx69dulbggf
Tags: upstream-4.7.90
Import upstream version 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// vim: set tabstop=4 shiftwidth=4 noexpandtab:
 
1
// vim: set tabstop=4 shiftwidth=4 expandtab:
2
2
/*
3
3
Gwenview: an image viewer
4
4
Copyright 2008 Aurélien Gâteau <agateau@kde.org>
29
29
// Local
30
30
#include <lib/imagemetainfomodel.h>
31
31
 
32
 
namespace Gwenview {
33
 
 
 
32
namespace Gwenview
 
33
{
34
34
 
35
35
/**
36
36
 * This model uses an instance of ImageMetaInfoModel to make it possible to
37
37
 * select your preferred image metainfo keys by checking them.
38
38
 */
39
39
struct PreferredImageMetaInfoModelPrivate;
40
 
class GWENVIEWLIB_EXPORT PreferredImageMetaInfoModel : public QSortFilterProxyModel {
41
 
        Q_OBJECT
 
40
class GWENVIEWLIB_EXPORT PreferredImageMetaInfoModel : public QSortFilterProxyModel
 
41
{
 
42
    Q_OBJECT
42
43
public:
43
 
        PreferredImageMetaInfoModel(ImageMetaInfoModel* model, const QStringList& list);
44
 
        ~PreferredImageMetaInfoModel();
 
44
    PreferredImageMetaInfoModel(ImageMetaInfoModel* model, const QStringList& list);
 
45
    ~PreferredImageMetaInfoModel();
45
46
 
46
 
        virtual QVariant data(const QModelIndex&, int role = Qt::DisplayRole) const;
47
 
        virtual bool setData(const QModelIndex& index, const QVariant& value, int role);
48
 
        virtual Qt::ItemFlags flags(const QModelIndex& index) const;
 
47
    virtual QVariant data(const QModelIndex&, int role = Qt::DisplayRole) const;
 
48
    virtual bool setData(const QModelIndex& index, const QVariant& value, int role);
 
49
    virtual Qt::ItemFlags flags(const QModelIndex& index) const;
49
50
 
50
51
Q_SIGNALS:
51
 
        void preferredMetaInfoKeyListChanged(const QStringList&);
 
52
    void preferredMetaInfoKeyListChanged(const QStringList&);
52
53
 
53
54
private:
54
 
        PreferredImageMetaInfoModelPrivate* const d;
55
 
        friend struct PreferredImageMetaInfoModelPrivate;
 
55
    PreferredImageMetaInfoModelPrivate* const d;
 
56
    friend struct PreferredImageMetaInfoModelPrivate;
56
57
};
57
58
 
58
 
 
59
59
} // namespace
60
60
 
61
61
#endif /* PREFERREDIMAGEMETAINFOMODEL_H */