I should be able to see why this is happening, but then again, I'm a newbie.

Compiler says 'actionQuit' was not declared in this scope.
Here is part of the mainwindow.cpp:

Qt Code:
  1. #include <QtGui>
  2. #include "mainwindow.h"
  3. #include "ui_mainwindow.h"
  4.  
  5. MainWindow::MainWindow(QWidget *parent)
  6. : QMainWindow(parent), ui(new Ui::MainWindow)
  7. {
  8. ui->setupUi(this);
  9. setupActions();
  10. mStatLabel = new QLabel;
  11. statusBar()->addPermanentWidget(mStatLabel);
  12. connect(textEdit, SIGNAL(textChanged()), this, SLOT(updateStats()));
  13. updateStats();
  14. }
  15.  
  16. void MainWindow::setupActions()
  17. {
  18. connect(actionQuit, SIGNAL(triggered(bool)),
  19. qApp, SLOT(quit()));
To copy to clipboard, switch view to plain text mode 

I have checked to be sure the menu item is indeed actionQuit.
So what am I missing?