mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
feat: add keybord_layout.json
Change-Id: Ib86d98537771de2d68b4e0af8a771284dcc7b64e
This commit is contained in:
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
@ -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)
|
||||
|
@ -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);
|
||||
|
10
plugins/keyboard-layout/keybord_layout.json
Normal file
10
plugins/keyboard-layout/keybord_layout.json
Normal 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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user