Ensure attributes get initialised. Proper use of i18n() Do not pass const& to SLOT() Remove unused variable.