mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-15 21:32:05 +08:00
feat: adapt to Qt6
adapt to Qt6; fix a few bugs Log: adapt to Qt6; bump version to 4.2.14
This commit is contained in:
@@ -17,7 +17,7 @@ big_image::big_image(DBlurEffectWidget *parent) : DBlurEffectWidget(parent),
|
||||
QHBoxLayout *layout = new QHBoxLayout;
|
||||
setLayout(layout);
|
||||
layout->addWidget(m_image);
|
||||
layout->setMargin(0);
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
// Make sure the image has a parent so that it will be freed.
|
||||
m_image->setParent(this);
|
||||
|
||||
@@ -158,7 +158,7 @@ void DownloadItem::on_pushButton_3_clicked()
|
||||
output_w->setMinimumHeight(600);
|
||||
output_w->setAttribute(Qt::WA_TranslucentBackground);
|
||||
output_w->setTitle(ui->label->text());
|
||||
output_w->layout()->setMargin(20);
|
||||
output_w->layout()->setContentsMargins(20, 20, 20, 20);
|
||||
output_w->layout()->addWidget(textbrowser);
|
||||
output_w->show();
|
||||
}
|
||||
@@ -198,7 +198,7 @@ void DownloadItem::slotAsyncInstall(int t)
|
||||
for (int i = 0; i < everyOut.size(); i++)
|
||||
{
|
||||
tempOutput = everyOut[i];
|
||||
if (everyOut[i].left(2) == tempOutput.contains("OMG-IT-GOES-WRONG"))
|
||||
if (tempOutput.contains("OMG-IT-GOES-WRONG"))
|
||||
{
|
||||
haveError = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user