Skip to content

Commit

Permalink
fix: DAppletBridget can't work
Browse files Browse the repository at this point in the history
DAppletMetaProxy can't router all operator of QMetaObject::invokeMethod,
so DAppletProxy is createProxyMeta's object temporally.

task: https://pms.uniontech.com/task-view-365879.html
  • Loading branch information
18202781743 authored and deepin-bot[bot] committed Oct 21, 2024
1 parent acf072c commit cc619f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frame/applet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ DAppletProxy *DAppletPrivate::appletProxy() const
{
if (!m_proxy) {
auto meta = const_cast<DAppletPrivate *>(this)->q_func()->createProxyMeta();
// TODO DAppletMetaProxy can't router all operator of QMetaObject::invokeMethod,
// so DAppletProxy is createProxyMeta's object temporally.
// const_cast<DAppletPrivate *>(this)->m_proxy =
// new DAppletMetaProxy(meta, const_cast<DAppletPrivate *>(this)->q_func());
const_cast<DAppletPrivate *>(this)->m_proxy =
new DAppletMetaProxy(meta, const_cast<DAppletPrivate *>(this)->q_func());
reinterpret_cast<DAppletProxy *>(meta);
}
return m_proxy;
}
Expand Down

0 comments on commit cc619f4

Please sign in to comment.