15 #include <QApplication>
16 #include <QHBoxLayout>
18 #include <QProgressBar>
19 #include <QPushButton>
20 #include <QSizePolicy>
21 #include <QSpacerItem>
22 #include <QStringLiteral>
24 #include <QVBoxLayout>
25 #include <QWizardPage>
26 #include "../../backend/btsourcesthread.h"
27 #include "../../util/btconnect.h"
36 QVBoxLayout *
const vLayout =
new QVBoxLayout(
this);
38 vLayout->addItem(
new QSpacerItem(20,
41 QSizePolicy::Expanding));
53 QHBoxLayout *
const horizontalLayout =
new QHBoxLayout();
55 horizontalLayout->addSpacerItem(
56 new QSpacerItem(1, 1, QSizePolicy::Expanding));
58 horizontalLayout->addSpacerItem(
59 new QSpacerItem(1, 1, QSizePolicy::Expanding));
60 vLayout->addLayout(horizontalLayout);
62 vLayout->addItem(
new QSpacerItem(20,
65 QSizePolicy::Expanding));
84 setTitle(QApplication::translate(
85 "BookshelfWizard",
"Updating Remote Libraries"));
86 setSubTitle(QApplication::translate(
88 "Updating information from remote libraries."));
104 Qt::QueuedConnection);
107 Qt::QueuedConnection);
110 Qt::QueuedConnection);
125 Q_EMIT QWizardPage::completeChanged();
BtBookshelfSourcesProgressPage(QWidget *parent=nullptr)
void slotThreadFinished()
QPushButton * m_stopButton
int nextId() const final override
QProgressBar * m_progressBar
void destroyThread() noexcept
void initializePage() final override
BtSourcesThread * m_thread
bool isComplete() const final override
BtBookshelfWizard & btWizard() const noexcept
static void setAutoUpdateSources(bool value)
void percentComplete(int percent)
void showMessage(QString const &msg)
bool finishedSuccessfully() const noexcept