- Formatted all CodeGen module files (9 files) - Formatted LtsAppDescriptor module files - Formatted LtsAppManager/AppChooser files - Applied clang-format to all DTC and enum headers across modules - Removed coordTransTests from CommonUnitTestsPlaceholder (moved to tests/) Cosmetic changes only, no functional modifications. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
38 lines
874 B
C++
38 lines
874 B
C++
|
|
|
|
#include "lts_overlay_loading.h"
|
|
|
|
#include "ui_lts_overlay_loading.h"
|
|
|
|
#include <QHBoxLayout>
|
|
#include <QLabel>
|
|
#include <QProgressBar>
|
|
#include <QPushButton>
|
|
|
|
namespace LtsWidgets
|
|
{
|
|
LtsOverlayLoading::LtsOverlayLoading(QWidget* parent) : QWidget(parent), m_ui(new Ui::LtsOverlayLoading)
|
|
{
|
|
m_ui->setupUi(this);
|
|
setCancelButtonVisible(false);
|
|
connect(m_ui->pbCancel, &QPushButton::clicked, this, [this]() { setCancelButtonEnabled(false); });
|
|
connect(m_ui->pbCancel, &QPushButton::clicked, this, &LtsOverlayLoading::cancel);
|
|
}
|
|
|
|
void LtsOverlayLoading::setText(const QString& text)
|
|
{
|
|
m_ui->label->setText(text);
|
|
}
|
|
|
|
void LtsOverlayLoading::setCancelButtonVisible(bool visible)
|
|
{
|
|
m_ui->pbCancel->setVisible(visible);
|
|
}
|
|
|
|
void LtsOverlayLoading::setCancelButtonEnabled(bool enabled)
|
|
{
|
|
m_ui->pbCancel->setEnabled(enabled);
|
|
}
|
|
|
|
} // namespace LtsWidgets
|