Ejemplo n.º 1
0
int qalq_widget::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_sqrt_clicked(); break;
        case 1: on_times_clicked(); break;
        case 2: on_div_clicked(); break;
        case 3: on_clear_clicked(); break;
        case 4: on_seven_clicked(); break;
        case 5: on_eight_clicked(); break;
        case 6: on_nine_clicked(); break;
        case 7: on_minus_clicked(); break;
        case 8: on_four_clicked(); break;
        case 9: on_five_clicked(); break;
        case 10: on_six_clicked(); break;
        case 11: on_plus_clicked(); break;
        case 12: on_one_clicked(); break;
        case 13: on_two_clicked(); break;
        case 14: on_three_clicked(); break;
        case 15: on_equals_clicked(); break;
        case 16: on_zero_clicked(); break;
        case 17: on_point_clicked(); break;
        default: ;
        }
        _id -= 18;
    }
    return _id;
}
Ejemplo n.º 2
0
void MainWindow::on_startAcquisition_clicked()
{
    // Clear the CapSense model.
    on_clear_clicked();

    /* Start acquisition */
    controller->startAcquisition(ui->sendDataSynchronously->isChecked());

    /* Start timers */
    controller->startTimer();
    timerAcquisition->start();
}