now works on windows
This commit is contained in:
2026-02-14 14:32:50 +01:00
parent b493129184
commit 9765cd3e51
12 changed files with 127 additions and 49 deletions
+7 -1
View File
@@ -2,11 +2,17 @@
#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 Better_Radiobutton : public QWidget
class EXPORT Better_Radiobutton : public QWidget
{
Q_OBJECT
public:
+7 -1
View File
@@ -2,6 +2,12 @@
#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;
@@ -11,7 +17,7 @@ class Can_Transceive;
* @brief Class representing a CAN transceive UI component
*
*/
class Can_Transceive : public QWidget
class EXPORT Can_Transceive : public QWidget
{
Q_OBJECT
+7 -1
View File
@@ -3,13 +3,19 @@
#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 HexSpinBox : public QSpinBox
class EXPORT HexSpinBox : public QSpinBox
{
Q_OBJECT
+7 -1
View File
@@ -1,11 +1,17 @@
#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 Led : public QPushButton
class EXPORT Led : public QPushButton
{
Q_OBJECT
public:
+7 -1
View File
@@ -4,11 +4,17 @@
#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 Plot_wrapper : public QwtPlot
class EXPORT Plot_wrapper : public QwtPlot
{
Q_OBJECT
public: