Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsWidgets/lts_progress_dialog_helper.h
T
torstenandCopilot d6b6ffce7c Apply clang-format to Lts/Common and DTC/enum headers
- 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>
2026-08-19 14:46:29 +02:00

63 lines
1.1 KiB
C++

#pragma once
#include "ltswidgets_export.h"
#include <QObject>
#include <QPointer>
class QLabel;
class QWidget;
namespace LtsWidgets
{
class LtsFramelessDialog;
class LTSWIDGETS_EXPORT LtsProgressDialogHelper : public QObject
{
Q_OBJECT
public:
enum class ReplyResult {
Close = 0,
Success,
Failure,
TimeOut,
};
explicit LtsProgressDialogHelper(QWidget* parent = nullptr);
~LtsProgressDialogHelper();
bool isShown() const
{
return !!m_waitDlg;
}
void setCustomText(const QString& customText = QString());
void setParentWidget(QWidget* newParent);
public slots:
void slotShowWaitForReplyWindow();
void
slotStopWaitForReplyWindow(const LtsWidgets::LtsProgressDialogHelper::ReplyResult& replyResult = ReplyResult::Close,
const QString& replyString = QString());
private:
QPointer<LtsFramelessDialog> m_waitDlg;
QWidget* m_parentWidget;
QPointer<QLabel> m_textLabel;
signals:
void accepted();
private slots:
void accept();
};
} // namespace LtsWidgets