Merge pull request #1211 from andyjenkinson/next
Updates for Mac - needs testing on other platforms
This commit is contained in:
@@ -42,18 +42,14 @@ SET( QT_USE_QTNETWORK True )
|
|||||||
SET( QT_USE_QTXML True )
|
SET( QT_USE_QTXML True )
|
||||||
INCLUDE( ${QT_USE_FILE} )
|
INCLUDE( ${QT_USE_FILE} )
|
||||||
|
|
||||||
IF ( APPLE )
|
MESSAGE( STATUS "Looking for PHONON " )
|
||||||
MESSAGE( STATUS "Phonon still not supported on APPLE " )
|
FIND_PACKAGE(Phonon)
|
||||||
|
IF ( PHONON_FOUND )
|
||||||
|
INCLUDE_DIRECTORIES( ${PHONO_INCLUDE_DIR} )
|
||||||
|
MESSAGE("PHONON Include Path: " ${PHONON_INCLUDE_DIR} )
|
||||||
|
ADD_DEFINITIONS( -DPHONON )
|
||||||
ELSE()
|
ELSE()
|
||||||
MESSAGE( STATUS "Looking for PHONON " )
|
MESSAGE( "PHONON not found!" )
|
||||||
FIND_PACKAGE(Phonon)
|
|
||||||
IF ( PHONON_FOUND )
|
|
||||||
INCLUDE_DIRECTORIES( ${PHONO_INCLUDE_DIR} )
|
|
||||||
MESSAGE("PHONON Include Path: " ${PHONON_INCLUDE_DIR} )
|
|
||||||
ADD_DEFINITIONS( -DPHONON )
|
|
||||||
ELSE()
|
|
||||||
MESSAGE( "PHONON not found!" )
|
|
||||||
ENDIF()
|
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
|
|||||||
@@ -51,7 +51,13 @@ WizardDialog::WizardDialog(const GeneralSettings & settings, unsigned int modelI
|
|||||||
"Please note that continuing removes all old model settings!"), -1));
|
"Please note that continuing removes all old model settings!"), -1));
|
||||||
setStartId(Page_Models);
|
setStartId(Page_Models);
|
||||||
|
|
||||||
|
// Workaround for Qt radio button rendering issue on Mac
|
||||||
|
Q_FOREACH(QAbstractButton * rb, findChildren<QAbstractButton *>()) {
|
||||||
|
rb->setAttribute(Qt::WA_LayoutUsesWidgetRect);
|
||||||
|
}
|
||||||
|
|
||||||
setWizardStyle(ModernStyle);
|
setWizardStyle(ModernStyle);
|
||||||
|
setOption(QWizard::NoCancelButton, false);
|
||||||
setOption(HaveHelpButton, true);
|
setOption(HaveHelpButton, true);
|
||||||
connect(this, SIGNAL(helpRequested()), this, SLOT(showHelp()));
|
connect(this, SIGNAL(helpRequested()), this, SLOT(showHelp()));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user