I have the following Count class

Qt Code:
  1. [U]count.h[/U]
  2.  
  3. class Count
  4. {
  5.  
  6. private:
  7.  
  8. bool table[19][8];
  9.  
  10. QString line
  11.  
  12. public:
  13.  
  14. int start_line,end_line,alarm_lines; start_line,end_line,alarm_lines;
  15. };
To copy to clipboard, switch view to plain text mode 

in MainWindow.cpp

I create new objects "Count number [15]" this way

Qt Code:
  1. #include "mainwindow.h"
  2. #include "ui_mainwindow.h"
  3. #include "count.h"
  4.  
  5. Count number[15];
  6.  
  7. MainWindow::MainWindow(QWidget *parent) :
  8. QMainWindow(parent),
  9. ui(new Ui::MainWindow)
  10. {
  11.  
  12. ui->setupUi(this);
  13.  
  14. }
To copy to clipboard, switch view to plain text mode 

and in one of methods MainWindows I create new Object

Qt Code:
  1. void MainWindow::on_actionActionpreview_triggered()
  2. {
  3.  
  4. preview = new Preview(this);
  5. preview->setModal(true);
  6. preview->exec();
  7.  
  8.  
  9. }
To copy to clipboard, switch view to plain text mode 

In the method void Preview:n_pushButton_clicked() I would like to change start_line in object number[0]
Qt Code:
  1. #include "preview.h"
  2. #include "ui_preview.h"
  3. #include <QDebug>
  4. #include "mainwindow.h"
  5.  
  6. Preview::Preview(QWidget *parent) :
  7. QDialog(parent),
  8. ui(new Ui::Preview)
  9. {
  10.  
  11. ui->setupUi(this);
  12.  
  13.  
  14. }
  15.  
  16.  
  17. void Preview::on_pushButton_clicked()
  18. {
  19. number[0].start_line = 5;
  20. }
To copy to clipboard, switch view to plain text mode 


but during compilation I have the following error :" 'alarm' was not declared in this scope"


What are the possibilities to change the start line for the number [0] ?

Regards
Artur