QTfrontend/pages.cpp
changeset 88 6740a1c4edc9
parent 87 ff213e443336
child 90 b18a6cd6a17c
equal deleted inserted replaced
87:ff213e443336 88:6740a1c4edc9
    38 #include <QComboBox>
    38 #include <QComboBox>
    39 #include <QLabel>
    39 #include <QLabel>
    40 #include <QToolBox>
    40 #include <QToolBox>
    41 #include <QLineEdit>
    41 #include <QLineEdit>
    42 #include <QListWidget>
    42 #include <QListWidget>
       
    43 #include <QApplication>
    43 
    44 
    44 #include "pages.h"
    45 #include "pages.h"
    45 #include "sdlkeys.h"
    46 #include "sdlkeys.h"
    46 #include "hwconsts.h"
    47 #include "hwconsts.h"
    47 #include "gamecfgwidget.h"
    48 #include "gamecfgwidget.h"
   182 	quint16 widind = 0, top = 0;
   183 	quint16 widind = 0, top = 0;
   183 	for(quint8 i = 0; i < BINDS_NUMBER; i++)
   184 	for(quint8 i = 0; i < BINDS_NUMBER; i++)
   184 	{
   185 	{
   185 		LBind[i] = new QLabel(BindsBox->widget(widind));
   186 		LBind[i] = new QLabel(BindsBox->widget(widind));
   186 		LBind[i]->setGeometry(QRect(10, top + 3, 70, 20));
   187 		LBind[i]->setGeometry(QRect(10, top + 3, 70, 20));
   187 		LBind[i]->setText(tr(cbinds[i].name));
   188 		LBind[i]->setText(QApplication::translate("binds", cbinds[i].name));
   188 		LBind[i]->setAlignment(Qt::AlignRight);
   189 		LBind[i]->setAlignment(Qt::AlignRight);
   189 		CBBind[i] = new QComboBox(BindsBox->widget(widind));
   190 		CBBind[i] = new QComboBox(BindsBox->widget(widind));
   190 		CBBind[i]->setGeometry(QRect(90, top, 80, 20));
   191 		CBBind[i]->setGeometry(QRect(90, top, 80, 20));
   191 		CBBind[i]->addItems(binds);
   192 		CBBind[i]->addItems(binds);
   192 		if (cbinds[i].chwidget)
   193 		if (cbinds[i].chwidget)