diff options
author | Camila <hello@camila.codes> | 2021-12-04 00:24:18 +0300 |
---|---|---|
committer | Matthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr> | 2022-01-13 13:39:11 +0300 |
commit | 82aed71d09adcae1bd965667863bcbca27bf96d3 (patch) | |
tree | 234efc8645f71a5256ac25d2a2600d02a2748629 /src/gui/sharedialog.cpp | |
parent | c08a2917421eba87dd58e6bef403e0a84d55d5d6 (diff) |
Just trying to make the sahre dialog look nicer.
Signed-off-by: Camila <hello@camila.codes>
Diffstat (limited to 'src/gui/sharedialog.cpp')
-rw-r--r-- | src/gui/sharedialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/sharedialog.cpp b/src/gui/sharedialog.cpp index fb312734b..1330729cd 100644 --- a/src/gui/sharedialog.cpp +++ b/src/gui/sharedialog.cpp @@ -236,12 +236,12 @@ void ShareDialog::slotSharesFetched(const QList<QSharedPointer<Share>> &shares) void ShareDialog::slotAdjustScrollWidgetSize() { auto count = this->findChildren<ShareLinkWidget *>().count(); - count = count > 3 ? 3 : count; + count = count >= 6 ? 6 : count; auto height = _linkWidgetList.size() > 0 ? _linkWidgetList.at(_linkWidgetList.size() - 1)->sizeHint().height() : 0; _ui->scrollAreaLinks->setFixedWidth(_ui->verticalLayout->sizeHint().width()); _ui->scrollAreaLinks->setFixedHeight(height * count); _ui->scrollAreaLinks->setVisible(height > 0); - _ui->scrollAreaLinks->setFrameShape(count > 3 ? QFrame::StyledPanel : QFrame::NoFrame); + _ui->scrollAreaLinks->setFrameShape(count > 6 ? QFrame::StyledPanel : QFrame::NoFrame); } ShareDialog::~ShareDialog() |