summaryrefslogtreecommitdiff
path: root/src/x11extras/qx11info_x11.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/x11extras/qx11info_x11.cpp')
-rw-r--r--src/x11extras/qx11info_x11.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/x11extras/qx11info_x11.cpp b/src/x11extras/qx11info_x11.cpp
index 713e76c..85aa9e1 100644
--- a/src/x11extras/qx11info_x11.cpp
+++ b/src/x11extras/qx11info_x11.cpp
@@ -83,6 +83,16 @@ QX11Info::QX11Info()
}
/*!
+ Returns true if the application is currently running on X11.
+
+ \since 5.2
+ */
+bool QX11Info::isPlatformX11()
+{
+ return QGuiApplication::platformName() == QLatin1String("xcb");
+}
+
+/*!
Returns the horizontal resolution of the given \a screen in terms of the
number of dots per inch.