1 #ifndef BUTTONSCELL_H 2 #define BUTTONSCELL_H 3 4 #include <QtWidgets> 5 #include <QWidget> 6 #include "cellbtn.h" 7 8 class ButtonsCell : public QWidget 9 { 10 Q_OBJECT 11 12 public: 13 static const int ACTIONID_NONE; 14 static const int ACTIONID_PLAY; 15 static const int ACTIONID_SAVE; 16 static const int ACTIONID_COPY; 17 static const int ACTIONID_DELETE; 18 19 ButtonsCell(QWidget* parent = 0, int hideBtn = 0); 20 21 int GetActionId(); 22 23 signals: 24 void CellButtonClickedSignal(); 25 26 protected slots: 27 void ButtonClickedSlot(); 28 29 private: 30 CellBtn *mDeleteBtn; 31 CellBtn *mPlayBtn; 32 CellBtn *mSaveBtn; 33 CellBtn *mCopyBtn; 34 35 QList<CellBtn*> mButtonsList; 36 37 int mActionId; 38 }; 39 40 #endif // BUTTONSCELL_H 41