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 c/src/corelib/kernel/qcoreapplication.cpp w/src/corelib/kernel/qcoreapplication.cpp
index e25049f8213..005fe64dbd8 100644
--- c/src/corelib/kernel/qcoreapplication.cpp
+++ w/src/corelib/kernel/qcoreapplication.cpp
@@ -2000,9 +2000,7 @@ void QCoreApplicationPrivate::maybeQuit()
Tells the application to exit with return code 0 (success).
Equivalent to calling QCoreApplication::exit(0).
- It's common to connect the QGuiApplication::lastWindowClosed() signal
- to quit(), and you also often connect e.g. QAbstractButton::clicked() or
View stdin.patch
diff --git i/examples/gui/rasterwindow/rasterwindow.cpp w/examples/gui/rasterwindow/rasterwindow.cpp
index 4dd2ac25ca..c0beee4a87 100644
--- i/examples/gui/rasterwindow/rasterwindow.cpp
+++ w/examples/gui/rasterwindow/rasterwindow.cpp
@@ -67,6 +67,12 @@ bool RasterWindow::event(QEvent *event)
renderNow();
return true;
}
+ if (event->type() == QEvent::Close) {
+ qDebug() << "Closing DENIED!!!";
View stdin.patch
diff --git i/src/plugins/platforms/ios/quiview.mm w/src/plugins/platforms/ios/quiview.mm
index e64c05d099..044d8e3359 100644
--- i/src/plugins/platforms/ios/quiview.mm
+++ w/src/plugins/platforms/ios/quiview.mm
@@ -344,6 +344,16 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet")
// -------------------------------------------------------------------------
+- (void)addInteraction:(id<UIInteraction>)interaction
+{
View stdin.patch
diff --git i/src/plugins/platforms/ios/quiview.mm w/src/plugins/platforms/ios/quiview.mm
index e64c05d099..c91e14dd28 100644
--- i/src/plugins/platforms/ios/quiview.mm
+++ w/src/plugins/platforms/ios/quiview.mm
@@ -344,6 +344,14 @@ Q_LOGGING_CATEGORY(lcQpaTablet, "qt.qpa.input.tablet")
// -------------------------------------------------------------------------
+- (void)addInteraction:(id<UIInteraction>)interaction
+{
View stdin.patch
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/FontInfo/NotoSansInscriptionalParthian-Regular.ttf.1F68_0.ATSD
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/FontInfo/NotoSansLycian-Regular.ttf.10D4_0.ATSD
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/FontInfo/NotoSansKayahLi-Regular.ttf.1FA0_0.fontinfo
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/FontInfo/NotoSansLisu-Regular.ttf.162C_0.fontinfo
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/FontInfo/NotoSansSundanese-Regular.ttf.2B88_0.fontinfo
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/FontInfo/NotoSansSaurashtra-Regular.ttf.4CE4_0.fontinfo
/System/Library
View stdin.patch
commit 43a4f4c62af377280b7d5abbc1c8175fc2cfece1
Author: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Date: Tue Sep 24 17:25:57 2019 +0200
Export lcEventDispatcher in private namespace
Change-Id: I9bba477d37b823146eaec4e1e53197651f09c013
diff --git a/src/corelib/kernel/qeventdispatcher_cf.mm b/src/corelib/kernel/qeventdispatcher_cf.mm
index 33c231987f..56903bfb8a 100644
View stdin.patch
diff --git i/examples/gui/openglwindow/main.cpp w/examples/gui/openglwindow/main.cpp
index 90c93f0d37..fb40e71459 100644
--- i/examples/gui/openglwindow/main.cpp
+++ w/examples/gui/openglwindow/main.cpp
@@ -139,6 +139,12 @@ void TriangleWindow::render()
const qreal retinaScale = devicePixelRatio();
glViewport(0, 0, width() * retinaScale, height() * retinaScale);
+// GLint dims[4] = {0};
+// glGetIntegerv(GL_VIEWPORT, dims);
View stdin.patch
diff --git i/mkspecs/features/mac/default_post.prf w/mkspecs/features/mac/default_post.prf
index 993f4d56a9..904cdfb9d9 100644
--- i/mkspecs/features/mac/default_post.prf
+++ w/mkspecs/features/mac/default_post.prf
@@ -106,12 +106,17 @@ macx-xcode {
VER_PAT = $$member(l, 2, 2)
unset(l)
+ # The CFBundleVersion should be of the form x.y.x with an optional
+ # suffix, eg. 1.0.0a3, version 1.0.0 alpha 3, so we include the whole
View stdin.patch
diff --git i/mkspecs/features/mac/default_post.prf w/mkspecs/features/mac/default_post.prf
index 993f4d56a9..904cdfb9d9 100644
--- i/mkspecs/features/mac/default_post.prf
+++ w/mkspecs/features/mac/default_post.prf
@@ -106,12 +106,17 @@ macx-xcode {
VER_PAT = $$member(l, 2, 2)
unset(l)
+ # The CFBundleVersion should be of the form x.y.x with an optional
+ # suffix, eg. 1.0.0a3, version 1.0.0 alpha 3, so we include the whole
View stdin.patch
diff --git i/src/plugins/platforms/cocoa/qcocoawindow.mm w/src/plugins/platforms/cocoa/qcocoawindow.mm
index 0c7ec7f736..44bc0d2e6c 100644
--- i/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ w/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -1515,6 +1515,11 @@ bool QCocoaWindow::updatesWithDisplayLink() const
void QCocoaWindow::deliverUpdateRequest()
{
+ QWindow *w = window();
+ QWindowPrivate *wp = qt_window_private(w);
You can’t perform that action at this time.