Changeset e62517a in mmcs for formloadmatrix.C
- Timestamp:
- Aug 31, 2016, 5:18:22 PM (8 years ago)
- Branches:
- master
- Children:
- 0b59ba5
- Parents:
- 4c71262
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
formloadmatrix.C
r588814f re62517a 11 11 12 12 FormLoadMatrix::FormLoadMatrix(QWidget * parent) 13 : QWidget(parent, Qt::Tool) 13 : QWidget(parent, Qt::Tool), 14 ui(new Ui::FormLoadMatrix) 14 15 { 15 ui.setupUi(this); 16 16 ui->setupUi(this); 17 17 int x = parent->pos().x() + parent->width()/2 - this->width()/2; 18 18 int y = parent->pos().y() + parent->height()/2 - this->height()/2; 19 19 this->move(x, y); 20 20 21 connect(ui .buttonSearch, SIGNAL(clicked()),this,SLOT(slotLoadMatrixFile()));22 connect(ui .buttonCancel, SIGNAL(clicked()),this,SLOT(close()));23 connect(ui .buttonOpen, SIGNAL(clicked()), this,21 connect(ui->buttonSearch, SIGNAL(clicked()),this,SLOT(slotLoadMatrixFile())); 22 connect(ui->buttonCancel, SIGNAL(clicked()),this,SLOT(close())); 23 connect(ui->buttonOpen, SIGNAL(clicked()), this, 24 24 SLOT(slotButtonAcceptClicked())); 25 25 … … 31 31 32 32 if(filename.isEmpty()) return; 33 ui .editFilePath->setText(filename);33 ui->editFilePath->setText(filename); 34 34 } 35 35 36 36 void FormLoadMatrix::slotButtonAcceptClicked() 37 37 { 38 if (ui .editFilePath->text().isEmpty())38 if (ui->editFilePath->text().isEmpty()) 39 39 { 40 40 QMessageBox::critical(this, "Faltan datos", 41 41 "Debe seleccionar un archivo"); 42 42 43 ui .editFilePath->setFocus();43 ui->editFilePath->setFocus(); 44 44 return; 45 45 } 46 else if(!ui .radioAccount->isChecked() and !ui.radioComponent->isChecked()){46 else if(!ui->radioAccount->isChecked() and !ui->radioComponent->isChecked()){ 47 47 QMessageBox::critical(this, "Faltan datos", 48 48 "Debe seleccionar si cargará cuentas y componentes o sólo componentes"); 49 ui .editFilePath->setFocus();49 ui->editFilePath->setFocus(); 50 50 return; 51 51 } 52 52 53 emit formAccepted(ui .editFilePath->text(), ui.spinNumber->value(),ui.spinBox->value());53 emit formAccepted(ui->editFilePath->text(), ui->spinNumber->value(),ui->spinBox->value()); 54 54 55 55 close();
Note: See TracChangeset
for help on using the changeset viewer.