Fix MainToolBar visibility not saving in OSX

The current code, although completely valid, doesn't work due to moc not seeing built in defines. See;
https://bugreports.qt-project.org/browse/QTBUG-34593