Changeset 79b7f06 in mmcs for genericFunctions.cpp


Ignore:
Timestamp:
Oct 31, 2016, 10:41:44 AM (8 years ago)
Author:
rudmanmrrod <rudman22@…>
Branches:
master
Children:
c7597d8
Parents:
f1e8de0
Message:

Alineado el texto de las endogenas, agregado span de las cuentas en descomposicion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • genericFunctions.cpp

    rb0c244f r79b7f06  
    235235   @param <opcion> Recibe la opción (1 para escribir en columna y 0 para la fila)
    236236*/
    237 void insertRowExogena(QList<QString> lista,QTableWidget *tw,int opcion)
     237void insertRowExogena(QList<QString> lista,QTableWidget *tw,int opcion, bool center, int init)
    238238{
    239239    for(int i=0;i<tw->rowCount();i++)
     
    242242        twi->setText(lista[i]);
    243243        twi->setFlags(twi->flags() ^ Qt::ItemIsEditable);
     244        if(center and i>=init)
     245        {
     246            twi->setTextAlignment(Qt::AlignCenter);
     247        }
    244248        int fin=tw->rowCount();
    245249        if(opcion==1)
Note: See TracChangeset for help on using the changeset viewer.