mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fixed(keyboard-layout):open control center keyboard setting
This commit is contained in:
parent
333eb6b491
commit
68e67ae612
@ -18,6 +18,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dbusadaptors.h"
|
#include "dbusadaptors.h"
|
||||||
|
#include <DDBusSender>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
DBusAdaptors::DBusAdaptors(QObject *parent)
|
DBusAdaptors::DBusAdaptors(QObject *parent)
|
||||||
@ -152,9 +153,14 @@ void DBusAdaptors::refreshMenuSelection()
|
|||||||
void DBusAdaptors::handleActionTriggered(QAction *action)
|
void DBusAdaptors::handleActionTriggered(QAction *action)
|
||||||
{
|
{
|
||||||
if (action == m_addLayoutAction) {
|
if (action == m_addLayoutAction) {
|
||||||
QProcess::startDetached("dbus-send --print-reply --dest=com.deepin.dde.ControlCenter "
|
DDBusSender()
|
||||||
"/com/deepin/dde/ControlCenter "
|
.service("com.deepin.dde.ControlCenter")
|
||||||
"com.deepin.dde.ControlCenter.ShowModule string:keyboard");
|
.interface("com.deepin.dde.ControlCenter")
|
||||||
|
.path("/com/deepin/dde/ControlCenter")
|
||||||
|
.method("ShowPage")
|
||||||
|
.arg(QString("keyboard"))
|
||||||
|
.arg(QString("Keyboard Layout/Add Keyboard Layout"))
|
||||||
|
.call();
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString layout = action->objectName();
|
const QString layout = action->objectName();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user