All the detail tabs on the TablePage now update when the sort order

of the table list changes.
This commit is contained in:
eelke 2018-10-21 13:47:38 +02:00
parent d4d8316917
commit 1ae9a1151a
5 changed files with 61 additions and 26 deletions

View file

@ -7,6 +7,7 @@ class QTableView;
class SqlCodePreview;
class PgDatabaseCatalog;
class PropertyProxyModel;
class QAbstractItemModel;
class PropertiesPage : public QSplitter
{
@ -14,9 +15,16 @@ class PropertiesPage : public QSplitter
public:
explicit PropertiesPage(QWidget *parent = nullptr);
void setSourceModel(QAbstractItemModel *model);
signals:
public slots:
/** Updates the model (and view) to show the values for row
*
* The column part of the index is not used QModelIndex is used to make is eacy to connect to
* QItemSelectionModel::currentRowChanged
*/
void setActiveRow(const QModelIndex &row);
private:
QTableView *m_tableView = nullptr;