Centre sample download progress text

This commit is contained in:
Bill Somerville 2021-02-18 12:14:45 +00:00
parent e38af47915
commit 34023bce34
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -40,7 +40,7 @@ void DirectoryDelegate::paint (QPainter * painter, QStyleOptionViewItem const& o
// workaround for broken QProgressBar item delegates on macOS // workaround for broken QProgressBar item delegates on macOS
QStyleOptionViewItem progress_option; QStyleOptionViewItem progress_option;
auto control_element = QStyle::CE_ItemViewItem; auto control_element = QStyle::CE_ItemViewItem;
progress_option.displayAlignment = Qt::AlignLeft; progress_option.displayAlignment = Qt::AlignHCenter;
progress_option.index = index; progress_option.index = index;
progress_option.features = QStyleOptionViewItem::HasDisplay; progress_option.features = QStyleOptionViewItem::HasDisplay;
#endif #endif