[tracking] Apply coding style

- massage trackingSetup macro to look like a function call
main
Adriaan de Groot 6 years ago
parent 789561be6a
commit 5623d8086b

@ -46,6 +46,7 @@ TrackingPage::TrackingPage( Config* config, QWidget* parent )
// where the xButton and xCheckBox is connected to the xTracking
// configuration object; that takes macro-trickery, unfortunately.
#define trackingSetup( x ) \
do \
{ \
connect( ui->x##CheckBox, &QCheckBox::stateChanged, this, &TrackingPage::buttonChecked ); \
connect( ui->x##CheckBox, \
@ -62,9 +63,11 @@ TrackingPage::TrackingPage( Config* config, QWidget* parent )
QDesktopServices::openUrl( url ); \
} \
} ); \
}
} while ( false )
trackingSetup( install ) trackingSetup( machine ) trackingSetup( user )
trackingSetup( install );
trackingSetup( machine );
trackingSetup( user );
#undef trackingSetup

Loading…
Cancel
Save