Moved everything associated with executing and explaining queries to querytab.
It is now possible to create multiple independent query tabs. However somethings are currently a bit broken.
This commit is contained in:
parent
6c268bd774
commit
7f379f3b80
13 changed files with 668 additions and 634 deletions
24
stopwatch.h
Normal file
24
stopwatch.h
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#ifndef STOPWATCH_H
|
||||
#define STOPWATCH_H
|
||||
|
||||
#include <QTimer>
|
||||
#include <QElapsedTimer>
|
||||
#include <memory>
|
||||
|
||||
class StopWatch : public QObject {
|
||||
Q_OBJECT
|
||||
public:
|
||||
StopWatch();
|
||||
|
||||
void start();
|
||||
qint64 elapsed();
|
||||
private:
|
||||
std::unique_ptr<QElapsedTimer> m_elapsed = nullptr; ///< Keeps time
|
||||
std::unique_ptr<QTimer> m_timer = nullptr; ///< triggers updates
|
||||
|
||||
|
||||
private slots:
|
||||
void updateTimer();
|
||||
};
|
||||
|
||||
#endif // STOPWATCH_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue