Refactored code to improve account and transaction data parsing and management, introducing support for additional fields like card numbers and account statuses. Added new utilities for database connections, device-specific screenshot handling, and XML parsing for enriched account and transaction details.
22 lines
691 B
C++
22 lines
691 B
C++
#include "TransactionWindow.h"
|
|
#include <QVBoxLayout>
|
|
#include <QLabel>
|
|
|
|
#include "dao/AccountDAO.h"
|
|
|
|
TransactionWindow::TransactionWindow(const int accountId, QWidget *parent): QDialog(parent) {
|
|
setWindowTitle("Транзакции");
|
|
setMinimumSize(300, 200); // минимальный размер
|
|
setMaximumSize(800, 400); // максимальный размер
|
|
|
|
auto *layout = new QVBoxLayout(this);
|
|
layout->setAlignment(Qt::AlignCenter);
|
|
|
|
AccountInfo account = AccountDAO::getAccountById(accountId);
|
|
|
|
QLabel *label = new QLabel(QString("*%1 | %2").arg(account.lastNumbers, account.description), this);
|
|
layout->addWidget(label);
|
|
|
|
setModal(true);
|
|
}
|