+#ifdef UPDATER
+ int capHeight = fontMetrics().capHeight();
+
+ QBoxLayout *updateLayout = new QHBoxLayout();
+ updateLayout->setMargin(0);
+ updateLayout->setSpacing(capHeight);
+ updateLayout->setAlignment(Qt::AlignLeft);
+
+ auto spinner = new WaitingSpinnerWidget(this, false, false);
+ spinner->setColor(palette().windowText().color());
+ spinner->setLineLength(capHeight / 2);
+ spinner->setNumberOfLines(spinner->lineLength() * 2);
+ spinner->setInnerRadius(spinner->lineLength());
+ auto spinnerStartStop = [spinner](auto status) {
+ if (status == Updater::Status::DownloadingUpdate)
+ spinner->start();
+ else
+ spinner->stop();
+ };
+ connect(&Updater::instance(), &Updater::statusChanged, this, spinnerStartStop);
+ updateLayout->addWidget(spinner);
+ spinnerStartStop(Updater::instance().getStatus());
+
+ updateLayout->addWidget(Updater::instance().getLabel());
+
+ layout->addLayout(updateLayout);
+#endif
+