Changeset 49083f1 in mmcs for mainwindow.C


Ignore:
Timestamp:
Aug 21, 2015, 9:04:03 AM (9 years ago)
Author:
rboet <rboet@…>
Branches:
master, matrices
Children:
04999c9
Parents:
8daa049
Message:

solucionado error al restaurar títulos de cuentas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mainwindow.C

    r8daa049 r49083f1  
    954954                QMessageBox::warning(this,"Alerta","Valores mayores al tamaño\n de la tabla");
    955955            }
     956            else if(inicio>fin)
     957            {
     958                QMessageBox::warning(this,"Alerta","El inicio es mayor\nque el fin");
     959            }
    956960            else
    957961            {
     
    963967                        if(i!=index)
    964968                        {
    965                             QSpinBox *otherEnd = findChild<QSpinBox *>(QString("accountend %1").arg(i+1));
    966                             int otroFin=otherEnd->text().toInt();
    967                             if(inicio<otroFin)
     969                            QSpinBox *oI = findChild<QSpinBox *>(QString("accountstart %1").arg(i+1));
     970                            QSpinBox *oF = findChild<QSpinBox *>(QString("accountend %1").arg(i+1));
     971                            int otroInicio = oI->text().toInt();
     972                            int otroFin = oF->text().toInt();
     973                            for(int k=inicio;k<=fin;k++)
    968974                            {
    969                                 centinela=false;
     975                                for(int j=otroInicio;j<=otroFin;j++)
     976                                {
     977                                    if(k==j)
     978                                    {
     979                                        centinela=false;
     980                                        break;
     981                                    }
     982                                }
    970983                            }
    971984                        }
     
    23272340                        font.setBold(true);
    23282341                        title->setFont(font);
    2329                         title->setText(QString("<b>Cuenta:</b> %1\n<b>Componente:</b> %2").arg(key,valor));
     2342                        title->setText(QString("Cuenta: %1\nComponente: %2").arg(key,valor));
    23302343                        title->setFlags(title->flags() ^ Qt::ItemIsEditable);
    23312344                        enTable->setItem(columna,0,title);
Note: See TracChangeset for help on using the changeset viewer.