Add debug widget

This commit is contained in:
Arnaud 2026-01-19 11:26:34 +04:00
parent 1f54d2a569
commit 48f6310734
No known key found for this signature in database
GPG Key ID: 20E40A5D3110766F
2 changed files with 45 additions and 0 deletions

24
src/DebugWidget.cpp Normal file
View File

@ -0,0 +1,24 @@
#include "DebugWidget.h"
#include <QDebug>
// Static pointer to the active StorageWidget for callbacks
static StorageWidget* activeWidget = nullptr;
StorageWidget::StorageWidget(QWidget* parent) : QWidget(parent) {
// Set as the active widget
activeWidget = this;
// m_logosAPI = new LogosAPI("core", this);
// logos = new LogosModules(m_logosAPI);
// Main vertical layout
mainLayout = new QVBoxLayout(this);
}
StorageWidget::~StorageWidget() {
// Reset the active widget if it's this instance
if (activeWidget == this) {
activeWidget = nullptr;
}
}

21
src/DebugWidget.h Normal file
View File

@ -0,0 +1,21 @@
#pragma once
#include <QVBoxLayout>
#include <QWidget>
class DebugWidget : public QWidget {
Q_OBJECT
public:
explicit DebugWidget(QWidget* parent = nullptr);
~DebugWidget();
// private slots:
// void onSendButtonClicked();
// void onStartButtonClicked();
// void onDebugButtonClicked();
private:
// UI elements
QVBoxLayout* mainLayout;
};