void PowerlineDeviceName::slotInit() { connect(ui->but_close, SIGNAL(clicked()), this, SLOT(slot_btn_close())); connect(ui->but_OK, SIGNAL(clicked()), this, SLOT(slot_btn_ok())); connect(ui->edt_newname, SIGNAL(textChanged(QString)), this, SLOT(slot_text(QString))); }
void KeyBoard::slot_btn_press(VKey * key) { LOG_INFO("focus = %s idx %d \n", key->getChar(), key-keys[0]); setFocus(key); if(KEY_TYPE_CHARACTER == key->getKeyType()) { editbox->insert(key->text()); input = editbox->text(); } else { if(0 == strcmp(key->getChar(),"Backspace")) slot_btn_backspace(); else if(0 == strcmp(key->getChar(),"Mode")) slot_btn_mode(); else if(0 == strcmp(key->getChar(),"Clear")) slot_btn_clear(); else if(0 == strcmp(key->getChar(),"<-")) slot_btn_left(); else if(0 == strcmp(key->getChar(),"->")) slot_btn_right(); else if(0 == strcmp(key->getChar(),"Space")) slot_btn_space(); else if(0 == strcmp(key->getChar(),"OK")) slot_btn_ok(); } }
int PowerlineDeviceName::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QDialog::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: signPDNok((*reinterpret_cast< QString(*)>(_a[1]))); break; case 1: slot_btn_ok(); break; case 2: slot_btn_close(); break; case 3: slot_text((*reinterpret_cast< QString(*)>(_a[1]))); break; default: ; } _id -= 4; } return _id; }