Skip to content

Commit

Permalink
fix: missing QQuickBorderImage symbol fo BoxShadow in qt5
Browse files Browse the repository at this point in the history
Drop DQuickBorderImage in qt5.

pms: BUG-291539
  • Loading branch information
18202781743 committed Dec 3, 2024
1 parent d122c26 commit af10434
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions qmlplugin/qmlplugin_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
#include "private/dquickarrowboxpath_p.h"
#include "private/dquickcoloroverlay_p.h"
#include "private/dquickapploaderitem_p.h"
#include "private/dquickborderimage_p.h"
#endif

#include "private/dquickimageprovider_p.h"
Expand Down Expand Up @@ -196,7 +195,6 @@ void QmlpluginPlugin::registerTypes(const char *uri)
dtkRegisterType<DQuickArrowBoxPath>(uri, implUri, 1, 0, "ArrowBoxPath");
dtkRegisterType<DQuickAppLoaderItem>(uri, implUri, 1, 0, "AppLoader");
dtkRegisterType<DQuickColorOverlay>(uri, implUri, 1, 0, "SoftwareColorOverlay");
dtkRegisterType<DQuickBorderImage>(uri, implUri, 1, 0, "DBorderImage");

dtkRegisterAnonymousType<DQUICK_NAMESPACE::DQuickDciIcon>(uri, implUri, 1);
dtkRegisterAnonymousType<DQuickControlColor>(uri, implUri, 1);
Expand Down
2 changes: 0 additions & 2 deletions src/private/dquickborderimage_p.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ DQUICK_BEGIN_NAMESPACE
class DQuickBorderImage : public QQuickBorderImage
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QML_NAMED_ELEMENT(DBorderImage)
#endif
public:
explicit DQuickBorderImage(QQuickItem *parent=nullptr);

Expand Down
2 changes: 1 addition & 1 deletion src/qml/BoxShadow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Item {
readonly property real __minImageSize: 2 * __borderBase
readonly property real __boxSize: __minImageSize - 2 * shadowBlur - 2 * __spread + 1

D.DBorderImage {
BorderImage {
id: image

anchors {
Expand Down
2 changes: 2 additions & 0 deletions src/src.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ if (EnableDtk5)
list(REMOVE_ITEM HEADERS
${PROJECT_SOURCE_DIR}/src/private/dbackdropnode_p.h
${PROJECT_SOURCE_DIR}/src/private/dquickbackdropblitter_p.h
${PROJECT_SOURCE_DIR}/src/private/dquickborderimage_p.h
)
list(REMOVE_ITEM SRCS
${PROJECT_SOURCE_DIR}/src/private/dbackdropnode.cpp
${PROJECT_SOURCE_DIR}/src/private/dquickbackdropblitter.cpp
${PROJECT_SOURCE_DIR}/src/private/dquickborderimage.cpp
)
endif()

Expand Down

0 comments on commit af10434

Please sign in to comment.