oopapidocs
2.0
|
00001 #ifndef ACTIVITY_H 00002 #define ACTIVITY_H 00003 00004 #include <QPushButton> 00005 #include <QIcon> 00006 #include <QMovie> 00007 #include "icons_export.h" 00010 ICONS_EXPORT QMovie* getMovie(); 00011 00013 ICONS_EXPORT QIcon getCurrentIcon(); 00014 00016 class ICONS_EXPORT ActivityButton : public QPushButton { 00017 Q_OBJECT 00018 public: 00019 ActivityButton(QString text, QWidget* parent =0); 00021 bool isActive() const; 00022 public slots: 00024 void setActive(bool isActive); 00025 protected slots: 00026 void updateIcon(); 00027 private: 00028 bool m_isActive; 00029 }; 00030 00031 #endif // #ifndef ACTIVITY_H