Moved QueryParamListController to its own translation unit.

This commit is contained in:
eelke 2017-12-09 14:16:47 +01:00
parent 3a13b7ffb4
commit 3bf1ef4fe0
5 changed files with 88 additions and 75 deletions

View file

@ -2,8 +2,6 @@
#define QUERYTAB_H
#include "ASyncDBConnection.h"
#include "ParamListModel.h"
#include "ParamTypeDelegate.h"
#include "QueryResultModel.h"
#include "QueryExplainModel.h"
#include "stopwatch.h"
@ -26,24 +24,7 @@ class QueryResultModel;
class QueryExplainModel;
class PgTypeContainer;
class OpenDatabase;
class QueryParamListController : public QObject {
Q_OBJECT
public:
QueryParamListController(QTableView *tv, OpenDatabase *opendb, QWidget *parent);
Pgsql::Params params() const;
bool empty() const;
public slots:
void on_addParam();
void on_removeParam();
private:
QTableView *paramTableView;
OpenDatabase *m_openDatabase;
ParamListModel m_paramList;
ParamTypeDelegate m_typeDelegate;
};
class QueryParamListController;
class QueryTab : public QWidget {
Q_OBJECT