An option in the workspace options kcm to control whether tablet mode should be automatic switching, always on or always off.
On x11 only always on or always off are available (off actually sets to "automatic" to not it when the user switches to wayland)