From b959614f492f3d8bd54e801e1b0aeaf923770ea1 Mon Sep 17 00:00:00 2001 From: reionwong Date: Sun, 26 Sep 2021 14:48:44 +0800 Subject: [PATCH] Add touchpad option --- CMakeLists.txt | 1 + src/application.cpp | 3 + src/images/sidebar/dark/touchpad.svg | 7 ++ src/qml/SideBar.qml | 18 ++++ src/qml/Touchpad/Main.qml | 136 +++++++++++++++++++++++++++ src/resources.qrc | 2 + src/touchpad.cpp | 55 +++++++++++ src/touchpad.h | 38 ++++++++ 8 files changed, 260 insertions(+) create mode 100644 src/images/sidebar/dark/touchpad.svg create mode 100644 src/qml/Touchpad/Main.qml create mode 100644 src/touchpad.cpp create mode 100644 src/touchpad.h diff --git a/CMakeLists.txt b/CMakeLists.txt index 86f0c70..d1e6a65 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,6 +51,7 @@ set(SRCS src/datetime/timezonedata.h src/datetime/timezonemap.cpp src/datetime/timedated_interface.cpp + src/touchpad.cpp ) set(RESOURCES diff --git a/src/application.cpp b/src/application.cpp index 8e14a5a..6a6506e 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -17,6 +17,7 @@ #include "language.h" #include "password.h" #include "powermanager.h" +#include "touchpad.h" #include "cursor/cursorthememodel.h" #include "cursor/mouse.h" @@ -75,6 +76,8 @@ Application::Application(int &argc, char **argv) qmlRegisterType(uri, 1, 0, "Mouse"); qmlRegisterType