mirror of
https://github.com/logos-storage/logos-storage-app-skeleton.git
synced 2026-06-14 04:19:25 +00:00
Add debug widget
This commit is contained in:
parent
1f54d2a569
commit
48f6310734
24
src/DebugWidget.cpp
Normal file
24
src/DebugWidget.cpp
Normal 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
21
src/DebugWidget.h
Normal 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;
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user