Skip to content

Instantly share code, notes, and snippets.

Tor Arne Vestbø torarnv

  • The Qt Company
  • Oslo, Norway
Block or report user

Report or block torarnv

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View stdin.patch
diff --git i/src/plugins/platforms/cocoa/qcocoabackingstore.mm w/src/plugins/platforms/cocoa/qcocoabackingstore.mm
index af50aabe15..f9e2f792eb 100644
--- i/src/plugins/platforms/cocoa/qcocoabackingstore.mm
+++ w/src/plugins/platforms/cocoa/qcocoabackingstore.mm
@@ -46,6 +46,13 @@
#include <QuartzCore/CATransaction.h>
+#if !defined(QT_APPLE_NO_PRIVATE_APIS)
+extern "C" {
View stdin.patch
diff --git c/src/plugins/platforms/cocoa/qcocoawindow.mm i/src/plugins/platforms/cocoa/qcocoawindow.mm
index dc7319484e..39209f261e 100644
--- c/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ i/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -1625,6 +1625,9 @@ QCocoaNSWindow *QCocoaWindow::createNSWindow(bool shouldBePanel)
[nsWindow setDepthLimit:NSWindowDepthTwentyfourBitRGB];
}
+ if (format().colorSpace() == QSurfaceFormat::sRGBColorSpace)
+ nsWindow.colorSpace = NSColorSpace.sRGBColorSpace;
View stdin.patch
diff --git c/scripts/buildsystems/vcpkg.cmake w/scripts/buildsystems/vcpkg.cmake
index b69f44233..26ac0cf60 100644
--- c/scripts/buildsystems/vcpkg.cmake
+++ w/scripts/buildsystems/vcpkg.cmake
@@ -66,27 +66,26 @@ else()
set(VCPKG_TOOLCHAIN ON)
return()
elseif(NOT arch_count EQUAL 1)
- message(WARNING "vcpkg does not support building for more than 1 architecture at a time.")
- set(VCPKG_TOOLCHAIN ON)
View stdin.patch
diff --git i/scripts/buildsystems/vcpkg.cmake w/scripts/buildsystems/vcpkg.cmake
index b69f44233..26ac0cf60 100644
--- i/scripts/buildsystems/vcpkg.cmake
+++ w/scripts/buildsystems/vcpkg.cmake
@@ -66,27 +66,26 @@ else()
set(VCPKG_TOOLCHAIN ON)
return()
elseif(NOT arch_count EQUAL 1)
- message(WARNING "vcpkg does not support building for more than 1 architecture at a time.")
- set(VCPKG_TOOLCHAIN ON)
View stdin.patch
commit 19c5cf6fd483aed643109c93a271600dcbc984a8
Author: Tor Arne Vestbø <torarnv@gmail.com>
Date: Tue Jun 25 22:00:28 2019 +0200
zwave: Base value entity ids on their associated node entity id
When multiple nodes of the same manufacturer and model are added
to home assistant the node entities will get unique entity ids
in the form of e.g:
View stdin.patch
homeassistant/components/mobile_app/__init__.py: DATA_DEVICES, DATA_SENSOR, DATA_STORE,
homeassistant/components/mobile_app/__init__.py: DATA_DEVICES: {},
homeassistant/components/mobile_app/__init__.py: hass.data[DOMAIN][DATA_DEVICES][webhook_id] = device
homeassistant/components/mobile_app/binary_sensor.py: DATA_DEVICES, DOMAIN)
homeassistant/components/mobile_app/binary_sensor.py: device = hass.data[DOMAIN][DATA_DEVICES][webhook_id]
homeassistant/components/mobile_app/binary_sensor.py: device = hass.data[DOMAIN][DATA_DEVICES][data[CONF_WEBHOOK_ID]]
homeassistant/components/mobile_app/const.py:DATA_DEVICES = 'devices'
homeassistant/components/mobile_app/sensor.py: ATTR_SENSOR_UNIQUE_ID, ATTR_SENSOR_UOM, DATA_DEVICES,
homeassistant/components/mobile_app/sensor.py: device = hass.data[DOMAIN][DATA_DEVICES][webhook_id]
homeassistant/components/mobile_app/sensor.py: device = hass.data[DOMAIN][DATA_DEVICES][data[CONF_WE
View stdin.patch
diff --git i/src/corelib/animation/qabstractanimation.cpp w/src/corelib/animation/qabstractanimation.cpp
index 78b79e574a..42308b78fb 100644
--- i/src/corelib/animation/qabstractanimation.cpp
+++ w/src/corelib/animation/qabstractanimation.cpp
@@ -1049,31 +1049,31 @@ QAbstractAnimation::QAbstractAnimation(QAbstractAnimationPrivate &dd, QObject *p
setParent(parent);
}
/*!
Stops the animation if it's running, then destroys the
View stdin.patch
diff --git i/src/corelib/animation/qabstractanimation.cpp w/src/corelib/animation/qabstractanimation.cpp
index 78b79e574a..42308b78fb 100644
--- i/src/corelib/animation/qabstractanimation.cpp
+++ w/src/corelib/animation/qabstractanimation.cpp
@@ -1054,21 +1054,21 @@ QAbstractAnimation::QAbstractAnimation(QAbstractAnimationPrivate &dd, QObject *p
QAbstractAnimation. If the animation is part of a QAnimationGroup, it is
automatically removed before it's destroyed.
*/
QAbstractAnimation::~QAbstractAnimation()
{
View stdin.patch
diff --git i/src/corelib/animation/qabstractanimation.cpp w/src/corelib/animation/qabstractanimation.cpp
index 78b79e574a..42308b78fb 100644
--- i/src/corelib/animation/qabstractanimation.cpp
+++ w/src/corelib/animation/qabstractanimation.cpp
@@ -1061,7 +1061,7 @@ QAbstractAnimation::~QAbstractAnimation()
if (d->state != Stopped) {
QAbstractAnimation::State oldState = d->state;
d->state = Stopped;
- emit stateChanged(oldState, d->state);
+ emit stateChanged(d->state, oldState);
View stdin.patch
diff --git i/src/corelib/animation/qabstractanimation.cpp w/src/corelib/animation/qabstractanimation.cpp
index 78b79e574a..42308b78fb 100644
--- i/src/corelib/animation/qabstractanimation.cpp
+++ w/src/corelib/animation/qabstractanimation.cpp
@@ -1061,7 +1061,7 @@ QAbstractAnimation::~QAbstractAnimation()
if (d->state != Stopped) {
QAbstractAnimation::State oldState = d->state;
d->state = Stopped;
- emit stateChanged(oldState, d->state);
+ emit stateChanged(d->state, oldState);
You can’t perform that action at this time.