Centre align sample down-loader tree widget column headings

This commit is contained in:
Bill Somerville 2021-02-18 11:54:39 +00:00
parent 7c89d28fd9
commit ff033b650a
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -49,6 +49,8 @@ Directory::Directory (Configuration const * configuration
setColumnCount (2);
setHeaderLabels ({tr ("File"), tr ("Progress")});
headerItem ()->setTextAlignment (0, Qt::AlignHCenter);
headerItem ()->setTextAlignment (1, Qt::AlignHCenter);
header ()->setSectionResizeMode (QHeaderView::ResizeToContents);
setItemDelegate (&item_delegate_);