bool QDialogButtons::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: clicked((Button)(*((Button*)static_QUType_ptr.get(_o+1)))); break; case 1: acceptClicked(); break; case 2: rejectClicked(); break; case 3: helpClicked(); break; case 4: applyClicked(); break; case 5: allClicked(); break; case 6: retryClicked(); break; case 7: ignoreClicked(); break; case 8: abortClicked(); break; default: return QWidget::qt_emit(_id,_o); } return TRUE; }
void QDialogButtons::handleClicked() { const QObject *s = sender(); if(!s) return; for(QMapIterator<QDialogButtons::Button, QWidget *> it = d->buttons.begin(); it != d->buttons.end(); ++it) { if(it.data() == s) { emit clicked((QDialogButtons::Button)it.key()); switch(it.key()) { case Retry: emit retryClicked(); break; case Ignore: emit ignoreClicked(); break; case Abort: emit abortClicked(); break; case All: emit allClicked(); break; case Accept: emit acceptClicked(); break; case Reject: emit rejectClicked(); break; case Apply: emit applyClicked(); break; case Help: emit helpClicked(); break; default: break; } return; } } }