factory idea for wasm

cleanup
remove unused defines
This commit is contained in:
2026-04-12 13:42:02 +02:00
parent 59f7680f94
commit 8ce89a3076
16 changed files with 113 additions and 186 deletions
+1 -7
View File
@@ -2,17 +2,11 @@
#include <QRadioButton>
#include <QVBoxLayout>
#ifdef INTERNAL
#define EXPORT Q_DECL_EXPORT
#else
#define EXPORT Q_DECL_IMPORT
#endif
/**
* @brief Class representing a better radiobutton group
*
*/
class EXPORT Better_Radiobutton : public QWidget
class Better_Radiobutton : public QWidget
{
Q_OBJECT
public:
+1 -7
View File
@@ -2,12 +2,6 @@
#include "hex_spinbox.hpp"
#include <QWidget>
#ifdef INTERNAL
#define EXPORT Q_DECL_EXPORT
#else
#define EXPORT Q_DECL_IMPORT
#endif
namespace Ui
{
class Can_Transceive;
@@ -17,7 +11,7 @@ class Can_Transceive;
* @brief Class representing a CAN transceive UI component
*
*/
class EXPORT Can_Transceive : public QWidget
class Can_Transceive : public QWidget
{
Q_OBJECT
+1 -7
View File
@@ -3,19 +3,13 @@
#include <QRegularExpressionValidator>
#include <QSpinBox>
#ifdef INTERNAL
#define EXPORT Q_DECL_EXPORT
#else
#define EXPORT Q_DECL_IMPORT
#endif
/**
* @brief Class representing a hexadecimal spin box
* @note Since QSpinBox uses int as the storage type, the effective editing range
* is +/- 0x7FFF FFFF, so it can't handle a full unsigned int.
* QDoubleSpinBox would be a more suitable base class if a wider range is needed.
*/
class EXPORT HexSpinBox : public QSpinBox
class HexSpinBox : public QSpinBox
{
Q_OBJECT
+1 -7
View File
@@ -1,17 +1,11 @@
#pragma once
#include "QPushButton"
#ifdef INTERNAL
#define EXPORT Q_DECL_EXPORT
#else
#define EXPORT Q_DECL_IMPORT
#endif
/**
* @brief Class representing an LED widget
*
*/
class EXPORT Led : public QPushButton
class Led : public QPushButton
{
Q_OBJECT
public:
+1 -7
View File
@@ -4,17 +4,11 @@
#include <qwt_plot_curve.h>
#include <qwt_text.h>
#ifdef INTERNAL
#define EXPORT Q_DECL_EXPORT
#else
#define EXPORT Q_DECL_IMPORT
#endif
/**
* @brief Class wrapping a QwtPlot for plotting data
*
*/
class EXPORT Plot_wrapper : public QwtPlot
class Plot_wrapper : public QwtPlot
{
Q_OBJECT
public: