The querytab now shows the elapsed time of the query using the new stopwatch class.

The old elapsedtime code from the mainwindow has been removed.
This commit is contained in:
Eelke Klein 2017-01-22 08:50:41 +01:00
parent 7f379f3b80
commit 6e852f466f
7 changed files with 232 additions and 163 deletions

View file

@ -45,34 +45,21 @@ public:
private:
TSQueue m_taskQueue;
QLabel *m_timeElapsedLabel;
std::chrono::duration<float, std::milli> elapsedTime;
Ui::MainWindow *ui;
TSQueue m_taskQueue;
ConnectionConfig m_config;
std::unique_ptr<QTimer> m_timer;
std::chrono::time_point<std::chrono::steady_clock> m_startTime;
void startTimer();
void endTimer();
Ui::MainWindow *ui;
QueryTab *GetActiveQueryTab();
void closeEvent(QCloseEvent *event);
void showEvent(QShowEvent *event);
void newSqlPage();
QueryTab *newSqlPage();
private slots:
void processCallableQueue();
void updateTimer();
void on_actionLoad_SQL_triggered();
void on_actionSave_SQL_triggered();
void on_actionExport_data_triggered();
@ -84,6 +71,7 @@ private slots:
void on_actionSave_SQL_as_triggered();
void on_actionSave_copy_of_SQL_as_triggered();
void on_actionNew_SQL_triggered();
void on_tabWidget_tabCloseRequested(int index);
};
#endif // MAINWINDOW_H