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:
parent
3fb88edab2
commit
3fdd42ffb2
13 changed files with 56 additions and 41 deletions
|
|
@ -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;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue