From dc68387fbc8547013f3b245961d242fd5a2032b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Mon, 27 Sep 2021 15:39:59 +0200 Subject: [PATCH] Update ImportWidget to support XML scan mode --- YACReaderLibrary/import_widget.cpp | 12 ++++++++++++ YACReaderLibrary/import_widget.h | 1 + 2 files changed, 13 insertions(+) diff --git a/YACReaderLibrary/import_widget.cpp b/YACReaderLibrary/import_widget.cpp index d33f6ae3..cf4fd03b 100644 --- a/YACReaderLibrary/import_widget.cpp +++ b/YACReaderLibrary/import_widget.cpp @@ -364,6 +364,18 @@ void ImportWidget::setUpgradeLook() hideButton->setVisible(false); } +void ImportWidget::setXMLScanLook() +{ + iconLabel->setPixmap(QPixmap(":/images/updatingIcon.png")); + text->setText("" + tr("Scanning the library") + ""); + textDescription->setText("" + tr("

Current library is being scanned for legacy XML metadata information.

This is only needed once, and only if the library was crated with YACReaderLibrary 9.8.2 or earlier.

") + "
"); + + stopButton->setVisible(true); + coversLabel->setVisible(false); + coversViewContainer->setVisible(false); + hideButton->setVisible(false); +} + void ImportWidget::clearScene() { } diff --git a/YACReaderLibrary/import_widget.h b/YACReaderLibrary/import_widget.h index 78b7daf9..21d4c755 100644 --- a/YACReaderLibrary/import_widget.h +++ b/YACReaderLibrary/import_widget.h @@ -20,6 +20,7 @@ public slots: void setImportLook(); void setUpdateLook(); void setUpgradeLook(); + void setXMLScanLook(); void showCovers(bool hide); private: