1671 X11->displayName = 0;
1673 X11->focus_model = -1;
1676 X11->use_xrandr =
false;
1677 X11->xrandr_major = 0;
1678 X11->xrandr_eventbase = 0;
1679 X11->xrandr_errorbase = 0;
1682 X11->use_xrender =
false;
1683 X11->xrender_major = 0;
1684 X11->xrender_version = 0;
1687 X11->use_xfixes =
false;
1688 X11->xfixes_major = 0;
1689 X11->xfixes_eventbase = 0;
1690 X11->xfixes_errorbase = 0;
1693 X11->use_xinput =
false;
1694 X11->xinput_major = 0;
1695 X11->xinput_eventbase = 0;
1696 X11->xinput_errorbase = 0;
1698 X11->use_xkb =
false;
1700 X11->xkb_eventbase = 0;
1701 X11->xkb_errorbase = 0;
1704 X11->use_mitshm =
false;
1705 X11->use_mitshm_pixmaps =
false;
1706 X11->mitshm_major = 0;
1708 X11->sip_serial = 0;
1709 X11->net_supported_list = 0;
1710 X11->net_virtual_root_list = 0;
1711 X11->wm_client_leader = 0;
1713 X11->argbVisuals = 0;
1714 X11->argbColormaps = 0;
1715 X11->screenCount = 0;
1716 X11->time = CurrentTime;
1717 X11->userTime = CurrentTime;
1718 X11->ignore_badwindow =
false;
1719 X11->seen_badwindow =
false;
1721 X11->motifdnd_active =
false;
1727 X11->visual_class = -1;
1728 X11->visual_id = -1;
1729 X11->color_count = 0;
1730 X11->custom_cmap =
false;
1733 X11->visual =
reinterpret_cast<Visual *
>(visual);
1734 X11->colormap = colormap;
1737 X11->has_fontconfig =
false;
1738 #if !defined(QT_NO_FONTCONFIG) 1740 X11->has_fontconfig = FcInit();
1741 X11->fc_antialias =
true;
1744 #ifndef QT_NO_XRENDER 1745 memset(
X11->solid_fills, 0,
sizeof(
X11->solid_fills));
1746 for (
int i = 0; i <
X11->solid_fill_count; ++i)
1747 X11->solid_fills[i].screen = -1;
1748 memset(
X11->pattern_fills, 0,
sizeof(
X11->pattern_fills));
1749 for (
int i = 0; i <
X11->pattern_fill_count; ++i)
1750 X11->pattern_fills[i].screen = -1;
1755 int argc = priv->
argc;
1756 char **argv = priv->
argv;
1763 char *app_class = 0;
1765 const char* p = strrchr(argv[0],
'/');
1766 app_class =
qstrdup(p ? p + 1 : argv[0]);
1768 app_class[0] = toupper(app_class[0]);
1778 char *app_class = 0;
1779 if (argv && argv[0]) {
1780 const char *p = strrchr(argv[0],
'/');
1781 appName = p ? p + 1 : argv[0];
1784 app_class[0] = toupper(app_class[0]);
1794 int j = argc ? 1 : 0;
1795 for (
int i=1; i<argc; i++) {
1796 if (argv[i] && *argv[i] !=
'-') {
1797 argv[j++] = argv[i];
1801 if (arg ==
"-display") {
1802 if (++i < argc && !X11->
display)
1803 X11->displayName = argv[i];
1804 }
else if (arg ==
"-fn" || arg ==
"-font") {
1807 }
else if (arg ==
"-bg" || arg ==
"-background") {
1810 }
else if (arg ==
"-btn" || arg ==
"-button") {
1813 }
else if (arg ==
"-fg" || arg ==
"-foreground") {
1816 }
else if (arg ==
"-name") {
1819 }
else if (arg ==
"-title") {
1822 }
else if (arg ==
"-geometry") {
1825 }
else if (arg ==
"-im") {
1828 }
else if (arg ==
"-ncols") {
1830 X11->color_count =
qMax(0,atoi(argv[i]));
1831 }
else if (arg ==
"-visual") {
1832 if (++i < argc && !X11->visual) {
1835 X11->visual_class = StaticGray;
1839 X11->visual_class = StaticColor;
1841 X11->visual_class = PseudoColor;
1843 X11->visual_class = TrueColor;
1845 X11->visual_class = DirectColor;
1847 X11->visual_id =
static_cast<int>(strtol(argv[i], 0, 0));
1850 }
else if (arg ==
"-inputstyle") {
1867 }
else if (arg ==
"-cmap") {
1869 X11->custom_cmap =
true;
1871 else if (arg ==
"-sync")
1873 #if defined(QT_DEBUG) 1874 else if (arg ==
"-nograb")
1876 else if (arg ==
"-dograb")
1880 argv[j++] = argv[i];
1885 #if defined(QT_DEBUG) && defined(Q_OS_LINUX) 1888 qDebug(
"Qt: gdb: -nograb added to command-line options.\n" 1889 "\t Use the -dograb option to enforce grabbing.");
1895 if ((
X11->display = XOpenDisplay(
X11->displayName)) == 0) {
1897 XDisplayName(
X11->displayName));
1903 XSynchronize(
X11->display,
true);
1911 X11->defaultScreen = DefaultScreen(
X11->display);
1912 X11->screenCount = ScreenCount(
X11->display);
1914 int formatCount = 0;
1915 XPixmapFormatValues *
values = XListPixmapFormats(
X11->display, &formatCount);
1916 for (
int i = 0; i < formatCount; ++i)
1917 X11->bppForDepth[values[i].depth] = values[i].bits_per_pixel;
1921 X11->argbVisuals =
new Visual *[
X11->screenCount];
1922 X11->argbColormaps =
new Colormap[
X11->screenCount];
1924 for (
int s = 0; s <
X11->screenCount; s++) {
1929 int widthMM = DisplayWidthMM(
X11->display, s);
1931 screen->
dpiX = (DisplayWidth(
X11->display, s) * 254 + widthMM * 5) / (widthMM * 10);
1936 int heightMM = DisplayHeightMM(
X11->display, s);
1937 if (heightMM != 0) {
1938 screen->
dpiY = (DisplayHeight(
X11->display, s) * 254 + heightMM * 5) / (heightMM * 10);
1943 X11->argbVisuals[s] = 0;
1944 X11->argbColormaps[s] = 0;
1948 #ifndef QT_NO_XRENDER 1949 int xrender_eventbase, xrender_errorbase;
1951 if (XQueryExtension(
X11->display,
"RENDER", &
X11->xrender_major,
1952 &xrender_eventbase, &xrender_errorbase)
1953 && XRenderQueryExtension(
X11->display, &xrender_eventbase,
1954 &xrender_errorbase)) {
1958 XRenderQueryVersion(
X11->display, &major, &minor);
1960 X11->use_xrender = (major >= 0 && minor >= 5);
1961 X11->xrender_version = major*100+minor;
1964 if (
X11->xrender_version == 10
1965 && VendorRelease(
X11->display) < 60900000
1967 X11->xrender_version = 9;
1970 #endif // QT_NO_XRENDER 1972 #ifndef QT_NO_MITSHM 1975 int mitshm_eventbase;
1976 int mitshm_errorbase;
1978 if (XQueryExtension(
X11->display,
"MIT-SHM", &
X11->mitshm_major,
1979 &mitshm_eventbase, &mitshm_errorbase)
1980 && XShmQueryVersion(
X11->display, &mitshm_major, &mitshm_minor,
1990 if (local && (
qgetenv(
"QT_X11_NO_MITSHM").
toInt() == 0)) {
1991 Visual *defaultVisual = DefaultVisual(
X11->display, DefaultScreen(
X11->display));
1992 X11->use_mitshm = ((defaultVisual->red_mask == 0xff0000
1993 || defaultVisual->red_mask == 0xf800)
1994 && (defaultVisual->green_mask == 0xff00
1995 || defaultVisual->green_mask == 0x7e0)
1996 && (defaultVisual->blue_mask == 0xff
1997 || defaultVisual->blue_mask == 0x1f));
1998 X11->use_mitshm_pixmaps =
X11->use_mitshm && mitshm_pixmaps;
2001 #endif // QT_NO_MITSHM 2018 #ifndef QT_NO_XRANDR 2020 if (XQueryExtension(
X11->display,
"RANDR", &
X11->xrandr_major,
2021 &
X11->xrandr_eventbase, &
X11->xrandr_errorbase)) {
2023 # ifdef QT_RUNTIME_XRANDR 2024 X11->ptrXRRSelectInput = 0;
2025 X11->ptrXRRUpdateConfiguration = 0;
2026 X11->ptrXRRRootToScreen = 0;
2027 X11->ptrXRRQueryExtension = 0;
2030 if (!xrandrLib.load()) {
2034 if (xrandrLib.isLoaded()) {
2035 X11->ptrXRRSelectInput =
2037 X11->ptrXRRUpdateConfiguration =
2039 X11->ptrXRRRootToScreen =
2041 X11->ptrXRRQueryExtension =
2045 X11->ptrXRRSelectInput = XRRSelectInput;
2046 X11->ptrXRRUpdateConfiguration = XRRUpdateConfiguration;
2047 X11->ptrXRRRootToScreen = XRRRootToScreen;
2048 X11->ptrXRRQueryExtension = XRRQueryExtension;
2051 if (
X11->ptrXRRQueryExtension
2052 &&
X11->ptrXRRQueryExtension(
X11->display, &
X11->xrandr_eventbase, &
X11->xrandr_errorbase)) {
2054 X11->use_xrandr =
true;
2057 #endif // QT_NO_XRANDR 2059 #ifndef QT_NO_XRENDER 2060 if (
X11->use_xrender) {
2063 XRenderPictFormat *
format =
2064 XRenderFindVisualFormat(
X11->display,
2068 X11->use_xrender =
false;
2071 #endif // QT_NO_XRENDER 2073 #ifndef QT_NO_XFIXES 2075 if (XQueryExtension(
X11->display,
"XFIXES", &
X11->xfixes_major,
2076 &
X11->xfixes_eventbase, &
X11->xfixes_errorbase)) {
2080 X11->ptrXFixesSelectSelectionInput =
XFIXES_LOAD_V2(XFixesSelectSelectionInput);
2082 if(
X11->ptrXFixesQueryExtension &&
X11->ptrXFixesQueryVersion
2083 &&
X11->ptrXFixesQueryExtension(
X11->display, &
X11->xfixes_eventbase,
2084 &
X11->xfixes_errorbase)) {
2094 X11->ptrXFixesQueryVersion(
X11->display, &major, &minor);
2095 X11->use_xfixes = (major >= 1);
2096 X11->xfixes_major = major;
2099 X11->ptrXFixesQueryExtension = 0;
2100 X11->ptrXFixesQueryVersion = 0;
2101 X11->ptrXFixesSetCursorName = 0;
2102 X11->ptrXFixesSelectSelectionInput = 0;
2104 #endif // QT_NO_XFIXES 2106 #ifndef QT_NO_XCURSOR 2107 #ifdef QT_RUNTIME_XCURSOR 2108 X11->ptrXcursorLibraryLoadCursor = 0;
2111 bool xcursorFound = xcursorLib.load();
2112 if (!xcursorFound) {
2114 xcursorFound = xcursorLib.load();
2117 X11->ptrXcursorLibraryLoadCursor =
2121 X11->ptrXcursorLibraryLoadCursor = XcursorLibraryLoadCursor;
2122 #endif // QT_RUNTIME_XCURSOR 2123 #endif // QT_NO_XCURSOR 2126 int xsync_evbase, xsync_errbase;
2128 if (XSyncQueryExtension(
X11->display, &xsync_evbase, &xsync_errbase))
2129 XSyncInitialize(
X11->display, &major, &minor);
2130 #endif // QT_NO_XSYNC 2132 #ifndef QT_NO_XINERAMA 2133 #ifdef QT_RUNTIME_XINERAMA 2134 X11->ptrXineramaQueryExtension = 0;
2135 X11->ptrXineramaIsActive = 0;
2136 X11->ptrXineramaQueryScreens = 0;
2139 bool xineramaFound = xineramaLib.load();
2140 if (!xineramaFound) {
2142 xineramaFound = xineramaLib.load();
2144 if (xineramaFound) {
2145 X11->ptrXineramaQueryExtension =
2147 X11->ptrXineramaIsActive =
2149 X11->ptrXineramaQueryScreens =
2153 X11->ptrXineramaQueryScreens = XineramaQueryScreens;
2154 X11->ptrXineramaIsActive = XineramaIsActive;
2155 X11->ptrXineramaQueryExtension = XineramaQueryExtension;
2156 #endif // QT_RUNTIME_XINERAMA 2157 #endif // QT_NO_XINERAMA 2159 #ifndef QT_NO_XINPUT 2161 X11->ptrXCloseDevice = 0;
2162 X11->ptrXListInputDevices = 0;
2163 X11->ptrXOpenDevice = 0;
2164 X11->ptrXFreeDeviceList = 0;
2165 X11->ptrXSelectExtensionEvent = 0;
2166 X11->use_xinput = XQueryExtension(
X11->display,
"XInputExtension", &
X11->xinput_major,
2167 &
X11->xinput_eventbase, &
X11->xinput_errorbase);
2168 if (
X11->use_xinput) {
2173 X11->ptrXSelectExtensionEvent =
XINPUT_LOAD(XSelectExtensionEvent);
2175 #endif // QT_NO_XINPUT 2178 int xkblibMajor = XkbMajorVersion;
2179 int xkblibMinor = XkbMinorVersion;
2180 X11->use_xkb = XkbQueryExtension(
X11->display,
2182 &
X11->xkb_eventbase,
2183 &
X11->xkb_errorbase,
2189 unsigned int state = XkbPCF_GrabsUseXKBStateMask;
2190 (void) XkbSetPerClientControls(
X11->display, state, &state);
2193 XkbSelectEventDetails(
X11->display,
2196 XkbAllStateComponentsMask,
2204 #if !defined(QT_NO_FONTCONFIG) 2208 for (
int s = 0; s < ScreenCount(
X11->display); ++s) {
2213 double fc_scale = 1.;
2215 X11->fc_scale = fc_scale;
2216 for (
int s = 0; s < ScreenCount(
X11->display); ++s) {
2217 int subpixel = FC_RGBA_UNKNOWN;
2218 #if !defined(QT_NO_XRENDER) && (RENDER_MAJOR > 0 || RENDER_MINOR >= 6) 2219 if (
X11->use_xrender) {
2220 int rsp = XRenderQuerySubpixelOrder(
X11->display, s);
2223 case SubPixelUnknown:
2224 subpixel = FC_RGBA_UNKNOWN;
2226 case SubPixelHorizontalRGB:
2227 subpixel = FC_RGBA_RGB;
2229 case SubPixelHorizontalBGR:
2230 subpixel = FC_RGBA_BGR;
2232 case SubPixelVerticalRGB:
2233 subpixel = FC_RGBA_VRGB;
2235 case SubPixelVerticalBGR:
2236 subpixel = FC_RGBA_VBGR;
2239 subpixel = FC_RGBA_NONE;
2245 char *rgba = XGetDefault(
X11->display,
"Xft", FC_RGBA);
2248 int v = strtol(rgba, &end, 0);
2251 }
else if (
qstrncmp(rgba,
"unknown", 7) == 0) {
2252 subpixel = FC_RGBA_UNKNOWN;
2253 }
else if (
qstrncmp(rgba,
"rgb", 3) == 0) {
2254 subpixel = FC_RGBA_RGB;
2255 }
else if (
qstrncmp(rgba,
"bgr", 3) == 0) {
2256 subpixel = FC_RGBA_BGR;
2257 }
else if (
qstrncmp(rgba,
"vrgb", 4) == 0) {
2258 subpixel = FC_RGBA_VRGB;
2259 }
else if (
qstrncmp(rgba,
"vbgr", 4) == 0) {
2260 subpixel = FC_RGBA_VBGR;
2261 }
else if (
qstrncmp(rgba,
"none", 4) == 0) {
2262 subpixel = FC_RGBA_NONE;
2265 X11->screens[s].subpixel = subpixel;
2268 #ifdef FC_HINT_STYLE 2269 X11->fc_hint_style = -1;
2278 #endif // QT_NO_XRENDER 2284 #if 0 //disabled for now.. 2295 for (screen = 0; screen <
X11->screenCount; ++screen) {
2297 KeymapStateMask | EnterWindowMask | LeaveWindowMask | PropertyChangeMask);
2299 #ifndef QT_NO_XRANDR 2300 if (
X11->use_xrandr)
2302 #endif // QT_NO_XRANDR 2310 #ifndef QT_NO_XFIXES 2311 if (
X11->ptrXFixesSelectSelectionInput)
2313 XFixesSetSelectionOwnerNotifyMask
2314 | XFixesSelectionWindowDestroyNotifyMask
2315 | XFixesSelectionClientCloseNotifyMask);
2316 #endif // QT_NO_XFIXES 2317 X11->compositingManagerRunning = XGetSelectionOwner(
X11->display,
2320 X11->desktopVersion = 0;
2324 unsigned long length, after;
2335 if (
qgetenv(
"DESKTOP_SESSION") ==
"gnome") {
2347 0, 2, False, XA_STRING, &type, &format, &length,
2349 if (rc ==
Success && length) {
2350 if (!strcmp(reinterpret_cast<char *>(data),
"xfce4")) {
2363 0, 1, False, AnyPropertyType, &type, &format, &length,
2365 if (rc ==
Success && length) {
2373 &type, &format, &length, &after, &data);
2374 if (rc ==
Success && length) {
2381 0, 1024, False, XA_WINDOW, &type,
2382 &format, &length, &after, &data) ==
Success) {
2383 if (type == XA_WINDOW && format == 32) {
2388 if (windowManagerWindow !=
XNone) {
2391 0, 1024, False, utf8atom, &type,
2392 &format, &length, &after, &data) ==
Success) {
2393 if (type == utf8atom && format == 8) {
2394 if (
qstrcmp((
const char *)data,
"MCompositor") == 0)
2405 XFree((
char *)data);
2407 #if !defined(QT_NO_STYLE_GTK) 2422 int ptsz = (
X11->use_xrender
2434 #if !defined (QT_NO_TABLET) 2435 if (
X11->use_xinput) {
2441 XDeviceInfo *devices = 0, *devs;
2442 XInputClassInfo *ip;
2448 if (
X11->ptrXListInputDevices) {
2449 devices =
X11->ptrXListInputDevices(
X11->display, &ndev);
2451 qWarning(
"QApplication: Failed to get list of tablet devices");
2456 for (devs = devices, i = 0; i < ndev && devs; i++, devs++) {
2462 #if defined(Q_OS_IRIX) 2472 if (wacomDeviceName()->
isEmpty())
2473 wacomDeviceName()->append(devs->name);
2483 if (gotStylus || gotEraser) {
2484 if (
X11->ptrXOpenDevice)
2485 dev =
X11->ptrXOpenDevice(
X11->display, devs->id);
2493 device_data.
device = dev;
2503 if (dev->num_classes > 0) {
2504 for (ip = dev->classes, j = 0; j < dev->num_classes;
2506 switch (ip->input_class) {
2547 any = (XAnyClassPtr) (devs->inputclassinfo);
2548 for (j = 0; j < devs->num_classes; j++) {
2549 if (any->c_class == ValuatorClass) {
2550 v = (XValuatorInfoPtr) any;
2551 a = (XAxisInfoPtr) ((
char *) v +
2552 sizeof (XValuatorInfo));
2553 #if defined (Q_OS_IRIX) 2560 char returnString[SGIDeviceRtrnLen];
2562 if (XSGIMiscQueryExtension(
X11->display, &tmp, &tmp)
2563 && XSGIDeviceQuery(
X11->display, devs->id,
2564 "dimensions", returnString)) {
2567 device_data.minX = 0;
2568 device_data.minY = 0;
2569 device_data.maxX = str.
left(comma).
toInt();
2570 device_data.maxY = str.
mid(comma + 1).
toInt();
2572 device_data.minX = a[WAC_XCOORD_I].min_value;
2573 device_data.maxX = a[WAC_XCOORD_I].max_value;
2574 device_data.minY = a[WAC_YCOORD_I].min_value;
2575 device_data.maxY = a[WAC_YCOORD_I].max_value;
2577 device_data.minPressure = a[WAC_PRESSURE_I].min_value;
2578 device_data.maxPressure = a[WAC_PRESSURE_I].max_value;
2579 device_data.minTanPressure = a[WAC_TAN_PRESSURE_I].min_value;
2580 device_data.maxTanPressure = a[WAC_TAN_PRESSURE_I].max_value;
2581 device_data.minZ = a[WAC_ZCOORD_I].min_value;
2582 device_data.maxZ = a[WAC_ZCOORD_I].max_value;
2584 device_data.minX = a[0].min_value;
2585 device_data.maxX = a[0].max_value;
2586 device_data.minY = a[1].min_value;
2587 device_data.maxY = a[1].max_value;
2588 device_data.minPressure = a[2].min_value;
2589 device_data.maxPressure = a[2].max_value;
2590 device_data.minTanPressure = 0;
2591 device_data.maxTanPressure = 0;
2592 device_data.minZ = 0;
2593 device_data.maxZ = 0;
2599 any = (XAnyClassPtr) ((
char *) any + any->length);
2602 tablet_devices()->append(device_data);
2605 if (
X11->ptrXFreeDeviceList)
2606 X11->ptrXFreeDeviceList(devices);
2608 #endif // QT_NO_TABLET 2610 X11->startupId = getenv(
"DESKTOP_STARTUP_ID");
2611 if (
X11->startupId) {
2612 #ifndef QT_NO_UNSETENV 2613 unsetenv(
"DESKTOP_STARTUP_ID");
2617 putenv(strdup(
"DESKTOP_STARTUP_ID="));
2647 settings.endGroup();
2651 #if !defined (Q_OS_IRIX) && !defined (QT_NO_TABLET) The QVariant class acts like a union for the most common Qt data types.
TabletDevice
This enum defines what type of device is generating the event.
static PtrWacomConfigInit ptrWacomConfigInit
Bool(* PtrXineramaQueryExtension)(Display *dpy, int *event_base, int *error_base)
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
int qstrncmp(const char *str1, const char *str2, uint len)
static PtrWacomConfigTerm ptrWacomConfigTerm
static const char * appFont
static void reset_instance_pointer()
int toInt(bool *ok=0, int base=10) const
Returns the string converted to an int using base base, which is 10 by default and must be between 2 ...
XIMStyle qt_xim_preferred_style
#define it(className, varName)
The QSettings class provides persistent platform-independent application settings.
The QByteArray class provides an array of bytes.
static Qt::HANDLE appRootWindow(int screen=-1)
Returns a handle for the applications root window on the given screen.
static void setAttribute(Qt::ApplicationAttribute attribute, bool on=true)
Sets the attribute attribute if on is true; otherwise clears the attribute.
static void addLibraryPath(const QString &)
Prepends path to the beginning of the library path list, ensuring that it is searched for libraries f...
int xinput_button_release
static const char * appName
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the list.
int(* PtrXRRUpdateConfiguration)(XEvent *)
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
long ASN1_INTEGER_get ASN1_INTEGER * a
static void qt_get_net_virtual_roots()
The QString class provides a Unicode character string.
int qstrcmp(const char *str1, const char *str2)
A safe strcmp() function.
WACOMDEVICE *(* PtrWacomConfigOpenDevice)(WACOMCONFIG *, const char *)
int *(* PtrWacomConfigGetRawParam)(WACOMDEVICE *, int, int *, int, unsigned *)
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
QPointer< QWidget > widgetToGetPress
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
int(* PtrWacomConfigCloseDevice)(WACOMDEVICE *)
static const char * appClass
Q_CORE_EXPORT void qDebug(const char *,...)
static void initialize(char **, int)
static void qt_set_input_encoding()
static void setSystemFont(const QFont &font)
static const char * appBTNCol
static QGraphicsSystem * create(const QString &)
Q_GUI_EXPORT EGLDisplay display()
static bool isEmpty(const char *str)
static PtrWacomConfigCloseDevice ptrWacomConfigCloseDevice
QString left(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n leftmost characters of the string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
static void initialize()
Internal function that initializes the font system.
The QStringList class provides a list of strings.
static void setAppDpiY(int screen, int dpi)
Sets the vertical resolution of the given screen to the number of dots per inch specified by ydpi...
static int toInt(const QByteArray &str)
Q_CORE_EXPORT void qWarning(const char *,...)
static bool getGConfBool(const QString &key, bool fallback=0)
Returns the configuration boolean for key.
static const char * data(const QByteArray &arr)
#define XINPUT_LOAD(symbol)
int indexOf(QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
static QTextCodec * codec(MYSQL *mysql)
T value(int i) const
Returns the value at index position i in the list.
QByteArray toLatin1() const Q_REQUIRED_RESULT
Returns a Latin-1 representation of the string as a QByteArray.
#define XFIXES_LOAD_V2(symbol)
XineramaScreenInfo *(* PtrXineramaQueryScreens)(Display *dpy, int *number)
WACOMCONFIG *(* PtrWacomConfigInit)(Display *, WACOMERRORFUNC)
bool isNull() const
Returns true if this byte array is null; otherwise returns false.
static QString graphics_system_name
static PtrWacomConfigGetRawParam ptrWacomConfigGetRawParam
Bool(* PtrXineramaIsActive)(Display *dpy)
int(* PtrXRRRootToScreen)(Display *, Window)
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
static void qt_set_x11_resources(const char *font=0, const char *fg=0, const char *bg=0, const char *button=0)
QString arg(qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
static const char * mwTitle
static QInputContext * inputContext
The QFont class specifies a font used for drawing text.
static void * appVisual(int screen=-1)
Returns the current visual used by the application on the given screen.
int lastIndexOf(QChar c, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
static void changeKeyboard()
int toInt(bool *ok=0, int base=10) const
Returns the byte array converted to an int using base base, which is 10 by default and must be betwee...
const_iterator ConstIterator
Qt-style synonym for QList::const_iterator.
QString toLower() const Q_REQUIRED_RESULT
Returns a lowercase copy of the string.
long unsigned int eventList[TOTAL_XINPUT_EVENTS]
static bool desktopSettingsAware()
Returns true if Qt is set to use the system's standard colors, fonts, etc.
static int qt_x_errhandler(Display *dpy, XErrorEvent *err)
static int qt_xio_errhandler(Display *)
if(void) toggleToolbarShown
static QGraphicsSystem * graphics_system
static void qt_get_net_supported()
static QTextCodec * codecForName(const QByteArray &name)
Searches all installed QTextCodec objects and returns the one which best matches name; the match is c...
Bool(* PtrXRRQueryExtension)(Display *, int *, int *)
void(* PtrWacomConfigTerm)(WACOMCONFIG *)
char * qstrdup(const char *src)
Returns a duplicate string.
static const char * mwGeometry
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
static int(* original_x_errhandler)(Display *dpy, XErrorEvent *)
static void getXDefault(const char *group, const char *key, int *val)
static const char * appBGCol
static bool testAttribute(Qt::ApplicationAttribute attribute)
Returns true if attribute attribute is set; otherwise returns false.
static const char * appFGCol
The QTextCodec class provides conversions between text encodings.
static const KeyPair *const end
static int(* original_xio_errhandler)(Display *dpy)
bool runningUnderDebugger()
static void qt_x11_create_intern_atoms()
void(* PtrXRRSelectInput)(Display *, Window, int)
static void setAppDpiX(int screen, int dpi)
Sets the horizontal resolution of the given screen to the number of dots per inch specified by xdpi...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
static void setCodecForTr(QTextCodec *c)
static Display * display()
Returns the default display for the application.
static bool isNull(const QVariant::Private *d)
Cursor(* PtrXcursorLibraryLoadCursor)(Display *, const char *)
The QLibrary class loads shared libraries at runtime.
QBool contains(char c) const
Returns true if the byte array contains the character ch; otherwise returns false.
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the list...
#define XFIXES_LOAD_V1(symbol)
#define QT_VERSION
This macro expands a numeric value of the form 0xMMNNPP (MM = major, NN = minor, PP = patch) that spe...
static PtrWacomConfigOpenDevice ptrWacomConfigOpenDevice
static int appDpiY(int screen=-1)
Returns the vertical resolution of the given screen in terms of the number of dots per inch...