AccountSettings: fix Add Folder button size #4373

This commit is contained in:
Olivier Goffart 2016-01-19 17:39:43 +01:00
parent 17895f3a30
commit 7a676a748a

View file

@ -57,7 +57,7 @@ QSize FolderStatusDelegate::sizeHint(const QStyleOptionViewItem & option ,
auto classif = static_cast<const FolderStatusModel *>(index.model())->classify(index);
if (classif == FolderStatusModel::AddButton) {
int margins = fm.height();
const int margins = aliasFm.height(); // same as 2*aliasMargin of paint
QFontMetrics fm(option.font);
QStyleOptionButton opt;
static_cast<QStyleOption&>(opt) = option;