1
0
forked from BRT/arc
arc/views/MainWindow.h
slava c1b34ce7d7 Implement AccountWindow and TransactionWindow for account management
Added AccountWindow to display account tables linked to devices and TransactionWindow for viewing account details. Enhanced DeviceDAO and AccountDAO to support additional filtering and data retrieval functionalities.
2025-04-22 12:22:56 +07:00

27 lines
553 B
C++

#pragma once
#include <QMainWindow>
#include <QVBoxLayout>
#include <QStackedWidget>
#include <QTimer>
#include "db/DeviceInfo.h"
#include "widget/FlowLayout.h"
class MainWindow final : public QMainWindow {
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
void loadDevices();
private:
QWidget* central;
FlowLayout* flowLayout;
QTimer* timer;
QStackedWidget* stackedWidget;
QWidget* devicePage = nullptr;
QWidget* accountPage = nullptr;
void createDevicePage();
void deleteDevicePage();
};