🐞 fix(UI模块): 调整窗口大小变化时下载按钮的位置

This commit is contained in:
huheng@kylinos.cn 2022-12-22 10:24:34 +08:00
parent d472f64748
commit e4d34f6cbe
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}