Skip to content

Commit

Permalink
sync: from linuxdeepin/dtkdeclarative
Browse files Browse the repository at this point in the history
Synchronize source files from linuxdeepin/dtkdeclarative.

Source-pull-request: linuxdeepin/dtkdeclarative#399
  • Loading branch information
deepin-ci-robot committed Sep 23, 2024
1 parent 02e67a4 commit 9323012
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion qt6/src/qml/ToolTip.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ T.ToolTip {
verticalAlignment: Text.AlignVCenter
text: control.text
font: control.font
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
opacity: enabled ? 1.0 : 0.4
color: control.palette.toolTipText
}
Expand Down
4 changes: 0 additions & 4 deletions src/private/dquickbackdropblitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,6 @@ QSGNode *DQuickBackdropBlitter::updatePaintNode(QSGNode *oldNode, QQuickItem::Up

node->setContentItem(d->container);
node->setTextureChangedCallback(onTextureChanged, d);
connect(this, &QObject::destroyed, this, [node](){
// fix callback crashed...
node->setTextureChangedCallback(nullptr, nullptr);
});
node->resize(size());
onTextureChanged(node, d);

Expand Down
2 changes: 1 addition & 1 deletion src/qml/ToolTip.qml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ T.ToolTip {
verticalAlignment: Text.AlignVCenter
text: control.text
font: control.font
wrapMode: Text.WordWrap
wrapMode: Text.Wrap
opacity: enabled ? 1.0 : 0.4
color: control.palette.toolTipText
}
Expand Down

0 comments on commit 9323012

Please sign in to comment.