1
0
forked from BRT/arc
arc/views/widget/loader/ErrorWindow.cpp
slava 91f8e96fa6 Add Ozon scripts for retrieving card info, profile details, and transaction history
Implemented `GetCardInfoScript`, `GetProfileInfoScript`, and `GetLastTransactionsScript` to automate data extraction workflows for Ozon platform. Includes support for XML parsing, ad banner handling, card navigation, profile parsing, and transaction retrieval. Added related asset files.
2026-02-27 10:15:19 +07:00

28 lines
849 B
C++

#include "ErrorWindow.h"
#include <QVBoxLayout>
#include <QPushButton>
#include <QLabel>
#include <QApplication>
ErrorWindow::ErrorWindow(const QString &errorMessage, bool showRetry, QWidget *parent) : QWidget(parent) {
setWindowTitle("Ошибка");
resize(300, 150);
QVBoxLayout *layout = new QVBoxLayout(this);
QLabel *label = new QLabel(errorMessage);
label->setWordWrap(true);
layout->addWidget(label);
if (showRetry) {
QPushButton *retryButton = new QPushButton("Повторить");
layout->addWidget(retryButton);
connect(retryButton, &QPushButton::clicked, this, &ErrorWindow::retryRequested);
}
QPushButton *closeButton = new QPushButton("Закрыть");
layout->addWidget(closeButton);
connect(closeButton, &QPushButton::clicked, qApp, &QApplication::quit);
}