Added type of column on second line in column headers of QueryResultModel.
This commit is contained in:
parent
c6dbe72170
commit
b5d800c87e
5 changed files with 26 additions and 13 deletions
|
|
@ -25,6 +25,7 @@ class QueryExplainModel;
|
|||
class PgTypeContainer;
|
||||
class OpenDatabase;
|
||||
class QueryParamListController;
|
||||
class PgDatabaseCatalog;
|
||||
|
||||
class QueryTab : public QWidget {
|
||||
Q_OBJECT
|
||||
|
|
@ -32,7 +33,7 @@ public:
|
|||
QueryTab(MainWindow *win, QWidget *parent = nullptr);
|
||||
~QueryTab();
|
||||
|
||||
void setConfig(const ConnectionConfig &config);
|
||||
void setConfig(const ConnectionConfig &config, std::shared_ptr<PgDatabaseCatalog>cat);
|
||||
|
||||
void newdoc();
|
||||
// void open();
|
||||
|
|
@ -70,6 +71,12 @@ private:
|
|||
QString m_fileName; ///< use setFileName function to set
|
||||
bool m_queryTextChanged = false;
|
||||
|
||||
std::shared_ptr<PgDatabaseCatalog> m_catalog;
|
||||
ASyncDBConnection m_dbConnection;
|
||||
|
||||
std::unique_ptr<QueryExplainModel> explainModel;
|
||||
ResultTabContainer resultList;
|
||||
|
||||
void setFileName(const QString &filename);
|
||||
bool continueWithoutSavingWarning();
|
||||
bool saveSqlTo(const QString &filename);
|
||||
|
|
@ -77,12 +84,6 @@ private:
|
|||
|
||||
|
||||
|
||||
|
||||
ASyncDBConnection m_dbConnection;
|
||||
|
||||
std::unique_ptr<QueryExplainModel> explainModel;
|
||||
ResultTabContainer resultList;
|
||||
|
||||
void addLog(QString s);
|
||||
|
||||
QString getCommand() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue