Last change
on this file since 68e57de was
68e57de,
checked in by rboet <rudmanmrrod@…>, 9 years ago
|
solucionado una dependencia de recurso para la imagen de cargar matriz
|
-
Property mode set to
100755
|
File size:
898 bytes
|
Rev | Line | |
---|
[239e1ea] | 1 | /* |
---|
| 2 | realizado por Rodrigo Boet Septiembre/2015 |
---|
| 3 | */ |
---|
[04999c9] | 4 | #include "stackpreciosnohomogeneos.h" |
---|
| 5 | |
---|
| 6 | StackPreciosNoHomogeneos::StackPreciosNoHomogeneos(QMap<QString,QStringList> Cuentas,QWidget *parent): |
---|
| 7 | QWidget(parent) |
---|
| 8 | { |
---|
| 9 | layoutMain = new QHBoxLayout; |
---|
| 10 | |
---|
| 11 | comboAccount = new QComboBox(this); |
---|
| 12 | |
---|
| 13 | stackedWidget = new QStackedWidget(this); |
---|
| 14 | |
---|
| 15 | int i = 0; |
---|
| 16 | foreach(QString key, Cuentas.keys()) |
---|
| 17 | { |
---|
| 18 | |
---|
| 19 | comboAccount->addItem(key); |
---|
| 20 | |
---|
| 21 | comboAccount->setObjectName(QString("CuentaPBH %1").arg(i + 1)); |
---|
| 22 | |
---|
| 23 | varPNH = new variablePNH(i,Cuentas[key],stackedWidget); |
---|
| 24 | |
---|
| 25 | stackedWidget->addWidget(varPNH); |
---|
| 26 | |
---|
| 27 | widgetList.append(varPNH); |
---|
| 28 | |
---|
| 29 | i++; |
---|
| 30 | } |
---|
| 31 | |
---|
| 32 | layoutMain->addWidget(comboAccount); |
---|
| 33 | layoutMain->addWidget(stackedWidget); |
---|
| 34 | |
---|
| 35 | setLayout(layoutMain); |
---|
| 36 | |
---|
| 37 | connect(comboAccount, SIGNAL(activated(int)), |
---|
| 38 | stackedWidget, SLOT(setCurrentIndex(int))); |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.