Files
qt-migration-legatus/qt6-after/qt6-migrated-legatus/Lts/Common/LtsWidgets/lts_message_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

46 lines
1.0 KiB
C++

#pragma once
#include "lts_frameless_dialog.h"
#include "lts_message_dialog.h"
#include <QHash>
#include <QObject>
#include <QString>
class QPushButton;
class QHBoxLayout;
namespace LtsWidgets
{
class LtsMessageDialogHelper : public QObject
{
Q_OBJECT
public:
explicit LtsMessageDialogHelper(QObject* parent = nullptr);
~LtsMessageDialogHelper() = default;
Button showMessage(QWidget* parent, const QString& message, const QString& title, Behaviour behaviour,
LtsWidgets::Buttons buttons, const QHash<Button, QString>& buttonTexts);
private:
QPushButton* addButton(const QString& text, QHBoxLayout* thatLayout, LtsFramelessDialog* dialog,
const Button& button, QWidget* parent);
Button m_result;
LtsFramelessDialog* m_dialog;
private slots:
void slotOkay();
void slotYes();
void slotNo();
void slotCancel();
void slotApply();
void slotDiscard();
signals:
void signalQuitEventLoop();
};
} // namespace LtsWidgets