Редакция 104 | Редакция 106 | К новейшей редакции | Весь файл | Учитывать пробелы | Содержимое файла | Авторство | Последнее изменение | Открыть журнал | RSS
Редакция 104 | Редакция 105 | ||
---|---|---|---|
Строка 4... | Строка 4... | ||
4 | MainWindow::MainWindow(QWidget *parent) : |
4 | MainWindow::MainWindow(QWidget *parent) : |
5 | QMainWindow(parent), |
5 | QMainWindow(parent), |
6 | ui(new Ui::MainWindow) |
6 | ui(new Ui::MainWindow) |
7 | {
|
7 | {
|
8 | ui->setupUi(this); |
8 | ui->setupUi(this); |
- | 9 | connect( ui->comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(on_currentIndexChanged(int))); |
|
9 | 10 | ||
10 | MainWindow::readModel(); |
11 | MainWindow::readModel(); |
11 | 12 | ||
12 | //QString model_str;
|
13 | //QString model_str;
|
13 | MainWindow::creatModelString(); |
14 | MainWindow::creatModelString(); |
Строка 511... | Строка 512... | ||
511 | }
|
512 | }
|
512 | ui->comboBox->addItems(tmp_stringList); |
513 | ui->comboBox->addItems(tmp_stringList); |
513 | 514 | ||
514 | 515 | ||
515 | }
|
516 | }
|
- | 517 | ||
- | 518 | ||
- | 519 | void MainWindow::on_currentIndexChanged( int index ){ |
|
- | 520 | int i; |
|
- | 521 | i = index; |
|
- | 522 | i++; |
|
- | 523 | }
|
|
- | 524 |