Ejemplo n.º 1
0
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: update((*reinterpret_cast< QString(*)>(_a[1]))); break;
        case 1: on_tabWidget_currentChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: on_minusBTN_clicked(); break;
        case 3: on_plusBTN_clicked(); break;
        case 4: on_toolButton_clicked(); break;
        case 5: on_nextBTN_clicked(); break;
        case 6: on_prevBTN_clicked(); break;
        case 7: on_saveLayoutBTN_clicked(); break;
        case 8: on_reprocBTN_clicked(); break;
        case 9: on_whiteBTN_clicked((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 10: on_blackBTN_clicked((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 11: on_openfileBTN_clicked(); break;
        case 12: mousePressEvent((*reinterpret_cast< QMouseEvent*(*)>(_a[1]))); break;
        case 13: mouseMoveEvent((*reinterpret_cast< QMouseEvent*(*)>(_a[1]))); break;
        case 14: valueChangeRequest((*reinterpret_cast< QPoint(*)>(_a[1]))); break;
        case 15: showHelp(); break;
        default: ;
        }
        _id -= 16;
    }
    return _id;
}
Ejemplo n.º 2
0
void ControlDoublePrivate::set(double value, QObject* pSender) {
    // If the behavior says to ignore the set, ignore it.
    QSharedPointer<ControlNumericBehavior> pBehavior = m_pBehavior;
    if (!pBehavior.isNull() && !pBehavior->setFilter(&value)) {
        return;
    }
    if (m_confirmRequired) {
        emit(valueChangeRequest(value));
    } else {
        setInner(value, pSender);
    }
}