Cleanups in ui.

This commit is contained in:
2025-12-29 23:29:56 +01:00
parent 60be19a6ae
commit 679bff5e26
12 changed files with 119 additions and 220 deletions

View File

@@ -38,7 +38,7 @@
#include <ui_bcmainwindow.h>
#include <bcdatamanager.h>
class BCDevicePanel;
class BCDeviceView;
class BCMainWindow : public QMainWindow, public Ui_BCMainWindow
{
@@ -78,9 +78,9 @@ protected:
// Wir brauchen eine Verbindung zwischen den Views
// und dem Device, das sie darstellen.
using BCDevicePanels = QHash<BCDevice::ID, BCDevicePanel*>;
BCDevicePanels _devicePanels;
BCDevicePanel* _currentPanel{};
using BCDeviceViews = QHash<BCDevice::ID, BCDeviceView*>;
BCDeviceViews _devicePanels;
BCDeviceView* _currentPanel{};
QThread _worker;
BCTransmitter _transmitter;