#ifndef DOTPROGRESSBARWIDGET_H #define DOTPROGRESSBARWIDGET_H #include #include namespace Ui { class DotProgressBarWidget; } class DotProgressBarWidget : public QWidget { Q_OBJECT public: explicit DotProgressBarWidget(QWidget *parent = 0); ~DotProgressBarWidget(); void setMaxProgress(int curProgress, int maxProgress); void setCurrentProgress(int progress); private: void reloadUi(void); Ui::DotProgressBarWidget *ui; QPixmap basePixmap; QPixmap coverPixmap; QListm_ctrLabelList; int m_nCurProgress; int m_nMaximumProgress; }; #endif // DOTPROGRESSBARWIDGET_H