🐞 fix(UI模块): 调整窗口大小变化时下载按钮的位置
This commit is contained in:
parent
d472f64748
commit
e4d34f6cbe
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue