/* * Error reporting dialog. */ void apperror(const char *errstr) { if (! errstr) errstr = "Unspecified error"; myMessageBox(0, errstr, "Graphics Library Error", MB_TASKMODAL | MB_ICONSTOP | MB_OK | TopmostDialogs); exitapp(); }
int Contacts::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { switch (_id) { case 0: on_actionButton_clicked(); break; case 1: on_listWidget_itemClicked((*reinterpret_cast< QListWidgetItem*(*)>(_a[1]))); break; case 2: on_backButton_clicked(); break; case 3: addContact(); break; case 4: deleteContact(); break; case 5: loadPhoneContacts(); break; case 6: editContact(); break; case 7: aboutapp(); break; case 8: exitapp(); break; default: ; } _id -= 9; } return _id; }