oopapidocs  2.0
activityitem.h
00001 #ifndef ACTIVITYITEM_H
00002 #define ACTIVITYITEM_H
00003 #include "icons_export.h"
00004 #include <QObject>
00005 #include <QStandardItem>
00006 
00008 class ICONS_EXPORT ActivityItem : public QObject, public QStandardItem {
00009     Q_OBJECT
00010 public:
00011     ActivityItem(QString text);
00013     bool isActive() const;  
00014 public slots:
00016     void setActive(bool isActive=true);
00017 protected slots:
00018     void updateIcon();
00019 private:
00020     bool m_isActive;
00021 };
00022 
00023 
00024 #include <QTreeView>
00026 class ICONS_EXPORT ActivityView: public QTreeView {
00027  Q_OBJECT
00028 public:
00029     ActivityView(QObject* parent =0);
00030 public slots:
00031     void itemClicked(QModelIndex);
00032 
00033 };
00034 
00035 
00036 #endif        //  #ifndef ACTIVITYITEM_H
 All Classes Namespaces Functions Enumerations