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:
Eelke Klein 2017-01-21 18:16:57 +01:00
parent 6c268bd774
commit 7f379f3b80
13 changed files with 668 additions and 634 deletions

24
stopwatch.h Normal file
View 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