示例#1
0
void widgetKeyboard::programInit(QStringList kModel, QStringList kLayouts)
{
  connect(pushClose, SIGNAL(clicked()), this, SLOT(slotClose()));
  connect(pushApply, SIGNAL(clicked()), this, SLOT(slotApply()));
  keyboardModels = kModel;
  keyboardLayouts = kLayouts;
  connectKeyboardSlots();
}
void widgetKeyboard::programInit(QStringList kModel, QStringList kLayouts, QString cModel, QString cLayout, QString cVarient)
{
  connect(pushClose, SIGNAL(clicked()), this, SLOT(slotClose()));
  connect(pushApply, SIGNAL(clicked()), this, SLOT(slotApply()));
  keyboardModels = kModel;
  keyboardLayouts = kLayouts;
  cKeyModel = cModel;
  cKeyLayout = cLayout;
  cKeyVarient = cVarient;
  if(cKeyLayout.isEmpty()){ cKeyLayout = "us"; }

  connectKeyboardSlots();
}