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
|
|
@ -1,6 +1,7 @@
|
|||
#include "PgLabTableView.h"
|
||||
#include "PgLabItemDelegate.h"
|
||||
#include <QHeaderView>
|
||||
#include <QSortFilterProxyModel>
|
||||
|
||||
PgLabTableView::PgLabTableView(QWidget *parent)
|
||||
: QTableView(parent)
|
||||
|
|
@ -9,7 +10,13 @@ PgLabTableView::PgLabTableView(QWidget *parent)
|
|||
setItemDelegate(new PgLabItemDelegate(this));
|
||||
setWordWrap(false);
|
||||
|
||||
auto pal = palette();
|
||||
pal.setColor(QPalette::Inactive, QPalette::Highlight, pal.color(QPalette::Active, QPalette::Highlight));
|
||||
pal.setColor(QPalette::Inactive, QPalette::HighlightedText, pal.color(QPalette::Active, QPalette::HighlightedText));
|
||||
setPalette(pal);
|
||||
|
||||
auto vertical_header = verticalHeader();
|
||||
vertical_header->setMinimumSectionSize(16);
|
||||
vertical_header->setDefaultSectionSize(20);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue