diff --git a/src/libkirigami/tabletmodewatcher.cpp b/src/libkirigami/tabletmodewatcher.cpp --- a/src/libkirigami/tabletmodewatcher.cpp +++ b/src/libkirigami/tabletmodewatcher.cpp @@ -21,7 +21,7 @@ #include "tabletmodewatcher.h" -#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS) && !defined(Q_OS_MACOS) +#if defined(Q_OS_UNIX) && !defined(Q_OS_ANDROID) && !defined(Q_OS_IOS) && !defined(Q_OS_MACOS) && !defined(KIRIGAMI_FORCE_TABLET_MODE) #include "tabletmodemanager_interface.h" #include #endif @@ -45,7 +45,7 @@ TabletModeWatcherPrivate(TabletModeWatcher *watcher) : q(watcher) { -#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS) +#if defined(Q_OS_ANDROID) || defined(Q_OS_IOS) || defined(KIRIGAMI_FORCE_TABLET_MODE) isTabletModeAvailable = true; isTabletMode = true; #elif defined(Q_OS_MACOS) @@ -92,7 +92,7 @@ void setIsTablet(bool tablet); TabletModeWatcher *q; -#if (defined(Q_OS_LINUX) || defined(Q_OS_UNIX)) && !defined(Q_OS_ANDROID) && !defined(Q_OS_MAC) && !defined(Q_OS_IOS) +#if (defined(Q_OS_LINUX) || defined(Q_OS_UNIX)) && !defined(Q_OS_ANDROID) && !defined(Q_OS_MAC) && !defined(Q_OS_IOS) && !defined(KIRIGAMI_FORCE_TABLET_MODE) OrgKdeKWinTabletModeManagerInterface *m_interface = nullptr; #endif bool isTabletModeAvailable = false;