windows: Fix typos in source code comments
Change-Id: I5d83574639d0b1f935843a75217aae70a5925fa0 Reviewed-by: André de la Rocha <andre.rocha@qt.io>
This commit is contained in:
parent
ba23507960
commit
79e209c4c3
@ -1296,7 +1296,7 @@ bool QWindowsGLContext::makeCurrent(QPlatformSurface *surface)
|
|||||||
if (const QOpenGLContextData *contextData = findByHWND(m_windowContexts, hwnd)) {
|
if (const QOpenGLContextData *contextData = findByHWND(m_windowContexts, hwnd)) {
|
||||||
// Repeated calls to wglMakeCurrent when vsync is enabled in the driver will
|
// Repeated calls to wglMakeCurrent when vsync is enabled in the driver will
|
||||||
// often result in 100% cpuload. This check is cheap and avoids the problem.
|
// often result in 100% cpuload. This check is cheap and avoids the problem.
|
||||||
// This is reproducable on NVidia cards and Intel onboard chips.
|
// This is reproducible on NVidia cards and Intel onboard chips.
|
||||||
if (QOpenGLStaticContext::opengl32.wglGetCurrentContext() == contextData->renderingContext
|
if (QOpenGLStaticContext::opengl32.wglGetCurrentContext() == contextData->renderingContext
|
||||||
&& QOpenGLStaticContext::opengl32.wglGetCurrentDC() == contextData->hdc) {
|
&& QOpenGLStaticContext::opengl32.wglGetCurrentDC() == contextData->hdc) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -353,7 +353,7 @@ bool QWindowsMouseHandler::translateMouseEvent(QWindow *window, HWND hwnd,
|
|||||||
|
|
||||||
auto *platformWindow = static_cast<QWindowsWindow *>(window->handle());
|
auto *platformWindow = static_cast<QWindowsWindow *>(window->handle());
|
||||||
|
|
||||||
// If the window was recently resized via mouse doubleclick on the frame or title bar,
|
// If the window was recently resized via mouse double-click on the frame or title bar,
|
||||||
// we don't get WM_LBUTTONDOWN or WM_LBUTTONDBLCLK for the second click,
|
// we don't get WM_LBUTTONDOWN or WM_LBUTTONDBLCLK for the second click,
|
||||||
// but we will get at least one WM_MOUSEMOVE with left button down and the WM_LBUTTONUP,
|
// but we will get at least one WM_MOUSEMOVE with left button down and the WM_LBUTTONUP,
|
||||||
// which will result undesired mouse press and release events.
|
// which will result undesired mouse press and release events.
|
||||||
|
@ -119,7 +119,7 @@ static inline QString mailCommand()
|
|||||||
// QTBUG-57816: As of Windows 10, if there is no mail client installed, an entry like
|
// QTBUG-57816: As of Windows 10, if there is no mail client installed, an entry like
|
||||||
// "rundll32.exe .. url.dll,MailToProtocolHandler %l" is returned. Launching it
|
// "rundll32.exe .. url.dll,MailToProtocolHandler %l" is returned. Launching it
|
||||||
// silently fails or brings up a broken dialog after a long time, so exclude it and
|
// silently fails or brings up a broken dialog after a long time, so exclude it and
|
||||||
// fall back to ShellExecute() which brings up the URL assocation dialog.
|
// fall back to ShellExecute() which brings up the URL association dialog.
|
||||||
if (command.isEmpty() || command.contains(u",MailToProtocolHandler"))
|
if (command.isEmpty() || command.contains(u",MailToProtocolHandler"))
|
||||||
return QString();
|
return QString();
|
||||||
wchar_t expandedCommand[MAX_PATH] = {0};
|
wchar_t expandedCommand[MAX_PATH] = {0};
|
||||||
|
@ -1858,7 +1858,7 @@ void QWindowsWindow::handleDpiChanged(HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||||||
const qreal scale = qreal(dpi) / qreal(savedDpi());
|
const qreal scale = qreal(dpi) / qreal(savedDpi());
|
||||||
setSavedDpi(dpi);
|
setSavedDpi(dpi);
|
||||||
|
|
||||||
// Send screen change first, so that the new sceen is set during any following resize
|
// Send screen change first, so that the new screen is set during any following resize
|
||||||
checkForScreenChanged(QWindowsWindow::FromDpiChange);
|
checkForScreenChanged(QWindowsWindow::FromDpiChange);
|
||||||
|
|
||||||
// We get WM_DPICHANGED in one of two situations:
|
// We get WM_DPICHANGED in one of two situations:
|
||||||
|
@ -75,7 +75,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
using namespace QWindowsUiAutomation;
|
using namespace QWindowsUiAutomation;
|
||||||
|
|
||||||
|
|
||||||
// Returns a cached instance of the provider for a specific acessible interface.
|
// Returns a cached instance of the provider for a specific accessible interface.
|
||||||
QWindowsUiaMainProvider *QWindowsUiaMainProvider::providerForAccessible(QAccessibleInterface *accessible)
|
QWindowsUiaMainProvider *QWindowsUiaMainProvider::providerForAccessible(QAccessibleInterface *accessible)
|
||||||
{
|
{
|
||||||
if (!accessible)
|
if (!accessible)
|
||||||
@ -440,7 +440,7 @@ HRESULT QWindowsUiaMainProvider::GetPropertyValue(PROPERTYID idProp, VARIANT *pR
|
|||||||
// Control type converted from role.
|
// Control type converted from role.
|
||||||
auto controlType = roleToControlTypeId(accessible->role());
|
auto controlType = roleToControlTypeId(accessible->role());
|
||||||
|
|
||||||
// The native OSK should be disbled if the Qt OSK is in use,
|
// The native OSK should be disabled if the Qt OSK is in use,
|
||||||
// or if disabled via application attribute.
|
// or if disabled via application attribute.
|
||||||
static bool imModuleEmpty = qEnvironmentVariableIsEmpty("QT_IM_MODULE");
|
static bool imModuleEmpty = qEnvironmentVariableIsEmpty("QT_IM_MODULE");
|
||||||
bool nativeVKDisabled = QCoreApplication::testAttribute(Qt::AA_DisableNativeVirtualKeyboard);
|
bool nativeVKDisabled = QCoreApplication::testAttribute(Qt::AA_DisableNativeVirtualKeyboard);
|
||||||
|
Loading…
Reference in New Issue
Block a user