feat: add keybord_layout.json

Change-Id: Ib86d98537771de2d68b4e0af8a771284dcc7b64e
This commit is contained in:
rekols 2018-03-13 10:45:15 +08:00
parent 7ef2fea7cc
commit e4faf0b5fc
Notes: gerrit 2018-03-13 03:19:57 +00:00
Code-Review+2: 石博文 <sbw@sbw.so>
Verified+1: Anonymous Coward #1000004
Submitted-by: Rekols <rekols@foxmail.com>
Submitted-at: Tue, 13 Mar 2018 03:19:57 +0000
Reviewed-on: https://cr.deepin.io/32506
Project: dde/dde-dock
Branch: refs/heads/master
4 changed files with 12 additions and 1 deletions

View File

@ -33,3 +33,4 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE
)
install(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION lib/dde-dock/plugins)
install(FILES ./keybord_layout.json DESTINATION /etc/dde-dock/indicator)

View File

@ -27,7 +27,7 @@ class KeyboardPlugin : public QObject , PluginsItemInterface
{
Q_OBJECT
Q_INTERFACES(PluginsItemInterface)
Q_PLUGIN_METADATA(IID "com.deepin.dock.PluginsItemInterface" FILE "keyboard-layout.json")
Q_PLUGIN_METADATA(IID "com.deepin.dock.PluginsItemInterface" FILE "keyboard.json")
public:
KeyboardPlugin(QObject *parent = nullptr);

View File

@ -0,0 +1,10 @@
{
"data": {
"text": {
"dbus_service": "com.deepin.dde.Keyboard",
"dbus_path": "/com/deepin/dde/Keyboard",
"dbus_interface": "com.deepin.dde.Keyboard",
"dbus_properties": "layout"
}
}
}