#ifndef MULTICOOKTIMEBAR_H #define MULTICOOKTIMEBAR_H #include #include class MultiCookTimeBar : public QWidget { Q_OBJECT public: explicit MultiCookTimeBar(QWidget *parent = 0); signals: public slots: void showNow(); void showPrev(); void showNext(); protected: virtual void paintEvent(QPaintEvent *event); private: int timePosition; QString lastDraw; QTimer checkTimer; QString format; private slots: void check(); }; #endif // MULTICOOKTIMEBAR_H