QNX: Don't use native file dialogs.
They are not supported anymore. Use the standard Qt dialogs instead. Change-Id: I2b6c7688e24e4345a95d3a9a062f9670cb1a845f Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com> Reviewed-by: Bernd Weimer <bweimer@rim.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
This commit is contained in:
parent
170bf2a59a
commit
64439ed92a
@ -58,8 +58,10 @@ QQnxTheme::~QQnxTheme()
|
|||||||
|
|
||||||
bool QQnxTheme::usePlatformNativeDialog(DialogType type) const
|
bool QQnxTheme::usePlatformNativeDialog(DialogType type) const
|
||||||
{
|
{
|
||||||
|
#if defined(Q_OS_BLACKBERRY_TABLET)
|
||||||
if (type == QPlatformTheme::FileDialog)
|
if (type == QPlatformTheme::FileDialog)
|
||||||
return true;
|
return true;
|
||||||
|
#endif
|
||||||
#if !defined(QT_NO_COLORDIALOG)
|
#if !defined(QT_NO_COLORDIALOG)
|
||||||
if (type == QPlatformTheme::ColorDialog)
|
if (type == QPlatformTheme::ColorDialog)
|
||||||
return false;
|
return false;
|
||||||
@ -74,8 +76,10 @@ bool QQnxTheme::usePlatformNativeDialog(DialogType type) const
|
|||||||
QPlatformDialogHelper *QQnxTheme::createPlatformDialogHelper(DialogType type) const
|
QPlatformDialogHelper *QQnxTheme::createPlatformDialogHelper(DialogType type) const
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
#if defined(Q_OS_BLACKBERRY_TABLET)
|
||||||
case QPlatformTheme::FileDialog:
|
case QPlatformTheme::FileDialog:
|
||||||
return new QQnxFileDialogHelper(m_integration);
|
return new QQnxFileDialogHelper(m_integration);
|
||||||
|
#endif
|
||||||
#ifndef QT_NO_COLORDIALOG
|
#ifndef QT_NO_COLORDIALOG
|
||||||
case QPlatformTheme::ColorDialog:
|
case QPlatformTheme::ColorDialog:
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user