Changeset e62517a in mmcs for formloadmatrix.C


Ignore:
Timestamp:
Aug 31, 2016, 5:18:22 PM (8 years ago)
Author:
rudmanmrrod <rudman22@…>
Branches:
master
Children:
0b59ba5
Parents:
4c71262
Message:

Migrado el proyecto a la versión 5 de Qt, agregado primer boceto del PDF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • formloadmatrix.C

    r588814f re62517a  
    1111
    1212FormLoadMatrix::FormLoadMatrix(QWidget * parent)
    13     : QWidget(parent, Qt::Tool)
     13    : QWidget(parent, Qt::Tool),
     14      ui(new Ui::FormLoadMatrix)
    1415{
    15     ui.setupUi(this);
    16 
     16    ui->setupUi(this);
    1717    int x = parent->pos().x() + parent->width()/2 - this->width()/2;
    1818    int y = parent->pos().y() + parent->height()/2 - this->height()/2;
    1919    this->move(x, y);
    2020
    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,
    2424            SLOT(slotButtonAcceptClicked()));
    2525
     
    3131
    3232    if(filename.isEmpty()) return;
    33     ui.editFilePath->setText(filename);
     33    ui->editFilePath->setText(filename);
    3434}
    3535
    3636void FormLoadMatrix::slotButtonAcceptClicked()
    3737{
    38     if (ui.editFilePath->text().isEmpty())
     38    if (ui->editFilePath->text().isEmpty())
    3939    {
    4040        QMessageBox::critical(this, "Faltan datos",
    4141                              "Debe seleccionar un archivo");
    4242
    43         ui.editFilePath->setFocus();
     43        ui->editFilePath->setFocus();
    4444        return;
    4545    }
    46     else if(!ui.radioAccount->isChecked() and !ui.radioComponent->isChecked()){
     46    else if(!ui->radioAccount->isChecked() and !ui->radioComponent->isChecked()){
    4747        QMessageBox::critical(this, "Faltan datos",
    4848                              "Debe seleccionar si cargará cuentas y componentes o sólo componentes");
    49         ui.editFilePath->setFocus();
     49        ui->editFilePath->setFocus();
    5050        return;
    5151    }
    5252
    53     emit formAccepted(ui.editFilePath->text(), ui.spinNumber->value(),ui.spinBox->value());
     53    emit formAccepted(ui->editFilePath->text(), ui->spinNumber->value(),ui->spinBox->value());
    5454
    5555    close();
Note: See TracChangeset for help on using the changeset viewer.