Skip to content

Commit 3b0bf60

Browse files
author
Tato Levicz
committed
update QML opt in
1 parent 175637b commit 3b0bf60

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ option(BUILD_SHARED_LIBS "Build as shared library" ON)
3333
option(BUILD_DEBUG_POSTFIX_D "Append d suffix to debug libraries" OFF)
3434
option(QT_NODES_FORCE_TEST_COLOR "Force colorized unit test output" OFF)
3535
option(USE_QT6 "Build with Qt6 (Enabled by default)" ON)
36-
option(BUILD_QML "Build QML support" ON)
36+
option(BUILD_QML "Build QML support" OFF)
3737

3838
if(QT_NODES_DEVELOPER_DEFAULTS)
3939
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")

include/QtNodes/qml/ConnectionsListModel.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
#include <QtCore/QAbstractListModel>
44
#include <vector>
55
#include "QtNodes/internal/Definitions.hpp"
6+
#include "QtNodes/internal/Export.hpp"
67

78
namespace QtNodes {
89

910
class AbstractGraphModel;
1011

11-
class ConnectionsListModel : public QAbstractListModel
12+
class NODE_EDITOR_PUBLIC ConnectionsListModel : public QAbstractListModel
1213
{
1314
Q_OBJECT
1415
public:

include/QtNodes/qml/NodesListModel.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
#include <QtCore/QPointF>
55
#include <vector>
66
#include "QtNodes/internal/Definitions.hpp"
7+
#include "QtNodes/internal/Export.hpp"
78

89
namespace QtNodes {
910

1011
class AbstractGraphModel;
1112

12-
class NodesListModel : public QAbstractListModel
13+
class NODE_EDITOR_PUBLIC NodesListModel : public QAbstractListModel
1314
{
1415
Q_OBJECT
1516
public:

include/QtNodes/qml/QuickGraphModel.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include "NodesListModel.hpp"
77
#include "ConnectionsListModel.hpp"
8+
#include "QtNodes/internal/Export.hpp"
89

910
class QUndoStack;
1011

@@ -13,7 +14,7 @@ namespace QtNodes {
1314
class DataFlowGraphModel;
1415
class NodeDelegateModelRegistry;
1516

16-
class QuickGraphModel : public QObject
17+
class NODE_EDITOR_PUBLIC QuickGraphModel : public QObject
1718
{
1819
Q_OBJECT
1920
Q_PROPERTY(QtNodes::NodesListModel* nodes READ nodes CONSTANT)

0 commit comments

Comments
 (0)