From c9366cd96b2bbbbef9703c2e00923996a63a1807 Mon Sep 17 00:00:00 2001 From: Chris Hennes Date: Mon, 1 Mar 2021 15:05:43 -0600 Subject: [PATCH] Switch to removeTab() to support older Qt versions --- src/Gui/Splashscreen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index 4ca696d82c..865d56344e 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -270,7 +270,7 @@ AboutDialog::AboutDialog(bool showLic, QWidget* parent) ); #endif QString lictext = ui->textBrowserLicense->toHtml(); - lictext.replace(QString::fromLatin1("SUCH DAMAGES."),info); + lictext.replace(QString::fromLatin1("SUCH DAMAGES.
"),info); ui->textBrowserLicense->setHtml(lictext); // } ui->tabWidget->setCurrentIndex(0); // always start on the About tab @@ -557,7 +557,7 @@ void AboutDialog::showLicenseInformation() return; // Leave the existing license placeholder there if we can't find our license html file } - ui->tabWidget->setTabVisible(2, false); // Hide the license placeholder widget + ui->tabWidget->removeTab (2); // Hide the license placeholder widget QWidget* tab_license = new QWidget(); tab_license->setObjectName(QString::fromLatin1("tab_license"));