From e4d34f6cbe9d3914aaa72f9f94e8d2b02584a053 Mon Sep 17 00:00:00 2001 From: "huheng@kylinos.cn" Date: Thu, 22 Dec 2022 10:24:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(UI=E6=A8=A1=E5=9D=97):=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AA=97=E5=8F=A3=E5=A4=A7=E5=B0=8F=E5=8F=98?= =?UTF-8?q?=E5=8C=96=E6=97=B6=E4=B8=8B=E8=BD=BD=E6=8C=89=E9=92=AE=E7=9A=84?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/filemanageview/fileview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/filemanageview/fileview.cpp b/ui/filemanageview/fileview.cpp index 4a7d2e9..52d9a6a 100644 --- a/ui/filemanageview/fileview.cpp +++ b/ui/filemanageview/fileview.cpp @@ -316,6 +316,10 @@ void FileView::resizeEvent(QResizeEvent *event) { Q_UNUSED(event); Q_EMIT sigSizeChanged(size()); + if (m_downloadBtn != nullptr) { + m_downloadBtn->move( + QPoint(this->width() / 2 - m_downloadBtn->width() / 2, this->height() - 30 - m_downloadBtn->height())); + } return QListView::resizeEvent(event); }