diff options
| author | RJ <122295667+Liderate@users.noreply.github.com> | 2024-05-19 03:40:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-19 09:40:17 +0200 |
| commit | a1d199134d819683a9b35cb4802e0c8f4edc4dc2 (patch) | |
| tree | 0aa4f9d1dc00945b07e60810c32517e37a21abaa | |
| parent | 16423b268204596ace75e9b69726f659a83b5d7e (diff) | |
Fixes for stylesheets that use transparent backgrounds (#2029)
* Remove uneeded "Fix" text
* Don't set Qt::WA_OpaquePaintEvent when imagesThumbnails has transparent base
---------
Co-authored-by: Liderate <Liderate@users.noreply.github.com>
| -rw-r--r-- | src/modinfodialogimages.cpp | 5 | ||||
| -rw-r--r-- | src/problemsdialog.cpp | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/modinfodialogimages.cpp b/src/modinfodialogimages.cpp index e48a34d3..1042eaca 100644 --- a/src/modinfodialogimages.cpp +++ b/src/modinfodialogimages.cpp @@ -76,7 +76,10 @@ ImagesTab::ImagesTab(ModInfoDialogTabContext cx) ui->imagesShowDDS->setEnabled(m_ddsAvailable); ui->imagesThumbnails->setAutoFillBackground(false); - ui->imagesThumbnails->setAttribute(Qt::WA_OpaquePaintEvent, true); + + if (ui->imagesThumbnails->palette().color(QPalette::Base) != Qt::transparent) { + ui->imagesThumbnails->setAttribute(Qt::WA_OpaquePaintEvent, true); + } { auto list = std::make_unique<QListWidget>(); diff --git a/src/problemsdialog.cpp b/src/problemsdialog.cpp index f6b23a10..3a82a0cf 100644 --- a/src/problemsdialog.cpp +++ b/src/problemsdialog.cpp @@ -56,7 +56,6 @@ void ProblemsDialog::runDiagnosis() m_hasProblems = true; if (diagnose->hasGuidedFix(key)) { - newItem->setText(1, tr("Fix")); QPushButton* fixButton = new QPushButton(tr("Fix")); fixButton->setProperty("fix", QVariant::fromValue(reinterpret_cast<void*>(diagnose))); |
