Skip to content

Commit 0c22eca

Browse files
committed
details view improvements
1 parent 4533c3a commit 0c22eca

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/docks/filesdock.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,9 @@ FilesDock::FilesDock(QWidget *parent)
613613
ui->tableView->setSelectionModel(m_selectionModel);
614614
ui->listView->setSelectionModel(m_selectionModel);
615615
m_iconsView->setSelectionModel(m_selectionModel);
616+
ui->tableView->setColumnHidden(2, true);
616617
ui->tableView->sortByColumn(0, Qt::AscendingOrder);
617-
ui->tableView->horizontalHeader()->setSectionResizeMode(0, QHeaderView::ResizeToContents);
618+
ui->tableView->horizontalHeader()->setSectionsMovable(true);
618619
connect(ui->tableView, &QAbstractItemView::activated, this, [ = ] (const QModelIndex & index) {
619620
auto sourceIndex = m_filesProxyModel->mapToSource(index);
620621
auto filePath = m_filesModel->filePath(sourceIndex);

src/docks/filesdock.ui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@
7878
<property name="horizontalScrollMode">
7979
<enum>QAbstractItemView::ScrollPerPixel</enum>
8080
</property>
81-
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
82-
<bool>true</bool>
81+
<attribute name="horizontalHeaderDefaultSectionSize">
82+
<number>200</number>
8383
</attribute>
84-
<attribute name="horizontalHeaderStretchLastSection">
84+
<attribute name="horizontalHeaderShowSortIndicator" stdset="0">
8585
<bool>true</bool>
8686
</attribute>
8787
<attribute name="verticalHeaderVisible">

0 commit comments

Comments
 (0)