I've working on my first project and I've hit a speed bump. When building, I get this error message. Expected class-name before '{' token in mainwindow.h line 8.

Here is mainwindow.h:

Qt Code:
  1. #ifndef MAINWINDOW_H
  2. #define MAINWINDOW_H
  3.  
  4. #include "ui_mainwindow.h"
  5.  
  6.  
  7. class MainWindow : public QWidget, private Ui::MainWindowDLG
  8. {
  9. Q_OBJECT
  10.  
  11. public:
  12. MainWindow(QWidget *parent = 0);
  13.  
  14. public slots:
  15. void display_pic();
  16.  
  17. };
  18.  
  19. #endif
To copy to clipboard, switch view to plain text mode 

I know it's got to be something simple I am overlooking. Thanks in advance.