Fix compile with -DQT_NO_WIZARD

Change-Id: I6f7be895b8c4a1a65de43ee35d1fab25a30a25c6
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Montel Laurent 2012-11-30 19:00:11 +01:00 committed by The Qt Project
parent ce68ca86f2
commit 9bf17c7cb6
3 changed files with 5 additions and 2 deletions

View File

@ -9,6 +9,7 @@ SUBDIRS = classwizard \
extension \
findfiles
contains(DEFINES, QT_NO_WIZARD): SUBDIRS -= trivialwizard licensewizard classwizard
wince*: SUBDIRS += sipdialog
QT += widgets

View File

@ -3488,10 +3488,10 @@ int QFusionStyle::styleHint(StyleHint hint, const QStyleOption *option, const QW
case SH_MessageBox_TextInteractionFlags:
return Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse;
#ifndef QT_NO_WIZARD
case SH_WizardStyle:
return QWizard::ClassicStyle;
#endif
case SH_Menu_SubMenuPopupDelay:
return 225; // default from GtkMenu

View File

@ -794,8 +794,10 @@ int QGtkStyle::styleHint(StyleHint hint, const QStyleOption *option, const QWidg
return Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse;
case SH_MessageBox_CenterButtons:
return false;
#ifndef QT_NO_WIZARD
case SH_WizardStyle:
return QWizard::ClassicStyle;
#endif
case SH_ItemView_ArrowKeysNavigateIntoChildren:
return false;
case SH_DialogButtonLayout: {