Browse Source

Fix Content widget misbehavior

Starting from QT 5.10.1 Content widget is messed up and its settings are
lost while restarting.
Setting StretchLastSection property to false seems to solve the issue.
(Closes #8439).
adaptive-webui-19844
paolo-sz 7 years ago
parent
commit
d4e2b21534
  1. 1
      src/gui/torrentcontenttreeview.cpp

1
src/gui/torrentcontenttreeview.cpp

@ -43,6 +43,7 @@ TorrentContentTreeView::TorrentContentTreeView(QWidget *parent) @@ -43,6 +43,7 @@ TorrentContentTreeView::TorrentContentTreeView(QWidget *parent)
QTableView unused;
unused.setVerticalHeader(header());
header()->setParent(this);
header()->setStretchLastSection(false);
unused.setVerticalHeader(new QHeaderView(Qt::Horizontal));
}

Loading…
Cancel
Save