Implemented `EventWindow` for viewing events with pagination and table-based UI. Added database migration to remove `UNIQUE` constraint on `external_id` in `events`. Enhanced DAO methods for event retrieval, pagination, and transaction updates. Integrated OCR recognition in transaction scripts and streamlined event handling in services.
26 lines
474 B
C++
26 lines
474 B
C++
#pragma once
|
|
#include <QDialog>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QTableWidget>
|
|
|
|
class EventWindow final : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit EventWindow(QWidget *parent = nullptr);
|
|
|
|
private:
|
|
QTableWidget *m_table;
|
|
QLabel *m_pageLabel;
|
|
QPushButton *m_prevBtn;
|
|
QPushButton *m_nextBtn;
|
|
|
|
int m_page = 0;
|
|
int m_pageSize = 50;
|
|
int m_totalPages = 1;
|
|
|
|
void loadPage();
|
|
void updatePagination();
|
|
};
|