Allow viewing via the EditDialog for executed sql statements (#570) · skyformat99/sqlitebrowser@1192f45 · GitHub
Skip to content

Commit 1192f45

Browse files
larsimmischMKleusberg
authored andcommitted
Allow viewing via the EditDialog for executed sql statements (sqlitebrowser#570)
* Allow viewing via the EditDialog for executed sql statements Editing is disallowed, becuase we do not know which table the freeform query operates on * Fix whitespace * Don't crash when changing to 'Execute SQL' tab when no database selected * Add double click action * A small usability improvement and indentation changes suggested by @MKleusberg
1 parent 81c62f9 commit 1192f45

4 files changed

Lines changed: 36 additions & 5 deletions

File tree

‎src/MainWindow.cpp‎

Lines changed: 25 additions & 4 deletions

‎src/MainWindow.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ class MainWindow : public QMainWindow
103103
Ui::MainWindow* ui;
104104

105105
SqliteTableModel* m_browseTableModel;
106+
SqliteTableModel* m_currentTabTableModel;
106107
SqliteTableModel* m_currentPlotModel;
107108
QMenu *popupTableMenu;
108109
QMenu *recentFilesMenu;

‎src/SqlExecutionArea.cpp‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ SqlTextEdit *SqlExecutionArea::getEditor()
6666
return ui->editEditor;
6767
}
6868

69+
ExtendedTableWidget *SqlExecutionArea::getTableResult()
70+
{
71+
return ui->tableResult;
72+
}
73+
74+
6975
QTextEdit* SqlExecutionArea::getResultView()
7076
{
7177
return ui->editErrors;

‎src/SqlExecutionArea.h‎

Lines changed: 4 additions & 1 deletion

0 commit comments

Comments
 (0)