diff options
author | Richard J. Moore <rich@kde.org> | 2013-09-08 11:43:23 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-09 22:45:19 +0200 |
commit | 8aaf6a3070b2ff1cab1fa79a79fb16e2768e1e53 (patch) | |
tree | c1d1b988a7228e6e4c64c44f05affb6301b35d37 /src/x11extras/qx11info_x11.h | |
parent | 9c45260942c0ee32267e651d981bfa33a6acb64d (diff) | |
download | qtx11extras-8aaf6a3070b2ff1cab1fa79a79fb16e2768e1e53.tar.gz |
Add a method to let users determine if the current platform is X11.v5.2.0-alpha1
In order to know if the methods in QtX11Extras are usable the user should
have a way to tell if they're running on X11.
Change-Id: I096267eb1f1fe07ee11811574a96100389c33b7d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/x11extras/qx11info_x11.h')
-rw-r--r-- | src/x11extras/qx11info_x11.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/x11extras/qx11info_x11.h b/src/x11extras/qx11info_x11.h index bbc7ff4..d5d00f3 100644 --- a/src/x11extras/qx11info_x11.h +++ b/src/x11extras/qx11info_x11.h @@ -53,6 +53,8 @@ QT_BEGIN_NAMESPACE class Q_X11EXTRAS_EXPORT QX11Info { public: + static bool isPlatformX11(); + static int appDpiX(int screen=-1); static int appDpiY(int screen=-1); |