int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: on_pushButton_0_clicked(); break; case 1: on_pushButton_1_clicked(); break; case 2: on_pushButton_2_clicked(); break; case 3: on_pushButton_3_clicked(); break; case 4: on_pushButton_4_clicked(); break; case 5: on_pushButton_5_clicked(); break; case 6: on_pushButton_6_clicked(); break; case 7: on_pushButton_7_clicked(); break; case 8: on_pushButton_8_clicked(); break; case 9: on_pushButton_9_clicked(); break; case 10: on_pushButton_Plus_clicked(); break; case 11: on_pushButton_Moins_clicked(); break; case 12: on_pushButton_Mul_clicked(); break; case 13: on_pushButton_DIV_clicked(); break; case 14: afficheClavier(); break; case 15: effacer(); break; case 16: changeMode((*reinterpret_cast< int(*)>(_a[1]))); break; default: ; } _id -= 17; } return _id; }
void HackingWidget::on_pushButton_10_clicked() { on_pushButton_6_clicked(); QTreeView* view = new QTreeView(); qDebug()<<"1"; qDebug()<<audioCollection->getSongs().size(); QList<Song*> songlist = audioCollection->getSongs(); qDebug()<<"2"; QList<ITreeItemType*>* itemList = new QList<ITreeItemType*>(); qDebug()<<"3"; itemList->append(new ArtistItemType()); qDebug()<<"4"; itemList->append(new AlbumItemType()); qDebug()<<"5"; itemList->append(new SongItemType()); qDebug()<<"6"<<songlist.size(); SongTree* tree = new SongTree(songlist, itemList); qDebug()<<"7"; SongTreeModel* model = new SongTreeModel(tree); qDebug()<<"8"; view->setModel(model); qDebug()<<"9"; view->show(); }
int C_pro::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QMainWindow::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: on_removed_table_cellClicked((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2]))); break; case 1: on_pushButton_6_clicked(); break; case 2: on_pushButton_5_clicked(); break; case 3: on_pushButton_4_clicked(); break; case 4: on_actionChange_Database_triggered(); break; case 5: on_old_id_textChanged((*reinterpret_cast< QString(*)>(_a[1]))); break; case 6: on_actionExit_triggered(); break; case 7: on_actionShow_Database_triggered(); break; case 8: on_pushButton_3_clicked(); break; case 9: on_id_delete_textChanged((*reinterpret_cast< QString(*)>(_a[1]))); break; case 10: on_pushButton_2_clicked(); break; case 11: on_pushButton_clicked(); break; case 12: on_lineEdit_textChanged((*reinterpret_cast< QString(*)>(_a[1]))); break; default: ; } _id -= 13; } return _id; }
void MainWindow::sTimeout() { _timer->stop(); switch (_synchronizeType) { case STProductUpload: on_pushButton_6_clicked(); break; case STProductDownload: sDownloadProduct(); break; case STOrderUpload: on_pushButton_4_clicked(); break; case STOrderDownload: on_pushButton_7_clicked(); break; case STProductCreate: synchronizeProductCreate(); break; case STOrderInfoBatchGet: orderInfoBatchGet(); break; case STNone: sStart(); break; default: break; } }
int caidan::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: on_pushButton_8_clicked(); break; case 1: on_pushButton_7_clicked(); break; case 2: on_pushButton_6_clicked(); break; case 3: on_pushButton_5_clicked(); break; case 4: on_pushButton_4_clicked(); break; case 5: on_pushButton_3_clicked(); break; case 6: on_pushButton_2_clicked(); break; case 7: on_pushButton_clicked(); break; default: ; } _id -= 8; } return _id; }
int setting::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: on_pushButton_2_clicked(); break; case 1: on_pushButton_3_clicked(); break; case 2: on_pushButton_4_clicked(); break; case 3: on_save_clicked(); break; case 4: on_reSetting_clicked(); break; case 5: on_pushButton_5_clicked(); break; case 6: on_pushButton_6_clicked(); break; case 7: on_pushButton_clicked(); break; case 8: on_pushButton_10_clicked(); break; case 9: on_pushButton_8_clicked(); break; case 10: on_pushButton_9_clicked(); break; default: ; } _id -= 11; } return _id; }
int config_setting::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: sendChar((*reinterpret_cast< QChar(*)>(_a[1]))); break; case 1: sendInt((*reinterpret_cast< int(*)>(_a[1]))); break; case 2: on_cb_alarm_id_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 3: on_cb_alarm_volume_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break; case 4: update_now_string((*reinterpret_cast< QString(*)>(_a[1]))); break; case 5: on_pushButton_minus_released(); break; case 6: on_pushButton_minus_pressed(); break; case 7: on_pushButton_colon_released(); break; case 8: on_pushButton_colon_pressed(); break; case 9: on_pushButton_del_released(); break; case 10: on_pushButton_del_pressed(); break; case 11: on_pushButton_ac_released(); break; case 12: on_pushButton_ac_pressed(); break; case 13: on_pushButton_9_released(); break; case 14: on_pushButton_9_pressed(); break; case 15: on_pushButton_8_released(); break; case 16: on_pushButton_8_pressed(); break; case 17: on_pushButton_7_released(); break; case 18: on_pushButton_7_pressed(); break; case 19: on_pushButton_6_released(); break; case 20: on_pushButton_6_pressed(); break; case 21: on_pushButton_5_released(); break; case 22: on_pushButton_5_pressed(); break; case 23: on_pushButton_4_released(); break; case 24: on_pushButton_4_pressed(); break; case 25: on_pushButton_3_released(); break; case 26: on_pushButton_3_pressed(); break; case 27: on_pushButton_2_released(); break; case 28: on_pushButton_2_pressed(); break; case 29: on_pushButton_1_released(); break; case 30: on_pushButton_1_pressed(); break; case 31: on_pushButton_0_released(); break; case 32: on_pushButton_0_pressed(); break; case 33: on_pushButton_minus_clicked(); break; case 34: on_pushButton_colon_clicked(); break; case 35: on_pushButton_del_clicked(); break; case 36: on_pushButton_ac_clicked(); break; case 37: on_pushButton_9_clicked(); break; case 38: on_pushButton_8_clicked(); break; case 39: on_pushButton_7_clicked(); break; case 40: on_pushButton_6_clicked(); break; case 41: on_pushButton_5_clicked(); break; case 42: on_pushButton_4_clicked(); break; case 43: on_pushButton_3_clicked(); break; case 44: on_pushButton_2_clicked(); break; case 45: on_pushButton_1_clicked(); break; case 46: on_pushButton_0_clicked(); break; case 47: on_button_read_default_settings_clicked(); break; case 48: on_button_modify_settings_clicked(); break; case 49: on_button_return_clicked(); break; default: ; } _id -= 50; } return _id; }
void Formamendweight::mtcKeyPressed(MtcKeyPressedEvent *mtcKeyEvent) { if(!m_editWt.isHidden()) { m_editWt.handleEvent(mtcKeyEvent); return; } if(mtcKeyEvent->isNumKey()) { if(mtcKeyEvent->func()==Key1) { on_pushButton_clicked(); mtcKeyEvent->setKeyType(KC_Number); } if(mtcKeyEvent->func()==Key2) { on_pushButton_2_clicked(); mtcKeyEvent->setKeyType(KC_Number); } if(mtcKeyEvent->func() == Key3) { if(table->currentRow()<0) { ::showWarning(tr("无计重信息,不能进行此操作!"),true); return; } this->hide(); getOrdinaryWidget()->hide(); getMsgWidget()->setTitle(tr("编辑计重信息")); getMsgWidget()->setMessage(tr("是否要删除该车辆信息")); ::showWarning(tr("【确认】键继续,【取消】键返回"),true); int nRlt = getMsgWidget()->doModalShow(); if(nRlt) { this->show(); this->setFocus(); getOrdinaryWidget()->show(); // getOrdinaryWidget()->setFocus(); on_pushButton_3_clicked(); mtcKeyEvent->setKeyType(KC_Number); } else { this->show(); this->setFocus(); getOrdinaryWidget()->show(); // getOrdinaryWidget()->setFocus(); } } if(mtcKeyEvent->func()==Key6) { if(table->currentRow()<0) { ::showWarning(tr("无计重信息,不能进行此操作!"),true); return; } this->hide(); getOrdinaryWidget()->hide(); getMsgWidget()->setTitle(tr("编辑计重信息")); getMsgWidget()->setMessage(tr("是否要清空所有车辆信息")); ::showWarning(tr("【确认】键继续,【取消】键返回"),true); int nRlt = getMsgWidget()->doModalShow(); if(nRlt) { this->show(); this->setFocus(); getOrdinaryWidget()->show(); on_pushButton_6_clicked(); mtcKeyEvent->setKeyType(KC_Number); FormWtInfo *Pwt=NULL; getWidgetByType(emFormWtInfo, (QWidget**)&Pwt); Pwt->ClearAll(); } else { this->show(); this->setFocus(); getOrdinaryWidget()->show(); } } } if(mtcKeyEvent->isFuncKey()) { handleUpAndDown(mtcKeyEvent); if(mtcKeyEvent->func() == KeyConfirm) { setResult(1); } if(mtcKeyEvent->func() ==KeyEsc) { setResult(0); } } }