schema_editor/comdel/display/dialog/warning_dialog.cpp

16 lines
437 B
C++
Raw Normal View History

2022-06-13 22:53:46 +00:00
#include <QVBoxLayout>
#include <QLabel>
#include "warning_dialog.h"
namespace display {
WarningDialog::WarningDialog(domain::ValidationError error)
2022-06-19 18:10:44 +00:00
: GenericDialog("msg_dialog_warning_title", "msg_dialog_actions_ok") {
2022-06-13 22:53:46 +00:00
auto contentLayout = new QVBoxLayout();
content->setLayout(contentLayout);
contentLayout->addWidget(new QLabel(QString::fromStdString(error.message), this));
}
} // display