Update ImportWidget to support XML scan mode

This commit is contained in:
Luis Ángel San Martín 2021-09-27 15:39:59 +02:00
parent da51bd45c6
commit dc68387fbc
2 changed files with 13 additions and 0 deletions

View File

@ -364,6 +364,18 @@ void ImportWidget::setUpgradeLook()
hideButton->setVisible(false);
}
void ImportWidget::setXMLScanLook()
{
iconLabel->setPixmap(QPixmap(":/images/updatingIcon.png"));
text->setText("<font color=\"#495252\">" + tr("Scanning the library") + "</font>");
textDescription->setText("<font color=\"#565959\">" + tr("<p>Current library is being scanned for legacy XML metadata information.</p><p>This is only needed once, and only if the library was crated with YACReaderLibrary 9.8.2 or earlier.</p>") + "</font>");
stopButton->setVisible(true);
coversLabel->setVisible(false);
coversViewContainer->setVisible(false);
hideButton->setVisible(false);
}
void ImportWidget::clearScene()
{
}

View File

@ -20,6 +20,7 @@ public slots:
void setImportLook();
void setUpdateLook();
void setUpgradeLook();
void setXMLScanLook();
void showCovers(bool hide);
private: