Changeset View
Changeset View
Standalone View
Standalone View
kcms/input/kcm/configcontainer.cpp
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU General Public License | 14 | * You should have received a copy of the GNU General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #include "configcontainer.h" | 19 | #include "configcontainer.h" | ||
20 | #include "configplugin.h" | 20 | #include "configplugin.h" | ||
21 | #include "kcm/libinput/libinput_config.h" | 21 | | ||
22 | #include "kcm/xlib/xlib_config.h" | 22 | #include "inputbackend.h" | ||
23 | 23 | | |||
24 | #include <KWindowSystem/kwindowsystem.h> | 24 | #include <KWindowSystem/kwindowsystem.h> | ||
25 | 25 | | |||
26 | extern "C" | 26 | extern "C" | ||
27 | { | 27 | { | ||
28 | Q_DECL_EXPORT void kcminit_mouse() | 28 | Q_DECL_EXPORT void kcminit_mouse() | ||
29 | { | 29 | { | ||
30 | if (KWindowSystem::isPlatformX11()) { | 30 | InputBackend *backend = InputBackend::implementation(); | ||
31 | XlibConfig::kcmInit(); | 31 | backend->kcmInit(); | ||
32 | } | 32 | delete backend; | ||
33 | } | 33 | } | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | ConfigContainer::ConfigContainer(QWidget *parent, const QVariantList &args) | 36 | ConfigContainer::ConfigContainer(QWidget *parent, const QVariantList &args) | ||
37 | : KCModule(parent, args) | 37 | : KCModule(parent, args) | ||
38 | { | 38 | { | ||
39 | m_plugin = ConfigPlugin::implementation(this); | 39 | m_plugin = ConfigPlugin::implementation(this); | ||
40 | } | 40 | } | ||
Show All 35 Lines |