Double clicking a table now opens a CRUD page for that table however data cannot be changed yet thought it will display an editbox.
This commit is contained in:
parent
abd4020ddf
commit
2ba27178a2
13 changed files with 288 additions and 33 deletions
|
|
@ -14,10 +14,12 @@
|
|||
#include "SqlSyntaxHighlighter.h"
|
||||
#include <QStringBuilder>
|
||||
#include <boost/container/flat_set.hpp>
|
||||
#include "MainWindow.h"
|
||||
|
||||
TablesPage::TablesPage(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
ui(new Ui::TablesPage)
|
||||
TablesPage::TablesPage(MainWindow *parent)
|
||||
: QWidget(parent)
|
||||
, ui(new Ui::TablesPage)
|
||||
, m_window(parent)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
|
@ -121,3 +123,12 @@ void TablesPage::constraintsTable_selectionChanged(const QItemSelection &selecte
|
|||
}
|
||||
ui->constraintSqlEdit->setPlainText(drops % "\n" % creates);
|
||||
}
|
||||
|
||||
void TablesPage::on_tableListTable_doubleClicked(const QModelIndex &index)
|
||||
{
|
||||
PgClass table = m_tablesModel->getTable(index.row());
|
||||
if (table.oid != InvalidOid) {
|
||||
m_window->newCrudPage(table);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue