mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Qt4 SelectiveSyncDialog: Give a better size to the column by default
Issue #3239 The feature to dynamically resize the column only came with Qt5, But give a better default size of the name column so we can read the contents.
This commit is contained in:
parent
371fc0ffa2
commit
92dc3047d0
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ SelectiveSyncTreeView::SelectiveSyncTreeView(AccountPtr account, QWidget* parent
|
|||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
header()->setSectionResizeMode(0, QHeaderView::QHeaderView::ResizeToContents);
|
||||
header()->setSectionResizeMode(1, QHeaderView::QHeaderView::ResizeToContents);
|
||||
#else
|
||||
header()->resizeSection(0, sizeHint().width()/2);
|
||||
#endif
|
||||
header()->setStretchLastSection(true);
|
||||
headerItem()->setText(0, tr("Name"));
|
||||
|
|
Loading…
Reference in a new issue