Added listing of triggers for selected table (not completely finished).
Used slightly different approach. This tab is fully build in source code using subclasses to adjust behaviour of widgets for reuse in the other tabs. Uses custom proxy model for filtering triggers for correct table and supporting out of the box sorting by QTableView. SqlCodePreview: QPlainTextEditor which sql highlighter and in readonly mode but allows copy.
This commit is contained in:
parent
446923ebaf
commit
2a75e86102
23 changed files with 697 additions and 67 deletions
|
|
@ -16,6 +16,7 @@ class PgDatabaseCatalog;
|
|||
class NamespaceFilterWidget;
|
||||
class IndexModel;
|
||||
class MainWindow;
|
||||
class TriggerPage;
|
||||
|
||||
class TablesPage : public QWidget
|
||||
{
|
||||
|
|
@ -29,6 +30,8 @@ public:
|
|||
private:
|
||||
Ui::TablesPage *ui;
|
||||
MainWindow *m_window;
|
||||
QWidget *m_triggerTab;
|
||||
TriggerPage *m_triggerPage;
|
||||
std::shared_ptr<PgDatabaseCatalog> m_catalog;
|
||||
TablesTableModel* m_tablesModel = nullptr;
|
||||
ColumnTableModel* m_columnsModel = nullptr;
|
||||
|
|
@ -36,6 +39,8 @@ private:
|
|||
IndexModel* m_indexModel = nullptr;
|
||||
//NamespaceFilterWidget* m_namespaceFilterWidget;
|
||||
|
||||
void retranslateUi(bool all = true);
|
||||
QWidget* addDetailTab(QWidget *contents, QString caption);
|
||||
private slots:
|
||||
|
||||
void tableListTable_currentRowChanged(const QModelIndex ¤t, const QModelIndex &previous);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue