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.
28 lines
849 B
C++
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);
|
|
}
|