Hi there i have a problem with a class.

So what i did:
I created a incident.h with my class "IncidentLocation".

Qt Code:
  1. class IncidentLocation
  2. {
  3. public:
  4. IncidentLocation(QString city, QString street, int houseno, QString floor, QString company, QString building);
  5. QString getCity();
  6. QString getStreet();
  7. int getHouseno();
  8. QString getFloor();
  9. QString getCompany();
  10. QString getBuilding();
  11.  
  12. private:
  13. QString city;
  14. QString street;
  15. int houseno;
  16. QString floor;
  17. QString company;
  18. QString building;
  19. };
To copy to clipboard, switch view to plain text mode 

So after that i created "incident.cpp" to define all functions of the class:

Qt Code:
  1. #include "incident.h"
  2.  
  3. IncidentLocation::IncidentLocation(QString city, QString street, int houseno, QString floor, QString company, QString building)
  4. :city(city), street(street), houseno(houseno), floor(floor), company(company), building(building){}
  5.  
  6. IncidentLocation::getCity()
  7. {
  8. return city;
  9. }
  10.  
  11. IncidentLocation::getStreet()
  12. {
  13. return street;
  14. }
  15.  
  16. IncidentLocation::getHouseno()
  17. {
  18. return houseno;
  19. }
  20.  
  21. IncidentLocation::getFloor()
  22. {
  23. return floor;
  24. }
  25.  
  26. IncidentLocation::getCompany()
  27. {
  28. return company;
  29. }
  30.  
  31. IncidentLocation::getBuilding()
  32. {
  33. return building;
  34. }
To copy to clipboard, switch view to plain text mode 

Now QtCreator says for every get-Function:
>> ISO C++ forbids declaration of 'getXXXX' with no type
>> prototype for 'int IncidentLocation::getXXXX()' does not match any in class 'IncidentLocation'
>> candidate is: QString IncidentLocation::getXXXX()


What the fuck is the problem? Dont get the error i made.
Please help not to went crazy -.-

Greetz