Remove all knowledge of DatabaseWindow from CrudTab (unwanted dependency)
This commit is contained in:
parent
cc4f309c0f
commit
1da8ef7407
2 changed files with 2 additions and 8 deletions
|
|
@ -13,14 +13,13 @@ namespace Ui {
|
|||
|
||||
class OpenDatabase;
|
||||
class CrudModel;
|
||||
class DatabaseWindow;
|
||||
|
||||
class CrudTab : public PluginContentWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit CrudTab(IPluginContentWidgetContext *context, DatabaseWindow *parent = nullptr);
|
||||
explicit CrudTab(IPluginContentWidgetContext *context, QWidget *parent = nullptr);
|
||||
~CrudTab() override;
|
||||
|
||||
void setConfig(std::shared_ptr<OpenDatabase> db, const PgClass &table);
|
||||
|
|
@ -31,8 +30,6 @@ public:
|
|||
private:
|
||||
Ui::CrudTab *ui;
|
||||
|
||||
DatabaseWindow *m_window;
|
||||
|
||||
std::shared_ptr<OpenDatabase> m_db;
|
||||
std::optional<PgClass> m_table;
|
||||
|
||||
|
|
@ -40,7 +37,6 @@ private:
|
|||
std::vector<QAction*> actions;
|
||||
|
||||
private slots:
|
||||
// void tableView_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
void on_actionRemove_rows_triggered();
|
||||
void headerCustomContextMenu(const QPoint &pos);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue