Changeset 72679 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 25, 2018 2:51:05 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123194
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QISplitter.cpp
r72678 r72679 28 28 /* GUI includes: */ 29 29 # include "QISplitter.h" 30 # include "VBoxGlobal.h" 30 31 31 32 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r72678 r72679 348 348 349 349 /* static */ 350 uint VBoxGlobal::qtRTMajorVersion()351 {352 QString rt_ver_str("5.11");// = VBoxGlobal::qtRTVersionString();353 return rt_ver_str.section ('.', 0, 0).toInt();354 }355 356 /* static */357 uint VBoxGlobal::qtRTMinorVersion()358 {359 QString rt_ver_str("5.11");// = VBoxGlobal::qtRTVersionString();360 return rt_ver_str.section ('.', 1, 1).toInt();361 }362 363 /* static */364 uint VBoxGlobal::qtRTRevisionNumber()365 {366 QString rt_ver_str("5.11");// = VBoxGlobal::qtRTVersionString();367 return rt_ver_str.section ('.', 2, 2).toInt();368 }369 370 /* static */371 350 QString VBoxGlobal::qtRTVersionString() 372 351 { … … 381 360 (strVersionRT.section('.', 1, 1).toInt() << 8) + 382 361 strVersionRT.section('.', 2, 2).toInt(); 362 } 363 364 /* static */ 365 uint VBoxGlobal::qtRTMajorVersion() 366 { 367 return VBoxGlobal::qtRTVersionString().section('.', 0, 0).toInt(); 368 } 369 370 /* static */ 371 uint VBoxGlobal::qtRTMinorVersion() 372 { 373 return VBoxGlobal::qtRTVersionString().section('.', 1, 1).toInt(); 374 } 375 376 /* static */ 377 uint VBoxGlobal::qtRTRevisionNumber() 378 { 379 return VBoxGlobal::qtRTVersionString().section('.', 2, 2).toInt(); 383 380 } 384 381 … … 1813 1810 1814 1811 #ifdef VBOX_WS_X11 1815 /* As reported in #9197, in X11 QWidget::setCursor(..) call uses RENDER 1812 /* As reported in https://www.virtualbox.org/ticket/16348, 1813 * in X11 QWidget::setCursor(..) call uses RENDER 1816 1814 * extension. Qt (before 5.11) fails to handle the case where the mentioned extension 1817 1815 * is missing. Please see https://codereview.qt-project.org/#/c/225665/ for Qt patch: */ … … 1834 1832 void VBoxGlobal::setCursor(QGraphicsWidget *pWidget, const QCursor &cursor) 1835 1833 { 1836 1837 1834 if (!pWidget) 1838 1835 return; 1839 1836 1840 1837 #ifdef VBOX_WS_X11 1841 /* As reported in #9197, in X11 QGraphicsWidget::setCursor(..) call uses RENDER 1838 /* As reported in https://www.virtualbox.org/ticket/16348, 1839 * in X11 QGraphicsWidget::setCursor(..) call uses RENDER 1842 1840 * extension. Qt (before 5.11) fails to handle the case where the mentioned extension 1843 1841 * is missing. Please see https://codereview.qt-project.org/#/c/225665/ for Qt patch: */ 1844 if ((VBoxGlobal::qtRTMajorVersion() < 5) ||1842 if ((VBoxGlobal::qtRTMajorVersion() < 5) || 1845 1843 (VBoxGlobal::qtRTMajorVersion() == 5 && VBoxGlobal::qtRTMinorVersion() < 11)) 1846 1844 {
Note:
See TracChangeset
for help on using the changeset viewer.