fix build on mac (take II)

This commit is contained in:
Juergen E. Fischer 2012-08-09 20:34:57 +02:00
parent 6fb89b1d3e
commit 2983ad732c
2 changed files with 4 additions and 4 deletions

View File

@ -738,9 +738,9 @@ void QgsOptions::toggleStandardDeviation( int state )
} }
} }
#ifdef Q_WS_X11
void QgsOptions::toggleEnableBackbuffer( int state ) void QgsOptions::toggleEnableBackbuffer( int state )
{ {
#ifdef Q_WS_X11
if ( Qt::Checked == state ) if ( Qt::Checked == state )
{ {
labelUpdateThreshold->setEnabled( false ); labelUpdateThreshold->setEnabled( false );
@ -751,8 +751,10 @@ void QgsOptions::toggleEnableBackbuffer( int state )
labelUpdateThreshold->setEnabled( true ); labelUpdateThreshold->setEnabled( true );
spinBoxUpdateThreshold->setEnabled( true ); spinBoxUpdateThreshold->setEnabled( true );
} }
} #else
Q_UNUSED( state );
#endif #endif
}
QString QgsOptions::theme() QString QgsOptions::theme()
{ {

View File

@ -74,11 +74,9 @@ class QgsOptions : public QDialog, private Ui::QgsOptionsBase
void toggleStandardDeviation( int ); void toggleStandardDeviation( int );
#ifdef Q_WS_X11
//! Slot to change backbuffering. This is handled when the user changes //! Slot to change backbuffering. This is handled when the user changes
// the value of the checkbox // the value of the checkbox
void toggleEnableBackbuffer( int ); void toggleEnableBackbuffer( int );
#endif
/** /**
* Return the desired state of newly added layers. If a layer * Return the desired state of newly added layers. If a layer