cut  1.2.1-pre1
mainwindow.hpp
Go to the documentation of this file.
1 #ifndef MAINWINDOW_H
2 #define MAINWINDOW_H
3 
4 #include <QCommandLineParser>
5 #include <QMainWindow>
6 #include <QWidget>
7 #include <QGridLayout>
8 #include <QList>
9 #include <QTimer>
10 #include <QTime>
11 #include <QPaintEvent>
12 #include <QStatusBar>
13 #include <QLabel>
14 
15 #include "timelabel.hpp"
16 
17 QT_BEGIN_NAMESPACE
18 namespace Ui { class MainWindow; }
19 QT_END_NAMESPACE
20 
21 class MainWindow : public QMainWindow
22 {
23  Q_OBJECT
24 
25 public:
26  MainWindow(QWidget *parent, QCommandLineParser *parser);
28 
29 protected:
30  void paintEvent(QPaintEvent *event);
31  void closeEvent(QCloseEvent *event);
32 
33 private slots:
34 
35 private:
36  QCommandLineParser *p_parser;
37  QWidget m_centralWidget;
38  QGridLayout m_layout;
39  QList<TimeLabel*> m_widgets;
40  QList<QLabel*> m_labels;
41  QTimer m_timer_high;
42  QTimer m_timer_low;
43  QTime m_time;
44  int m_frameCount = 0;
45  QStatusBar m_statusbar;
46  QLabel m_fpsLabel;
47  QLabel m_cpuLabel;
48  QList<int> m_fpsList;
49 };
50 #endif // MAINWINDOW_H
timelabel.hpp
Label that prints the current time.
MainWindow::~MainWindow
~MainWindow()
Ui
Definition: mainwindow.h:7
MainWindow
Definition: mainwindow.h:12
MainWindow::MainWindow
MainWindow(QWidget *parent, QCommandLineParser *parser)
cut-test-performance-python-datapoints.parser
parser
Definition: cut-test-performance-python-datapoints.py:132
MainWindow::paintEvent
void paintEvent(QPaintEvent *event)
MainWindow::closeEvent
void closeEvent(QCloseEvent *event)