Ejemplo n.º 1
0
int Elina_Labels::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: onTypeChar(); break;
        case 1: rowClicked((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 2: next1Clicked(); break;
        case 3: insertClicked(); break;
        case 4: removeClicked(); break;
        case 5: rewrapClicked(); break;
        case 6: rowClickedSel((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 7: Scanned(); break;
        case 8: setSpinBoxFormat(); break;
        case 9: clearLineEdit(); break;
        case 10: copy_machine(); break;
        case 11: copy_middledate(); break;
        case 12: upClicked(); break;
        case 13: downClicked(); break;
        case 14: checkClicked(); break;
        case 15: startread(); break;
        case 16: weight_check(); break;
        case 17: rowClickedSelProd((*reinterpret_cast< const QModelIndex(*)>(_a[1]))); break;
        case 18: timer1_v(); break;
        case 19: timer2_v(); break;
        case 20: dummycheckpressed(); break;
        default: ;
        }
        _id -= 21;
    }
    return _id;
}
Ejemplo n.º 2
0
void EditorScreen::buttonClicked(int button)
{
  int entity = CalculatorState::instance().printableEntityByButton(button);

  if (entity >= 0) // Printable entity
    writeEntity(entity);
  else if (cursorVisible())
    switch (button)
    {
    case Button_Up: moveUp(); break;
    case Button_Down: moveDown(); break;
    case Button_Left: moveLeft(); break;
    case Button_Right: moveRight(); break;
    case Button_Del: deleteString(); break;
    case Button_Ins: insertClicked(); break;
    default:;
    }
}
Ejemplo n.º 3
0
void GlassWidget::insertData()
{
    emit insertClicked(gw_name_label->text());
}