Collection of small fixes and improvements

- Selections stay clearly visible when focus changes to other widget
- Autoresize columns
- Table properties view now correctly allows selection in both columns and draws selection correctly
- Tables can be sorted again and now by any column
This commit is contained in:
eelke 2019-02-09 14:59:33 +01:00
parent 3fb88edab2
commit 3fdd42ffb2
13 changed files with 56 additions and 41 deletions

View file

@ -3,21 +3,19 @@
#include <QSplitter>
class QTableView;
class SqlCodePreview;
class PgDatabaseCatalog;
class PropertyProxyModel;
class PgLabTableView;
class QAbstractItemModel;
class PropertiesPage : public QSplitter
{
class PropertiesPage : public QSplitter {
Q_OBJECT
public:
explicit PropertiesPage(QWidget *parent = nullptr);
void setSourceModel(QAbstractItemModel *model);
signals:
public slots:
/** Updates the model (and view) to show the values for row
*
@ -27,8 +25,7 @@ public slots:
void setActiveRow(const QModelIndex &row);
private:
QTableView *m_tableView = nullptr;
// SqlCodePreview *m_definitionView = nullptr;
PgLabTableView *m_tableView = nullptr;
PropertyProxyModel *m_propertyProxyModel = nullptr;
};