Add column sort arrow to tableview

This commit is contained in:
Krad
2022-03-14 18:07:28 +08:00
parent 9366ac9bd4
commit 7d963899a2
5 changed files with 5 additions and 3 deletions

View File

@@ -103,8 +103,8 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
// table->setSortingEnabled(true);
table->setColumnWidth(1, 250);
table->setColumnWidth(2, 250);
table->setColumnWidth(3, 120);
table->setColumnWidth(4, 80);
table->setColumnWidth(3, 160);
table->setColumnWidth(4, 120);
table->setColumnWidth(5, 250);
// table->sortByColumn(5);
// table->setSortingEnabled(true);

BIN
src/icons/arrow-down.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

BIN
src/icons/arrow-up.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

View File

@@ -48,5 +48,7 @@
<file>icons/edit.png</file>
<file>icons/hidearrow.png</file>
<file>icons/logout.png</file>
<file>icons/arrow-down.png</file>
<file>icons/arrow-up.png</file>
</qresource>
</RCC>

File diff suppressed because one or more lines are too long