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,14 +3,13 @@
|
|||
#include "PropertyProxyModel.h"
|
||||
#include "ResultTableModelUtil.h"
|
||||
#include "SqlCodePreview.h"
|
||||
#include <QTableView>
|
||||
#include "PgLabTableView.h"
|
||||
|
||||
|
||||
PropertiesPage::PropertiesPage(QWidget *parent) : QSplitter(parent)
|
||||
{
|
||||
m_tableView = new QTableView(this);
|
||||
// m_definitionView = new SqlCodePreview(this);
|
||||
m_tableView = new PgLabTableView(this);
|
||||
addWidget(m_tableView);
|
||||
// addWidget(m_definitionView);
|
||||
|
||||
SetTableViewDefault(m_tableView);
|
||||
|
||||
|
|
@ -32,4 +31,5 @@ void PropertiesPage::setSourceModel(QAbstractItemModel *model)
|
|||
void PropertiesPage::setActiveRow(const QModelIndex &row)
|
||||
{
|
||||
m_propertyProxyModel->setActiveRow(row);
|
||||
m_tableView->resizeColumnsToContents();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue