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 namespace Ui {
7 class LoadingWidget;
8 }
9 
10 class LoadingWidget : public QDialog
11 {
12  Q_OBJECT
13 
14 public:
15  explicit LoadingWidget(QWidget *parent = 0);
17 
18  int start(QString msg = "");
19  void stop();
20 
21 private:
22  Ui::LoadingWidget *ui;
23  QTimer splashTimer;
24  int counter;
25 
26 
27 private slots:
28  void onSplashTimer();
29 };
30 
31 #endif // LOADINGWIDGET_H
LoadingWidget(QWidget *parent=0)