mirror of
https://github.com/logos-storage/logos-storage-app-skeleton.git
synced 2026-06-14 04:19:25 +00:00
Remove unused files
This commit is contained in:
parent
61e02510d8
commit
3a93cfb520
@ -1,49 +0,0 @@
|
||||
#include "DebugDialog.h"
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonObject>
|
||||
#include <QLabel>
|
||||
#include <QPixmap>
|
||||
#include <QStandardPaths>
|
||||
#include <QStringList>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
DebugDialog::DebugDialog(QWidget* parent, const QString& json) : QDialog(parent) {
|
||||
setWindowTitle("Debug Logos Storage UI");
|
||||
setFixedSize(300, 220);
|
||||
|
||||
QJsonParseError err;
|
||||
QJsonDocument doc = QJsonDocument::fromJson(json.toUtf8(), &err);
|
||||
|
||||
if (err.error != QJsonParseError::NoError) {
|
||||
qWarning() << "JSON parse error:" << err.errorString();
|
||||
return;
|
||||
}
|
||||
|
||||
if (!doc.isObject()) {
|
||||
qWarning() << "Expected JSON object";
|
||||
return;
|
||||
}
|
||||
|
||||
QJsonObject obj = doc.object();
|
||||
QString id = obj.value("id").toString();
|
||||
|
||||
qDebug() << "DebugDialog: Plugin name from JSON:" << id;
|
||||
|
||||
auto* layout = new QVBoxLayout(this);
|
||||
|
||||
// auto* logo = new QLabel(this);
|
||||
// logo->setPixmap(
|
||||
// QPixmap(":/images/assets/logos.png").scaled(128, 128, Qt::KeepAspectRatio, Qt::SmoothTransformation));
|
||||
// logo->setAlignment(Qt::AlignCenter);
|
||||
|
||||
// auto* text = new QLabel(this);
|
||||
// text->setAlignment(Qt::AlignCenter);
|
||||
// text->setText("Logos Storage UI\nUI version: 1.0.0\nStorage version " + version);
|
||||
// text->setTextFormat(Qt::PlainText);
|
||||
|
||||
// layout->addWidget(logo);
|
||||
// layout->addWidget(text);
|
||||
}
|
||||
@ -1,8 +0,0 @@
|
||||
#pragma once
|
||||
#include <QDialog>
|
||||
|
||||
class DebugDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit DebugDialog(QWidget* parent = nullptr, const QString& debug = "");
|
||||
};
|
||||
@ -1,5 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/images">
|
||||
<file>assets/logo.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
@ -1,26 +0,0 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
|
||||
Item {
|
||||
width: 800
|
||||
height: 600
|
||||
|
||||
Column {
|
||||
spacing: 12
|
||||
anchors.fill: parent
|
||||
anchors.margins: 20
|
||||
|
||||
Text { text: storage.statusText; wrapMode: Text.Wrap }
|
||||
Row {
|
||||
spacing: 8
|
||||
Button {
|
||||
text: storage.storageRunning ? "Stop" : "Start"
|
||||
onClicked: storage.startStorage()
|
||||
}
|
||||
Button {
|
||||
text: "Debug"
|
||||
onClicked: storage.requestDebug()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,5 +0,0 @@
|
||||
<RCC>
|
||||
<qresource prefix="/qml">
|
||||
<file>qml/StorageWidget.qml</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
Loading…
x
Reference in New Issue
Block a user