mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
AccountSettings: fix Add Folder button size #4373
This commit is contained in:
parent
17895f3a30
commit
7a676a748a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue