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:
parent
7f379f3b80
commit
6e852f466f
7 changed files with 232 additions and 163 deletions
20
mainwindow.h
20
mainwindow.h
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue