Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions qt6/src/dquickextendregister_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <dtkdeclarative_global.h>

#include "dqmlglobalobject_p.h"
#include <DWindowManagerHelper>
#include <DGuiApplicationHelper>
#include <DFontManager>
Expand All @@ -15,6 +16,13 @@
DQUICK_BEGIN_NAMESPACE
DGUI_USE_NAMESPACE

namespace DColorForeign
{
Q_NAMESPACE
QML_NAMED_ELEMENT(Color)
QML_FOREIGN_NAMESPACE(DTK_QUICK_NAMESPACE::DColor)
};

struct WindowManagerHelperForeign
{
Q_GADGET
Expand Down Expand Up @@ -57,6 +65,7 @@ struct DPlatformHandleForeign
Q_GADGET
QML_FOREIGN(DPlatformHandle)
QML_NAMED_ELEMENT(PlatformHandle)
QML_UNCREATABLE("PlatformHandle")
};

DQUICK_END_NAMESPACE
4 changes: 1 addition & 3 deletions src/private/dqmlglobalobject_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ class DColor
{
Q_GADGET
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QML_ANONYMOUS
QML_NAMED_ELEMENT(Color)
QML_UNCREATABLE("Color is only available as enums.")
QML_VALUE_TYPE(dcolor)
#endif
public:
enum Type : quint8 {
Expand Down
Loading