Changeset 49083f1 in mmcs for mainwindow.C
- Timestamp:
- Aug 21, 2015, 9:04:03 AM (9 years ago)
- Branches:
- master, matrices
- Children:
- 04999c9
- Parents:
- 8daa049
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mainwindow.C
r8daa049 r49083f1 954 954 QMessageBox::warning(this,"Alerta","Valores mayores al tamaño\n de la tabla"); 955 955 } 956 else if(inicio>fin) 957 { 958 QMessageBox::warning(this,"Alerta","El inicio es mayor\nque el fin"); 959 } 956 960 else 957 961 { … … 963 967 if(i!=index) 964 968 { 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++) 968 974 { 969 centinela=false; 975 for(int j=otroInicio;j<=otroFin;j++) 976 { 977 if(k==j) 978 { 979 centinela=false; 980 break; 981 } 982 } 970 983 } 971 984 } … … 2327 2340 font.setBold(true); 2328 2341 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)); 2330 2343 title->setFlags(title->flags() ^ Qt::ItemIsEditable); 2331 2344 enTable->setItem(columna,0,title);
Note: See TracChangeset
for help on using the changeset viewer.