2018-10-20 10:58:42 +02:00
|
|
|
|
#ifndef PROPERTIESPAGE_H
|
|
|
|
|
|
#define PROPERTIESPAGE_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QSplitter>
|
|
|
|
|
|
|
|
|
|
|
|
class SqlCodePreview;
|
|
|
|
|
|
class PgDatabaseCatalog;
|
|
|
|
|
|
class PropertyProxyModel;
|
2019-02-09 14:59:33 +01:00
|
|
|
|
class PgLabTableView;
|
2018-10-21 13:47:38 +02:00
|
|
|
|
class QAbstractItemModel;
|
2018-10-20 10:58:42 +02:00
|
|
|
|
|
2019-02-09 14:59:33 +01:00
|
|
|
|
class PropertiesPage : public QSplitter {
|
2018-10-20 10:58:42 +02:00
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
public:
|
|
|
|
|
|
explicit PropertiesPage(QWidget *parent = nullptr);
|
|
|
|
|
|
|
2018-10-21 13:47:38 +02:00
|
|
|
|
void setSourceModel(QAbstractItemModel *model);
|
2018-10-20 10:58:42 +02:00
|
|
|
|
signals:
|
|
|
|
|
|
public slots:
|
2018-10-21 13:47:38 +02:00
|
|
|
|
/** 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);
|
2018-10-20 10:58:42 +02:00
|
|
|
|
|
|
|
|
|
|
private:
|
2019-02-09 14:59:33 +01:00
|
|
|
|
PgLabTableView *m_tableView = nullptr;
|
2018-10-20 10:58:42 +02:00
|
|
|
|
PropertyProxyModel *m_propertyProxyModel = nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // PROPERTIESPAGE_H
|