iCub-main
loadingwidget.h
Go to the documentation of this file.
1 #ifndef LOADINGWIDGET_H
2 #define LOADINGWIDGET_H
3 
4 #include <QDialog>
5 #include <QTimer>
6 #include <QMutex>
7 namespace Ui {
8 class LoadingWidget;
9 }
10 
11 class LoadingWidget : public QDialog
12 {
13  Q_OBJECT
14 
15 public:
16  explicit LoadingWidget(QWidget *parent = 0);
18 
19  int start();
20  void stop();
21 
22 private:
23  Ui::LoadingWidget *ui;
24  QTimer splashTimer;
25  int counter;
26  QMutex mutex;
27 
28 
29 private slots:
30  void onSplashTimer();
31 };
32 
33 #endif // LOADINGWIDGET_H
LoadingWidget(QWidget *parent=0)