fix: 修复任务栏应用图标右键失效问题
修复任务栏应用图标右键失效问题 Log: Task: https://pms.uniontech.com/task-view-140805.html Influence: 保证任务栏应用右键菜单功能正常 Change-Id: Iedb3e0394567c855f7760dc52a06d8ad1073001e
This commit is contained in:
@ -27,11 +27,12 @@ DBusAdaptorEntry::DBusAdaptorEntry(QObject *parent)
|
||||
|
||||
// constructor
|
||||
setAutoRelaySignals(true);
|
||||
if (QMetaType::type("ExportWindowInfo") == QMetaType::UnknownType)
|
||||
registerExportWindowInfoMetaType();
|
||||
|
||||
if (QMetaType::type("ExportWindowInfoList") == QMetaType::UnknownType)
|
||||
registerExportWindowInfoListMetaType();
|
||||
if (QMetaType::type("WindowInfo") == QMetaType::UnknownType)
|
||||
registerWindowInfoMetaType();
|
||||
|
||||
if (QMetaType::type("WindowInfoMap") == QMetaType::UnknownType)
|
||||
registerWindowInfoMapMetaType();
|
||||
|
||||
Entry *entry = static_cast<Entry *>(QObject::parent());
|
||||
if (entry) {
|
||||
@ -90,7 +91,7 @@ QString DBusAdaptorEntry::name() const
|
||||
return parent()->getName();
|
||||
}
|
||||
|
||||
ExportWindowInfoList DBusAdaptorEntry::windowInfos()
|
||||
WindowInfoMap DBusAdaptorEntry::windowInfos()
|
||||
{
|
||||
return parent()->getExportWindowInfos();
|
||||
}
|
||||
|
Reference in New Issue
Block a user