1
0
forked from BRT/arc
arc/views/TransactionWindow.cpp
slava 59cef50ad3 Add enhanced account and transaction handling features
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.
2025-05-07 14:15:08 +07:00

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);
}