Use correct tablet mode function to determine mobile-ness

Merged Nate Graham requested to merge work/cherry-pick-ed201d88 into Plasma/5.27

isTabletModeAvailable() only tells us if the device is capable of entering tablet mode, not whether it's currently in that mode. This will return true for convertible laptops and cause them to get the wrong default settings.

What we want to do is query isTabletMode() to see if the device is currently in tablet mode right now. It's still not perfect because theoretically a convertible laptop could be in tablet mode during the initial system setup (when default profiles are generated), but this is at least a rarer situation compared to the status quo, which generates mobile-specific profiles 100% of the time for that type of hardware.

(cherry picked from commit ed201d88)

Merge request reports