QTfrontend/hwform.cpp
changeset 41 5d7a505875cd
parent 37 2b7f2a43b999
child 43 e297fea1a2f3
equal deleted inserted replaced
40:416d54ce0c34 41:5d7a505875cd
    68 
    68 
    69 	quint16 widind = 0, top = 0;
    69 	quint16 widind = 0, top = 0;
    70 	for(quint8 i = 0; i < BINDS_NUMBER; i++)
    70 	for(quint8 i = 0; i < BINDS_NUMBER; i++)
    71 	{
    71 	{
    72 		LBind[i] = new QLabel(ui.BindsBox->widget(widind));
    72 		LBind[i] = new QLabel(ui.BindsBox->widget(widind));
    73 		LBind[i]->setGeometry(QRect(10, top + 3, 60, 20));
    73 		LBind[i]->setGeometry(QRect(10, top + 3, 70, 20));
    74 		LBind[i]->setText(cbinds[i].name);
    74 		LBind[i]->setText(cbinds[i].name);
    75 		LBind[i]->setAlignment(Qt::AlignRight);
    75 		LBind[i]->setAlignment(Qt::AlignRight);
    76 		CBBind[i] = new QComboBox(ui.BindsBox->widget(widind));
    76 		CBBind[i] = new QComboBox(ui.BindsBox->widget(widind));
    77 		CBBind[i]->setGeometry(QRect(80, top, 80, 20));
    77 		CBBind[i]->setGeometry(QRect(90, top, 80, 20));
    78 		CBBind[i]->addItems(binds);
    78 		CBBind[i]->addItems(binds);
    79 		if (cbinds[i].chwidget)
    79 		if (cbinds[i].chwidget)
    80 		{
    80 		{
    81 			top = 0;
    81 			top = 0;
    82 			widind++;
    82 			widind++;
    83 		} else
    83 		} else
    84 		{
    84 		{
    85 			top += 30;
    85 			top += 28;
    86 		}
    86 		}
    87 	}
    87 	}
    88 
    88 
    89 	QDir tmpdir;
    89 	QDir tmpdir;
    90 	tmpdir.cd(DATA_PATH);
    90 	tmpdir.cd(DATA_PATH);