title: Qt C++ C2143: syntax error : missing ';' before '*'
body: <p>I am aware that this topic has been already discussed, but I have spent half day to figure what i am doing wrong. I keep having this error and I think I've done thousands of syntax checks. Can anyone help me?</p>
  
  <pre><code>#ifndef ADDEDITDIALOG_H
  #define ADDEDITDIALOG_H
  
  #include &lt;QDialog&gt;
  #include &lt;QStandardItemModel&gt;
  #include "characteristics.h"
  #include "equipment.h"
  #include "generaldata.h"
  #include "registration.h"
  #include "revisiondialog.h"
  #include "vehicle.h"
  #include "vehiclehelper.h"
  #include "verification.h"
  #include "verificationdialog.h"
  
  
  namespace Ui {
  class AddEditDialog;
  }
  
  class AddEditDialog : public QDialog
  {
  Q_OBJECT
  
  public:
  explicit AddEditDialog(QWidget *parent = 0);
  ~AddEditDialog();
  
  bool getIsNew() const;
  bool getIsEdited() const;
  bool getAddRevision() const;
  
  Vehicle getVehicleToAdd() const;
  
  void setVehicleToAdd();
  void loadVehicleToEdit(Vehicle car);
  void createTableView(const QList&lt;Verification&gt; list);
  
  QList&lt;Verification&gt; getRevisionsList() const;
  
  private slots:
  void on_add_revision_clicked();
  
  void on_save_clicked();
  
  void on_cancel_clicked();
  
  void on_generate_reg_number_clicked();
  
  private:
  Ui::AddEditDialog *ui;
  RevisionDialog *newDialog; //this line is giving the error
  
  Vehicle toAdd;
  
  bool isNew;
  bool isEdited;
  bool addRevision;
  
  QList&lt;Verification&gt; newVerificationList;
  QStandardItemModel *newModel;
  };
  
  #endif // ADDEDITDIALOG_H
  </code></pre>
  
  <h3>revisiondialog.h</h3>
  
  <pre><code>#ifndef REVISIONDIALOG_H
  #define REVISIONDIALOG_H
  
  #include &lt;QDialog&gt;
  #include "addeditdialog.h"
  #include "verification.h"
  
  namespace Ui {
  class RevisionDialog;
  }
  
  class RevisionDialog : public QDialog
  {
  Q_OBJECT
  
  public:
  explicit RevisionDialog(QWidget *parent = 0);
  ~RevisionDialog();
  
  void setRevision();
  void setRevisionsList();
  Verification getRevision() const;
  bool getOk() const;
  
  private slots:
  void on_ok_revision_clicked();
  
  void on_cancel_revision_clicked();
  
  private:
  Ui::RevisionDialog *ui;
  QList&lt;Verification&gt; revisionsList;
  Verification revision;
  bool okClicked;
  };
  
  #endif // REVISIONDIALOG_H
  </code></pre>