source: mmcs/stackpreciosnohomogeneos.cpp @ 04999c9

matrices
Last change on this file since 04999c9 was 04999c9, checked in by rboet <rboet@…>, 9 years ago

funcionabilidad de modelo de precios no homogéneos incorporada

  • Property mode set to 100644
File size: 845 bytes
Line 
1#include "stackpreciosnohomogeneos.h"
2
3StackPreciosNoHomogeneos::StackPreciosNoHomogeneos(QMap<QString,QStringList> Cuentas,QWidget *parent):
4    QWidget(parent)
5{
6    layoutMain = new QHBoxLayout;
7
8    comboAccount = new QComboBox(this);
9
10    stackedWidget = new QStackedWidget(this);
11
12    int i = 0;
13    foreach(QString key, Cuentas.keys())
14    {
15
16        comboAccount->addItem(key);
17
18        comboAccount->setObjectName(QString("CuentaPBH %1").arg(i + 1));
19
20        varPNH = new variablePNH(i,Cuentas[key],stackedWidget);
21
22        stackedWidget->addWidget(varPNH);
23
24        widgetList.append(varPNH);
25
26        i++;
27    }
28
29    layoutMain->addWidget(comboAccount);
30    layoutMain->addWidget(stackedWidget);
31
32    setLayout(layoutMain);
33
34    connect(comboAccount, SIGNAL(activated(int)),
35            stackedWidget, SLOT(setCurrentIndex(int)));
36}
Note: See TracBrowser for help on using the repository browser.