qt: add ReadableDisplay

This commit is contained in:
Jussi Kuokkanen 2019-11-09 15:33:37 +02:00
parent 7552067176
commit 67a7189f51
3 changed files with 13 additions and 1 deletions

View File

@ -26,7 +26,7 @@ typedef struct tc_readable_node_t_{
bool constant; bool constant;
// Instead of an update callback store the value for constants // Instead of an update callback store the value for constants
union { union {
tc_readable_result_t (*value_callback)(struct tc_readable_node_t_*); tc_readable_result_t (*value_callback)(const struct tc_readable_node_t_*);
tc_variant_t data; tc_variant_t data;
}; };
struct tc_readable_node_t_ *parent; struct tc_readable_node_t_ *parent;

View File

@ -0,0 +1,4 @@
#include "ReadableDisplay.h"
ReadableDisplay::ReadableDisplay(QWidget *parent) : QWidget(parent) {
}

View File

@ -0,0 +1,8 @@
#pragma once
#include <QWidget>
class ReadableDisplay : public QWidget {
public:
ReadableDisplay(QWidget *parent = nullptr);
};