QCocoaFileDialog - disclose accessory view
Since 10.11 accessory view is hidden by default (making file filters invisible). Setting accessoryViewDisclosed = YES solves this problem. Change-Id: I140347b850645df613f6e818fab1c3d35ec0a473 Task-number: QTBUG-50086 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>bb10
parent
57a1224eb3
commit
2613317512
|
|
@ -61,6 +61,8 @@
|
|||
#include <qvarlengtharray.h>
|
||||
#include <stdlib.h>
|
||||
#include <qabstracteventdispatcher.h>
|
||||
#include <qsysinfo.h>
|
||||
#include <qglobal.h>
|
||||
#include <QDir>
|
||||
|
||||
#include <qpa/qplatformnativeinterface.h>
|
||||
|
|
@ -156,6 +158,10 @@ QT_NAMESPACE_ALIAS_OBJC_CLASS(QNSOpenSavePanelDelegate);
|
|||
[self createAccessory];
|
||||
[mSavePanel setAccessoryView:mNameFilterDropDownList->size() > 1 ? mAccessoryView : nil];
|
||||
|
||||
#if QT_OSX_PLATFORM_SDK_EQUAL_OR_ABOVE(__MAC_10_11)
|
||||
if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_11)
|
||||
mOpenPanel.accessoryViewDisclosed = YES;
|
||||
#endif
|
||||
|
||||
if (mOptions->isLabelExplicitlySet(QFileDialogOptions::Accept))
|
||||
[mSavePanel setPrompt:[self strip:options->labelText(QFileDialogOptions::Accept)]];
|
||||
|
|
|
|||
Loading…
Reference in New Issue