-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Boxshadow displays abnormally in fractional scaling scenarios
- Temporary solution
- Loading branch information
1 parent
1f5e1ab
commit 9c774f8
Showing
5 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
#include "dquickborderimage_p.h" | ||
|
||
#include <private/qquickitem_p.h> | ||
#include <private/qquickborderimage_p_p.h> | ||
|
||
DQUICK_BEGIN_NAMESPACE | ||
|
||
DQuickBorderImage::DQuickBorderImage(QQuickItem *parent) | ||
: QQuickBorderImage(parent) | ||
{ | ||
} | ||
|
||
void DQuickBorderImage::itemChange(ItemChange change, const ItemChangeData &value) | ||
{ | ||
if (change == ItemDevicePixelRatioHasChanged) { | ||
return; | ||
} | ||
|
||
QQuickBorderImage::itemChange(change, value); | ||
} | ||
|
||
DQUICK_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2025 UnionTech Software Technology Co., Ltd. | ||
// | ||
// SPDX-License-Identifier: LGPL-3.0-or-later | ||
|
||
#ifndef DQUICKBORDERIMAGE_P_H | ||
#define DQUICKBORDERIMAGE_P_H | ||
|
||
#include <dtkdeclarative_global.h> | ||
|
||
#include <private/qquickborderimage_p.h> | ||
|
||
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); | ||
|
||
protected: | ||
void itemChange(ItemChange change, const ItemChangeData &value) override; | ||
}; | ||
|
||
DQUICK_END_NAMESPACE | ||
|
||
#endif // DQUICKBORDERIMAGE_P_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters