Erste lauffähige Version

This commit is contained in:
2026-06-08 23:31:24 +02:00
commit cc102c93eb
20 changed files with 1827 additions and 0 deletions

30
include/tagwidget.h Normal file
View File

@@ -0,0 +1,30 @@
#pragma once
#include <QWidget>
#include <QScrollArea>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include <QLineEdit>
#include <QMap>
#include <QString>
#include "tagpanel.h"
// TagWidget is the side-panel that receives tagDetected() signals from the
// SerialWorker and creates/updates one TagPanel per unique tag.
class TagWidget : public QWidget
{
Q_OBJECT
public:
explicit TagWidget(QWidget *parent = nullptr);
public slots:
void handleTag(const QString &tag, const QString &value);
void clearAll();
void removeTag(const QString &tag);
private:
QVBoxLayout *m_panelLayout = nullptr;
QMap<QString, TagPanel*> m_panels;
};