#ifndef CRUDTAB_H #define CRUDTAB_H #include "PgClass.h" #include #include namespace Ui { class CrudTab; } class OpenDatabase; class CrudModel; class MainWindow; class CrudTab : public QWidget { Q_OBJECT public: explicit CrudTab(MainWindow *parent = 0); ~CrudTab(); void setConfig(std::shared_ptr db, const PgClass &table); void refresh(); private: Ui::CrudTab *ui; MainWindow *m_window; std::shared_ptr m_db; PgClass m_table; CrudModel *m_crudModel = nullptr; private slots: // void tableView_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous); }; #endif // CRUDTAB_H