akonadi/contact
tagwidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TAGWIDGET_H
00023 #define TAGWIDGET_H
00024
00025 #include <QtGui/QWidget>
00026
00027 #include <nepomuk/tag.h>
00028
00029 class QHBoxLayout;
00030 class QLabel;
00031 class QToolButton;
00032
00033 class TagWidget : public QWidget
00034 {
00035 Q_OBJECT
00036
00037 public:
00038 explicit TagWidget( QWidget *parent = 0 );
00039 ~TagWidget();
00040
00041 void setTags( const QVector<Nepomuk::Tag> &tags );
00042 QVector<Nepomuk::Tag> tags() const;
00043
00044 private Q_SLOTS:
00045 void editTags();
00046
00047 private:
00048 void updateView();
00049
00050 QToolButton *mEditButton;
00051 QLabel *mTagLabel;
00052
00053 QVector<Nepomuk::Tag> mTags;
00054 };
00055
00056 #endif