Changeset 50550b0 in mmcs for mainwindow.C


Ignore:
Timestamp:
Aug 1, 2016, 11:28:54 AM (8 years ago)
Author:
rudmanmrrod <rudman22@…>
Branches:
master
Children:
4c71262
Parents:
588814f
Message:

Mejorado la carga de matrices por cuenta, no funcionaba correctamente com >=3 cuentas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mainwindow.C

    r588814f r50550b0  
    729729        }
    730730    }
     731    qDebug()<<vector;
    731732    //Se cargan los datos en la cuenta
    732733    for(int i=0;i<numAccounts;i++)
     
    735736        QSpinBox *SBStart = findChild<QSpinBox *>(QString("accountstart %1").arg(i+1));
    736737        QSpinBox *SBEnd = findChild<QSpinBox *>(QString("accountend %1").arg(i+1));
    737         if(i==0)
    738         {
    739             le->setText(vector.at(i));
    740             SBStart->setValue(vector.at(i+1).toInt());
    741             SBEnd->setValue(vector.at(i+2).toInt());
    742         }
    743         else
    744         {
    745             le->setText(vector.at(i+2));
    746             SBStart->setValue(vector.at(i+3).toInt());
    747             SBEnd->setValue(vector.at(i+4).toInt());
    748         }
     738        le->setText(vector.at(i*3));
     739        SBStart->setValue(vector.at((i*3)+1).toInt());
     740        SBEnd->setValue(vector.at((i*3)+2).toInt());
    749741    }
    750742    TotalPrincipalTable(tw,PrincipalTable,2);
     
    758750
    759751    //Se ocultan el StackedWidget con los datos de la cuenta
    760     hideStackedWidget();
     752    //hideStackedWidget();
    761753
    762754    /*       Luego de calcular los totales se habilitan las opciones del menu herramientas       */
Note: See TracChangeset for help on using the changeset viewer.