Hi guys, I've been chewing over this for far too long now and can't spot why it's not working.

I'm getting this error:
Qt Code:
  1. /Users/nicholassmith/Development/CAMSv5/CandidateManager/candidatemanager.cpp:34: error: variable or field 'setUser' declared void
  2. /Users/nicholassmith/Development/CAMSv5/CandidateManager/candidatemanager.cpp:34: error: 'int CandidateManager::setUser' is not a static member of 'class CandidateManager'
  3. /Users/nicholassmith/Development/CAMSv5/CandidateManager/candidatemanager.cpp:34: error: 'passedUser' was not declared in this scope
  4. /Users/nicholassmith/Development/CAMSv5/CandidateManager/candidatemanager.cpp:35: error: expected ',' or ';' before '{' token
To copy to clipboard, switch view to plain text mode 

When compiling this:

Qt Code:
  1. //From .cpp
  2. void CandidateManager::setUser(passedUser)
  3. {
  4. consultant = passedUser;
  5. }
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. //From .h
  2. void setUser(QString );
To copy to clipboard, switch view to plain text mode 

I'd post the full application code but it's close to 1k lines long, but that's the section that seems to be throwing an issue. I've been through deleting all project files and starting again, commenting out the entirety of the application aside from that one function etc.

Strange thing is, it works fine in another application I've written. I've literally run out of ideas, can anyone think of something I may have missed?

Thanks for any help!