forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,884 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
/* | ||
# Updates | ||
Before a major version update, make a copy of this directory. (We like to | ||
keep the old version around for a short time after major updates.) Add a | ||
top-level attribute to `top-level/all-packages.nix`. | ||
1. Update the URL in `pkgs/development/libraries/qt-5/$VERSION/fetch.sh`. | ||
2. From the top of the Nixpkgs tree, run | ||
`./maintainers/scripts/fetch-kde-qt.sh > pkgs/development/libraries/qt-5/$VERSION/srcs.nix`. | ||
3. Update `qtCompatVersion` below if the minor version number changes. | ||
4. Check that the new packages build correctly. | ||
5. Commit the changes and open a pull request. | ||
*/ | ||
|
||
{ | ||
newScope, | ||
stdenv, fetchurl, fetchFromGitHub, makeSetupHook, | ||
bison, cups ? null, harfbuzz, libGL, perl, | ||
gstreamer, gst-plugins-base, gtk3, dconf, | ||
cf-private, | ||
|
||
# options | ||
developerBuild ? false, | ||
decryptSslTraffic ? false, | ||
debug ? false, | ||
}: | ||
|
||
with stdenv.lib; | ||
|
||
let | ||
|
||
qtCompatVersion = "5.12"; | ||
|
||
mirror = "https://download.qt.io"; | ||
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; } // { | ||
# Community port of the now unmaintained upstream qtwebkit. | ||
qtwebkit = { | ||
src = fetchFromGitHub { | ||
owner = "annulen"; | ||
repo = "webkit"; | ||
rev = "4ce8ebc4094512b9916bfa5984065e95ac97c9d8"; | ||
sha256 = "05h1xnxzbf7sp3plw5dndsvpf6iigh0bi4vlj4svx0hkf1giakjf"; | ||
}; | ||
version = "5.212-alpha-01-26-2018"; | ||
}; | ||
}; | ||
|
||
patches = { | ||
qtbase = [ | ||
./qtbase.patch | ||
./qtbase-darwin.patch | ||
./qtbase-revert-no-macos10.10.patch | ||
./qtbase-fixguicmake.patch | ||
] ++ optionals stdenv.isDarwin [ | ||
./qtbase-darwin-nseventtype.patch | ||
]; | ||
qtdeclarative = [ ./qtdeclarative.patch ]; | ||
qtscript = [ ./qtscript.patch ]; | ||
qtserialport = [ ./qtserialport.patch ]; | ||
qtwebkit = [ ./qtwebkit.patch ]; | ||
}; | ||
|
||
mkDerivation = | ||
import ../mkDerivation.nix | ||
{ inherit stdenv; inherit (stdenv) lib; } | ||
{ inherit debug; }; | ||
|
||
qtModule = | ||
import ../qtModule.nix | ||
{ inherit mkDerivation perl; inherit (stdenv) lib; } | ||
{ inherit self srcs patches; }; | ||
|
||
addPackages = self: with self; | ||
let | ||
callPackage = self.newScope { inherit qtCompatVersion qtModule srcs; }; | ||
in { | ||
|
||
inherit mkDerivation; | ||
|
||
qtbase = callPackage ../modules/qtbase.nix { | ||
inherit (srcs.qtbase) src version; | ||
patches = patches.qtbase; | ||
inherit bison cups harfbuzz libGL; | ||
withGtk3 = true; inherit dconf gtk3; | ||
inherit developerBuild decryptSslTraffic; | ||
}; | ||
|
||
qtcharts = callPackage ../modules/qtcharts.nix {}; | ||
qtconnectivity = callPackage ../modules/qtconnectivity.nix {}; | ||
qtdeclarative = callPackage ../modules/qtdeclarative.nix {}; | ||
qtdoc = callPackage ../modules/qtdoc.nix {}; | ||
qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {}; | ||
qtimageformats = callPackage ../modules/qtimageformats.nix {}; | ||
qtlocation = callPackage ../modules/qtlocation.nix {}; | ||
qtmacextras = callPackage ../modules/qtmacextras.nix { | ||
inherit cf-private; | ||
}; | ||
qtmultimedia = callPackage ../modules/qtmultimedia.nix { | ||
inherit gstreamer gst-plugins-base; | ||
}; | ||
qtquick1 = null; | ||
qtquickcontrols = callPackage ../modules/qtquickcontrols.nix {}; | ||
qtquickcontrols2 = callPackage ../modules/qtquickcontrols2.nix {}; | ||
qtscript = callPackage ../modules/qtscript.nix {}; | ||
qtsensors = callPackage ../modules/qtsensors.nix {}; | ||
qtserialport = callPackage ../modules/qtserialport.nix {}; | ||
qtspeech = callPackage ../modules/qtspeech.nix {}; | ||
qtsvg = callPackage ../modules/qtsvg.nix {}; | ||
qttools = callPackage ../modules/qttools.nix {}; | ||
qttranslations = callPackage ../modules/qttranslations.nix {}; | ||
qtvirtualkeyboard = callPackage ../modules/qtvirtualkeyboard.nix {}; | ||
qtwayland = callPackage ../modules/qtwayland.nix {}; | ||
qtwebchannel = callPackage ../modules/qtwebchannel.nix {}; | ||
qtwebengine = callPackage ../modules/qtwebengine.nix {}; | ||
qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {}; | ||
qtwebkit = callPackage ../modules/qtwebkit.nix {}; | ||
qtwebsockets = callPackage ../modules/qtwebsockets.nix {}; | ||
qtx11extras = callPackage ../modules/qtx11extras.nix {}; | ||
qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {}; | ||
|
||
env = callPackage ../qt-env.nix {}; | ||
full = env "qt-full-${qtbase.version}" ([ | ||
qtcharts qtconnectivity qtdeclarative qtdoc qtgraphicaleffects | ||
qtimageformats qtlocation qtmultimedia qtquickcontrols qtquickcontrols2 | ||
qtscript qtsensors qtserialport qtsvg qttools qttranslations | ||
qtvirtualkeyboard qtwebchannel qtwebengine qtwebkit qtwebsockets | ||
qtx11extras qtxmlpatterns | ||
] ++ optional (!stdenv.isDarwin) qtwayland | ||
++ optional (stdenv.isDarwin) qtmacextras); | ||
|
||
qmake = makeSetupHook { | ||
deps = [ self.qtbase.dev ]; | ||
substitutions = { | ||
inherit (stdenv) isDarwin; | ||
qtbase_dev = self.qtbase.dev; | ||
fix_qt_builtin_paths = ../hooks/fix-qt-builtin-paths.sh; | ||
}; | ||
} ../hooks/qmake-hook.sh; | ||
}; | ||
|
||
self = makeScope newScope addPackages; | ||
|
||
in self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
WGET_ARGS=( http://download.qt.io/official_releases/qt/5.12/5.12.0/submodules/ \ | ||
-A '*.tar.xz' ) |
13 changes: 13 additions & 0 deletions
13
pkgs/development/libraries/qt-5/5.12/qtbase-darwin-nseventtype.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm | ||
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm | ||
@@ -404,8 +404,8 @@ void QCocoaWindow::setVisible(bool visible) | ||
removeMonitor(); | ||
monitor = [NSEvent addGlobalMonitorForEventsMatchingMask:NSLeftMouseDownMask|NSRightMouseDownMask|NSOtherMouseDownMask|NSMouseMovedMask handler:^(NSEvent *e) { | ||
QPointF localPoint = QCocoaScreen::mapFromNative([NSEvent mouseLocation]); | ||
- const auto button = e.type == NSEventTypeMouseMoved ? Qt::NoButton : cocoaButton2QtButton([e buttonNumber]); | ||
- const auto eventType = e.type == NSEventTypeMouseMoved ? QEvent::MouseMove : QEvent::MouseButtonPress; | ||
+ const auto button = e.type == NSMouseMoved ? Qt::NoButton : cocoaButton2QtButton([e buttonNumber]); | ||
+ const auto eventType = e.type == NSMouseMoved ? QEvent::MouseMove : QEvent::MouseButtonPress; | ||
QWindowSystemInterface::handleMouseEvent(window(), window()->mapFromGlobal(localPoint.toPoint()), localPoint, | ||
Qt::MouseButtons(uint(NSEvent.pressedMouseButtons & 0xFFFF)), button, eventType); | ||
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
diff --git a/src/plugins/bearer/corewlan/qcorewlanengine.mm b/src/plugins/bearer/corewlan/qcorewlanengine.mm | ||
index c3dd49ff3e..6871399817 100644 | ||
--- a/src/plugins/bearer/corewlan/qcorewlanengine.mm | ||
+++ b/src/plugins/bearer/corewlan/qcorewlanengine.mm | ||
@@ -283,7 +283,7 @@ void QScanThread::getUserConfigurations() | ||
QMacAutoReleasePool pool; | ||
userProfiles.clear(); | ||
|
||
- NSArray<NSString *> *wifiInterfaces = [CWWiFiClient interfaceNames]; | ||
+ NSArray *wifiInterfaces = [CWWiFiClient interfaceNames]; | ||
for (NSString *ifName in wifiInterfaces) { | ||
|
||
CWInterface *wifiInterface = [[CWWiFiClient sharedWiFiClient] interfaceWithName:ifName]; | ||
@@ -598,7 +598,7 @@ void QCoreWlanEngine::doRequestUpdate() | ||
|
||
QMacAutoReleasePool pool; | ||
|
||
- NSArray<NSString *> *wifiInterfaces = [CWWiFiClient interfaceNames]; | ||
+ NSArray *wifiInterfaces = [CWWiFiClient interfaceNames]; | ||
for (NSString *ifName in wifiInterfaces) { | ||
scanThread->interfaceName = QString::fromNSString(ifName); | ||
scanThread->start(); | ||
diff --git a/src/plugins/platforms/cocoa/qcocoascreen.mm b/src/plugins/platforms/cocoa/qcocoascreen.mm | ||
index afe14e623c..74d69c2fa1 100644 | ||
--- a/src/plugins/platforms/cocoa/qcocoascreen.mm | ||
+++ b/src/plugins/platforms/cocoa/qcocoascreen.mm | ||
@@ -127,7 +127,7 @@ void QCocoaScreen::updateProperties() | ||
const qreal previousRefreshRate = m_refreshRate; | ||
|
||
// The reference screen for the geometry is always the primary screen | ||
- QRectF primaryScreenGeometry = QRectF::fromCGRect([[NSScreen screens] firstObject].frame); | ||
+ QRectF primaryScreenGeometry = QRectF::fromCGRect([[[NSScreen screens] firstObject] frame]); | ||
m_geometry = qt_mac_flip(QRectF::fromCGRect(nsScreen.frame), primaryScreenGeometry).toRect(); | ||
m_availableGeometry = qt_mac_flip(QRectF::fromCGRect(nsScreen.visibleFrame), primaryScreenGeometry).toRect(); | ||
|
||
diff --git a/src/plugins/platforms/cocoa/qcocoawindow.mm b/src/plugins/platforms/cocoa/qcocoawindow.mm | ||
index df1ad82592..0318a4ff96 100644 | ||
--- a/src/plugins/platforms/cocoa/qcocoawindow.mm | ||
+++ b/src/plugins/platforms/cocoa/qcocoawindow.mm | ||
@@ -1704,7 +1704,7 @@ void QCocoaWindow::applyContentBorderThickness(NSWindow *window) | ||
|
||
if (!m_drawContentBorderGradient) { | ||
window.styleMask = window.styleMask & ~NSWindowStyleMaskTexturedBackground; | ||
- [window.contentView.superview setNeedsDisplay:YES]; | ||
+ [[window.contentView superview] setNeedsDisplay:YES]; | ||
window.titlebarAppearsTransparent = NO; | ||
return; | ||
} | ||
diff --git a/src/plugins/platforms/cocoa/qnswindow.mm b/src/plugins/platforms/cocoa/qnswindow.mm | ||
index c17ad47aba..a0f1dd38fb 100644 | ||
--- a/src/plugins/platforms/cocoa/qnswindow.mm | ||
+++ b/src/plugins/platforms/cocoa/qnswindow.mm | ||
@@ -230,7 +230,7 @@ static bool isMouseEvent(NSEvent *ev) | ||
if (pw->frameStrutEventsEnabled() && isMouseEvent(theEvent)) { | ||
NSPoint loc = [theEvent locationInWindow]; | ||
NSRect windowFrame = [self convertRectFromScreen:self.frame]; | ||
- NSRect contentFrame = self.contentView.frame; | ||
+ NSRect contentFrame = [self.contentView frame]; | ||
if (NSMouseInRect(loc, windowFrame, NO) && !NSMouseInRect(loc, contentFrame, NO)) | ||
[qnsview_cast(pw->view()) handleFrameStrutMouseEvent:theEvent]; | ||
} | ||
@@ -257,7 +257,7 @@ static bool isMouseEvent(NSEvent *ev) | ||
+ (void)applicationActivationChanged:(NSNotification*)notification | ||
{ | ||
const id sender = self; | ||
- NSEnumerator<NSWindow*> *windowEnumerator = nullptr; | ||
+ NSEnumerator *windowEnumerator = nullptr; | ||
NSApplication *application = [NSApplication sharedApplication]; | ||
|
||
// Unfortunately there's no NSWindowListOrderedBackToFront, |
30 changes: 30 additions & 0 deletions
30
pkgs/development/libraries/qt-5/5.12/qtbase-fixguicmake.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in | ||
index 0bbc871..3673634 100644 | ||
--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in | ||
+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in | ||
@@ -286,7 +286,7 @@ if (NOT TARGET Qt5::$${CMAKE_MODULE_NAME}) | ||
macro(_populate_$${CMAKE_MODULE_NAME}_plugin_properties Plugin Configuration PLUGIN_LOCATION) | ||
set_property(TARGET Qt5::${Plugin} APPEND PROPERTY IMPORTED_CONFIGURATIONS ${Configuration}) | ||
|
||
- set(imported_location \"$${CMAKE_PLUGIN_DIR}${PLUGIN_LOCATION}\") | ||
+ set(imported_location \"${PLUGIN_LOCATION}\") | ||
_qt5_$${CMAKE_MODULE_NAME}_check_file_exists(${imported_location}) | ||
set_target_properties(Qt5::${Plugin} PROPERTIES | ||
\"IMPORTED_LOCATION_${Configuration}\" ${imported_location} | ||
diff --git a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in | ||
index 5baf0fd..3583745 100644 | ||
--- a/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in | ||
+++ b/mkspecs/features/data/cmake/Qt5PluginTarget.cmake.in | ||
@@ -2,10 +2,10 @@ | ||
add_library(Qt5::$$CMAKE_PLUGIN_NAME MODULE IMPORTED) | ||
|
||
!!IF !isEmpty(CMAKE_RELEASE_TYPE) | ||
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_LOCATION_RELEASE}\") | ||
+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME RELEASE \"$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_RELEASE}\") | ||
!!ENDIF | ||
!!IF !isEmpty(CMAKE_DEBUG_TYPE) | ||
-_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_LOCATION_DEBUG}\") | ||
+_populate_$${CMAKE_MODULE_NAME}_plugin_properties($$CMAKE_PLUGIN_NAME DEBUG \"$${CMAKE_PLUGIN_DIR}$${CMAKE_PLUGIN_LOCATION_DEBUG}\") | ||
!!ENDIF | ||
|
||
list(APPEND Qt5$${CMAKE_MODULE_NAME}_PLUGINS Qt5::$$CMAKE_PLUGIN_NAME) |
102 changes: 102 additions & 0 deletions
102
pkgs/development/libraries/qt-5/5.12/qtbase-revert-no-macos10.10.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
Revert "Remove code paths for macOS < 10.11" | ||
|
||
This reverts commit 138a65e0cfa80b13fd018a01e7d8b33341a3cfd3. | ||
|
||
From 138a65e0cfa80b13fd018a01e7d8b33341a3cfd3 Mon Sep 17 00:00:00 2001 | ||
From: Jake Petroules <jake.petroules@qt.io> | ||
Date: Thu, 8 Feb 2018 11:05:42 -0800 | ||
Subject: [PATCH] Remove code paths for macOS < 10.11 | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Change-Id: I5ae02d88aa3dcd97d1f2ebf6255a68643e5d6daa | ||
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> | ||
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io> | ||
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com> | ||
--- | ||
.../fontdatabases/mac/qfontengine_coretext.mm | 16 +++------------- | ||
src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm | 6 +----- | ||
src/plugins/platforms/cocoa/qnswindowdelegate.mm | 16 ---------------- | ||
3 files changed, 4 insertions(+), 34 deletions(-) | ||
|
||
diff --git a/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm b/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm | ||
index 98b753eff9..489d9cd031 100644 | ||
--- a/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm | ||
+++ b/src/platformsupport/fontdatabases/mac/qfontengine_coretext.mm | ||
@@ -47,18 +47,28 @@ | ||
|
||
#include <cmath> | ||
|
||
-#if defined(Q_OS_MACOS) | ||
+#if defined(Q_OS_OSX) && !QT_OSX_DEPLOYMENT_TARGET_BELOW(__MAC_10_11) | ||
#import <AppKit/AppKit.h> | ||
#endif | ||
|
||
-#if defined(QT_PLATFORM_UIKIT) | ||
+#if defined(QT_PLATFORM_UIKIT) && !QT_IOS_DEPLOYMENT_TARGET_BELOW(__IPHONE_8_2) | ||
#import <UIKit/UIKit.h> | ||
#endif | ||
|
||
// These are available cross platform, exported as kCTFontWeightXXX from CoreText.framework, | ||
// but they are not documented and are not in public headers so are private API and exposed | ||
// only through the NSFontWeightXXX and UIFontWeightXXX aliases in AppKit and UIKit (rdar://26109857) | ||
-#if defined(Q_OS_MACOS) | ||
+#if QT_MAC_DEPLOYMENT_TARGET_BELOW(__MAC_10_11, __IPHONE_8_2) | ||
+#define kCTFontWeightUltraLight -0.8 | ||
+#define kCTFontWeightThin -0.6 | ||
+#define kCTFontWeightLight -0.4 | ||
+#define kCTFontWeightRegular 0 | ||
+#define kCTFontWeightMedium 0.23 | ||
+#define kCTFontWeightSemibold 0.3 | ||
+#define kCTFontWeightBold 0.4 | ||
+#define kCTFontWeightHeavy 0.56 | ||
+#define kCTFontWeightBlack 0.62 | ||
+#elif defined(Q_OS_OSX) | ||
#define kCTFontWeightUltraLight NSFontWeightUltraLight | ||
#define kCTFontWeightThin NSFontWeightThin | ||
#define kCTFontWeightLight NSFontWeightLight | ||
diff --git a/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm b/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm | ||
index 94f2125bad..272cd9f3dc 100644 | ||
--- a/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm | ||
+++ b/src/plugins/platforms/cocoa/qcocoafiledialoghelper.mm | ||
@@ -162,7 +162,11 @@ QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSOpenSavePanelDelegate); | ||
// resetting our mCurrentDir, set the delegate | ||
// here to make sure it gets the correct value. | ||
[mSavePanel setDelegate:self]; | ||
- mOpenPanel.accessoryViewDisclosed = YES; | ||
+ | ||
+#if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_11) | ||
+ if (__builtin_available(macOS 10.11, *)) | ||
+ mOpenPanel.accessoryViewDisclosed = YES; | ||
+#endif | ||
|
||
if (mOptions->isLabelExplicitlySet(QFileDialogOptions::Accept)) | ||
[mSavePanel setPrompt:[self strip:options->labelText(QFileDialogOptions::Accept)]]; | ||
diff --git a/src/plugins/platforms/cocoa/qnswindowdelegate.mm b/src/plugins/platforms/cocoa/qnswindowdelegate.mm | ||
index 057a4c2943..eb55e50622 100644 | ||
--- a/src/plugins/platforms/cocoa/qnswindowdelegate.mm | ||
+++ b/src/plugins/platforms/cocoa/qnswindowdelegate.mm | ||
@@ -103,6 +103,22 @@ static QRegExp whitespaceRegex = QRegExp(QStringLiteral("\\s*")); | ||
return QCocoaScreen::mapToNative(maximizedFrame); | ||
} | ||
|
||
+#if QT_MACOS_DEPLOYMENT_TARGET_BELOW(__MAC_10_11) | ||
+/* | ||
+ AppKit on OS X 10.10 wrongly calls windowWillUseStandardFrame:defaultFrame | ||
+ from -[NSWindow _frameForFullScreenMode] when going into fullscreen, resulting | ||
+ in black bars on top and bottom of the window. By implementing the following | ||
+ method, AppKit will choose that instead, and resolve the right fullscreen | ||
+ geometry. | ||
+*/ | ||
+- (NSSize)window:(NSWindow *)window willUseFullScreenContentSize:(NSSize)proposedSize | ||
+{ | ||
+ Q_UNUSED(proposedSize); | ||
+ Q_ASSERT(window == m_cocoaWindow->nativeWindow()); | ||
+ return NSSizeFromCGSize(m_cocoaWindow->screen()->geometry().size().toCGSize()); | ||
+} | ||
+#endif | ||
+ | ||
- (BOOL)window:(NSWindow *)window shouldPopUpDocumentPathMenu:(NSMenu *)menu | ||
{ | ||
Q_UNUSED(window); |
Oops, something went wrong.