提交 84ae4029 编写于 作者: M manjaro-xfce

实现配置参数调用

上级 97b2d4d0
......@@ -43,7 +43,15 @@ void DialogPannel::deal_message(QString message)
AddHandle(cmd);
else if (cmd["function"]==std::string("handle_set"))
{
const QString handle = QString::fromStdString(cmd["handle"]).trimmed();
const QString value = QString::fromStdString(cmd["value"]).trimmed();
const QString source = QString::fromStdString(cmd["source"]).trimmed();
if (!m_handles.contains(source))
return;
if (!m_handles.contains(handle))
return;
if (m_handles[source][handle])
m_handles[source][handle](value);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册