//Auto-generated by /usr/bin/smokegen. DO NOT EDIT.
#include <kdeui_includes.h>
#include <typeinfo>

#include <smoke.h>
#include <kdeui_smoke.h>

class __internal_SmokeClass {};

namespace __smokekdeui {

class x_KRestrictedLine : public KRestrictedLine, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRestrictedLine*>(this))) {
            const QMetaObject* xret = ((const x_KRestrictedLine*)this)->KRestrictedLine::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KRestrictedLine*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRestrictedLine*>(this))) {
            void* xret = this->KRestrictedLine::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KRestrictedLine::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KRestrictedLine::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KRestrictedLine::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KRestrictedLine::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRestrictedLine*>(this))) {
            int xret = this->KRestrictedLine::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KRestrictedLine* KRestrictedLine(QWidget*)
        x_KRestrictedLine* xret = new x_KRestrictedLine((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRestrictedLine(QWidget* x1) : KRestrictedLine(x1) {}
    void x_9(Smoke::Stack x) {
        // void setValidChars(const QString&)
        this->KRestrictedLine::setValidChars(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_10(Smoke::Stack x) {
        // QString validChars() const
        QString xret = ((const x_KRestrictedLine*)this)->KRestrictedLine::validChars();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_11(Smoke::Stack x) {
        // void invalidChar(int)
        this->KRestrictedLine::invalidChar((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // void keyPressEvent(QKeyEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRestrictedLine*>(this))) {
            this->KRestrictedLine::keyPressEvent((QKeyEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->keyPressEvent((QKeyEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_13(Smoke::Stack x) {
        // void inputMethodEvent(QInputMethodEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRestrictedLine*>(this))) {
            this->KRestrictedLine::inputMethodEvent((QInputMethodEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->inputMethodEvent((QInputMethodEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_14(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KRestrictedLine::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_15(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KRestrictedLine::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_16(Smoke::Stack x) {
        // KRestrictedLine* KRestrictedLine()
        x_KRestrictedLine* xret = new x_KRestrictedLine((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_17(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KRestrictedLine::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4415, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KRestrictedLine::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4416, (void*)this, x)) return (void*)x[0].s_class;
        return this->KRestrictedLine::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4421, (void*)this, x)) return (int)x[0].s_int;
        return this->KRestrictedLine::qt_metacall(x1, x2, x3);
    }
    virtual void setCompletionMode(KGlobalSettings::Completion x1) {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(2848, (void*)this, x)) return;
        this->KLineEdit::setCompletionMode(x1);
    }
    virtual void setContextMenuEnabled(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(2850, (void*)this, x)) return;
        this->KLineEdit::setContextMenuEnabled(x1);
    }
    virtual void setCompletionObject(KCompletion* x1, bool x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_bool = x2;
        if (this->_binding->callMethod(2857, (void*)this, x)) return;
        this->KLineEdit::setCompletionObject(x1, x2);
    }
    virtual void copy() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2858, (void*)this, x)) return;
        this->KLineEdit::copy();
    }
    virtual void setReadOnly(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(2879, (void*)this, x)) return;
        this->KLineEdit::setReadOnly(x1);
    }
    virtual void setCompletedText(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2881, (void*)this, x)) return;
        this->KLineEdit::setCompletedText(x1);
    }
    virtual void clear() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(2883, (void*)this, x)) return;
        this->KLineEdit::clear();
    }
    virtual void setText(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2885, (void*)this, x)) return;
        this->KLineEdit::setText(x1);
    }
    virtual void makeCompletion(const QString& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(2888, (void*)this, x)) return;
        this->KLineEdit::makeCompletion(x1);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2890, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KLineEdit::event(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2891, (void*)this, x)) return;
        this->KLineEdit::resizeEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4426, (void*)this, x)) return;
        this->KRestrictedLine::keyPressEvent(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2893, (void*)this, x)) return;
        this->KLineEdit::mousePressEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2894, (void*)this, x)) return;
        this->KLineEdit::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2895, (void*)this, x)) return;
        this->KLineEdit::mouseDoubleClickEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2896, (void*)this, x)) return;
        this->KLineEdit::contextMenuEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2898, (void*)this, x)) return;
        this->KLineEdit::dropEvent(x1);
    }
    virtual void setCompletedText(const QString& x1, bool x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_bool = x2;
        if (this->_binding->callMethod(2899, (void*)this, x)) return;
        this->KLineEdit::setCompletedText(x1, x2);
    }
    virtual void create(unsigned long x1, bool x2, bool x3) {
        Smoke::StackItem x[4];
        x[1].s_ulong = x1;
        x[2].s_bool = x2;
        x[3].s_bool = x3;
        if (this->_binding->callMethod(2901, (void*)this, x)) return;
        this->KLineEdit::create(x1, x2, x3);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2903, (void*)this, x)) return;
        this->KLineEdit::paintEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2904, (void*)this, x)) return;
        this->KLineEdit::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(2905, (void*)this, x)) return;
        this->KLineEdit::focusOutEvent(x1);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7790, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7505, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QLineEdit::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7506, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QLineEdit::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7507, (void*)this, x)) return;
        this->QLineEdit::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7800, (void*)this, x)) return;
        this->QWidget::wheelEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7508, (void*)this, x)) return;
        this->QLineEdit::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7509, (void*)this, x)) return;
        this->QLineEdit::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7510, (void*)this, x)) return;
        this->QLineEdit::dragLeaveEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7818, (void*)this, x)) return;
        this->QWidget::showEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7819, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7511, (void*)this, x)) return;
        this->QLineEdit::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4427, (void*)this, x)) return;
        this->KRestrictedLine::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7513, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QLineEdit::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    virtual void setHandleSignals(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(1069, (void*)this, x)) return;
        this->KCompletionBase::setHandleSignals(x1);
    }
    virtual void setCompletedItems(const QStringList& x1, bool x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_bool = x2;
        if (this->_binding->callMethod(2882, (void*)this, x)) return;
        this->KLineEdit::setCompletedItems(x1, x2);
    }
    ~x_KRestrictedLine() { this->_binding->deleted(160, (void*)this); }
};
void xcall_KRestrictedLine(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KRestrictedLine *xself = (x_KRestrictedLine*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KRestrictedLine::x_3(args);	break;
        case 4: x_KRestrictedLine::x_4(args);	break;
        case 5: x_KRestrictedLine::x_5(args);	break;
        case 6: x_KRestrictedLine::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KRestrictedLine::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: x_KRestrictedLine::x_14(args);	break;
        case 15: x_KRestrictedLine::x_15(args);	break;
        case 16: x_KRestrictedLine::x_16(args);	break;
        case 17: x_KRestrictedLine::x_17(args);	break;
        case 18: delete (KRestrictedLine*)xself;	break;
    }
}
class x_KRichTextEdit : public KRichTextEdit, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextEdit*>(this))) {
            const QMetaObject* xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KRichTextEdit*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextEdit*>(this))) {
            void* xret = this->KRichTextEdit::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KRichTextEdit::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KRichTextEdit::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KRichTextEdit::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KRichTextEdit::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextEdit*>(this))) {
            int xret = this->KRichTextEdit::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KRichTextEdit* KRichTextEdit(const QString&, QWidget*)
        x_KRichTextEdit* xret = new x_KRichTextEdit(*(const QString*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRichTextEdit(const QString& x1, QWidget* x2) : KRichTextEdit(x1, x2) {}
    static void x_9(Smoke::Stack x) {
        // KRichTextEdit* KRichTextEdit(QWidget*)
        x_KRichTextEdit* xret = new x_KRichTextEdit((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRichTextEdit(QWidget* x1) : KRichTextEdit(x1) {}
    void x_10(Smoke::Stack x) {
        // void enableRichTextMode()
        this->KRichTextEdit::enableRichTextMode();
        (void)x; // noop (for compiler warning)
    }
    void x_11(Smoke::Stack x) {
        // KRichTextEdit::Mode textMode() const
        KRichTextEdit::Mode xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::textMode();
        x[0].s_enum = xret;
    }
    void x_12(Smoke::Stack x) {
        // QString textOrHtml() const
        QString xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::textOrHtml();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_13(Smoke::Stack x) {
        // void setTextOrHtml(const QString&)
        this->KRichTextEdit::setTextOrHtml(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // QString currentLinkText() const
        QString xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::currentLinkText();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_15(Smoke::Stack x) {
        // QString currentLinkUrl() const
        QString xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::currentLinkUrl();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_16(Smoke::Stack x) {
        // void selectLinkText(QTextCursor*) const
        ((const x_KRichTextEdit*)this)->KRichTextEdit::selectLinkText((QTextCursor*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_17(Smoke::Stack x) {
        // void selectLinkText() const
        ((const x_KRichTextEdit*)this)->KRichTextEdit::selectLinkText();
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // void updateLink(const QString&, const QString&)
        this->KRichTextEdit::updateLink(*(const QString*)x[1].s_class,*(const QString*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_19(Smoke::Stack x) {
        // bool canIndentList() const
        bool xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::canIndentList();
        x[0].s_bool = xret;
    }
    void x_20(Smoke::Stack x) {
        // bool canDedentList() const
        bool xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::canDedentList();
        x[0].s_bool = xret;
    }
    void x_21(Smoke::Stack x) {
        // void alignLeft()
        this->KRichTextEdit::alignLeft();
        (void)x; // noop (for compiler warning)
    }
    void x_22(Smoke::Stack x) {
        // void alignCenter()
        this->KRichTextEdit::alignCenter();
        (void)x; // noop (for compiler warning)
    }
    void x_23(Smoke::Stack x) {
        // void alignRight()
        this->KRichTextEdit::alignRight();
        (void)x; // noop (for compiler warning)
    }
    void x_24(Smoke::Stack x) {
        // void alignJustify()
        this->KRichTextEdit::alignJustify();
        (void)x; // noop (for compiler warning)
    }
    void x_25(Smoke::Stack x) {
        // void makeRightToLeft()
        this->KRichTextEdit::makeRightToLeft();
        (void)x; // noop (for compiler warning)
    }
    void x_26(Smoke::Stack x) {
        // void makeLeftToRight()
        this->KRichTextEdit::makeLeftToRight();
        (void)x; // noop (for compiler warning)
    }
    void x_27(Smoke::Stack x) {
        // void setListStyle(int)
        this->KRichTextEdit::setListStyle((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_28(Smoke::Stack x) {
        // void indentListMore()
        this->KRichTextEdit::indentListMore();
        (void)x; // noop (for compiler warning)
    }
    void x_29(Smoke::Stack x) {
        // void indentListLess()
        this->KRichTextEdit::indentListLess();
        (void)x; // noop (for compiler warning)
    }
    void x_30(Smoke::Stack x) {
        // void setFontFamily(const QString&)
        this->KRichTextEdit::setFontFamily(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_31(Smoke::Stack x) {
        // void setFontSize(int)
        this->KRichTextEdit::setFontSize((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_32(Smoke::Stack x) {
        // void setFont(const QFont&)
        this->KRichTextEdit::setFont(*(const QFont*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_33(Smoke::Stack x) {
        // void setTextBold(bool)
        this->KRichTextEdit::setTextBold((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_34(Smoke::Stack x) {
        // void setTextItalic(bool)
        this->KRichTextEdit::setTextItalic((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_35(Smoke::Stack x) {
        // void setTextUnderline(bool)
        this->KRichTextEdit::setTextUnderline((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_36(Smoke::Stack x) {
        // void setTextStrikeOut(bool)
        this->KRichTextEdit::setTextStrikeOut((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_37(Smoke::Stack x) {
        // void setTextForegroundColor(const QColor&)
        this->KRichTextEdit::setTextForegroundColor(*(const QColor*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_38(Smoke::Stack x) {
        // void setTextBackgroundColor(const QColor&)
        this->KRichTextEdit::setTextBackgroundColor(*(const QColor*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_39(Smoke::Stack x) {
        // void insertHorizontalRule()
        this->KRichTextEdit::insertHorizontalRule();
        (void)x; // noop (for compiler warning)
    }
    void x_40(Smoke::Stack x) {
        // void switchToPlainText()
        this->KRichTextEdit::switchToPlainText();
        (void)x; // noop (for compiler warning)
    }
    void x_41(Smoke::Stack x) {
        // QString toCleanHtml() const
        QString xret = ((const x_KRichTextEdit*)this)->KRichTextEdit::toCleanHtml();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_42(Smoke::Stack x) {
        // void setTextSuperScript(bool)
        this->KRichTextEdit::setTextSuperScript((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_43(Smoke::Stack x) {
        // void setTextSubScript(bool)
        this->KRichTextEdit::setTextSubScript((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_44(Smoke::Stack x) {
        // void insertPlainTextImplementation()
        this->KRichTextEdit::insertPlainTextImplementation();
        (void)x; // noop (for compiler warning)
    }
    void x_45(Smoke::Stack x) {
        // void textModeChanged(KRichTextEdit::Mode)
        this->KRichTextEdit::textModeChanged((KRichTextEdit::Mode)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_46(Smoke::Stack x) {
        // void selectionFinished()
        this->KRichTextEdit::selectionFinished();
        (void)x; // noop (for compiler warning)
    }
    void x_47(Smoke::Stack x) {
        // virtual void keyPressEvent(QKeyEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextEdit*>(this))) {
            this->KRichTextEdit::keyPressEvent((QKeyEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->keyPressEvent((QKeyEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_48(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KRichTextEdit::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_49(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KRichTextEdit::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_50(Smoke::Stack x) {
        // KRichTextEdit* KRichTextEdit(const QString&)
        x_KRichTextEdit* xret = new x_KRichTextEdit(*(const QString*)x[1].s_class,(QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_51(Smoke::Stack x) {
        // KRichTextEdit* KRichTextEdit()
        x_KRichTextEdit* xret = new x_KRichTextEdit((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_52(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KRichTextEdit::staticMetaObject;
    }
    static void x_53(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextEdit::Plain;
    }
    static void x_54(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextEdit::Rich;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4433, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KRichTextEdit::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4434, (void*)this, x)) return (void*)x[0].s_class;
        return this->KRichTextEdit::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4439, (void*)this, x)) return (int)x[0].s_int;
        return this->KRichTextEdit::qt_metacall(x1, x2, x3);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4479, (void*)this, x)) return;
        this->KRichTextEdit::keyPressEvent(x1);
    }
    virtual void setReadOnly(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(5816, (void*)this, x)) return;
        this->KTextEdit::setReadOnly(x1);
    }
    virtual void createHighlighter() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(5821, (void*)this, x)) return;
        this->KTextEdit::createHighlighter();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5852, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KTextEdit::event(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5853, (void*)this, x)) return;
        this->KTextEdit::paintEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5854, (void*)this, x)) return;
        this->KTextEdit::focusOutEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5856, (void*)this, x)) return;
        this->KTextEdit::focusInEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5857, (void*)this, x)) return;
        this->KTextEdit::wheelEvent(x1);
    }
    virtual void deleteWordBack() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(5858, (void*)this, x)) return;
        this->KTextEdit::deleteWordBack();
    }
    virtual void deleteWordForward() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(5859, (void*)this, x)) return;
        this->KTextEdit::deleteWordForward();
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5860, (void*)this, x)) return;
        this->KTextEdit::contextMenuEvent(x1);
    }
    virtual QVariant loadResource(int x1, const QUrl& x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(7697, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTextEdit::loadResource(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7698, (void*)this, x)) return;
        this->QTextEdit::timerEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7699, (void*)this, x)) return;
        this->QTextEdit::keyReleaseEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7700, (void*)this, x)) return;
        this->QTextEdit::resizeEvent(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7701, (void*)this, x)) return;
        this->QTextEdit::mousePressEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7702, (void*)this, x)) return;
        this->QTextEdit::mouseMoveEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7703, (void*)this, x)) return;
        this->QTextEdit::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7704, (void*)this, x)) return;
        this->QTextEdit::mouseDoubleClickEvent(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7705, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QTextEdit::focusNextPrevChild(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7706, (void*)this, x)) return;
        this->QTextEdit::dragEnterEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7707, (void*)this, x)) return;
        this->QTextEdit::dragLeaveEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7708, (void*)this, x)) return;
        this->QTextEdit::dragMoveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7709, (void*)this, x)) return;
        this->QTextEdit::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7711, (void*)this, x)) return;
        this->QTextEdit::showEvent(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7712, (void*)this, x)) return;
        this->QTextEdit::changeEvent(x1);
    }
    virtual QMimeData* createMimeDataFromSelection() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7713, (void*)this, x)) return (QMimeData*)x[0].s_class;
        return this->QTextEdit::createMimeDataFromSelection();
    }
    virtual bool canInsertFromMimeData(const QMimeData* x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7714, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QTextEdit::canInsertFromMimeData(x1);
    }
    virtual void insertFromMimeData(const QMimeData* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7715, (void*)this, x)) return;
        this->QTextEdit::insertFromMimeData(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7716, (void*)this, x)) return;
        this->QTextEdit::inputMethodEvent(x1);
    }
    virtual void scrollContentsBy(int x1, int x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_int = x2;
        if (this->_binding->callMethod(7718, (void*)this, x)) return;
        this->QTextEdit::scrollContentsBy(x1, x2);
    }
    virtual bool viewportEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7309, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractScrollArea::viewportEvent(x1);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7790, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7308, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractScrollArea::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7307, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractScrollArea::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7819, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7717, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTextEdit::inputMethodQuery(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 250: //KRichTextEdit::Mode
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KRichTextEdit::Mode;
                    break;
                case Smoke::EnumDelete:
                    delete (KRichTextEdit::Mode*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KRichTextEdit::Mode*)xdata = (KRichTextEdit::Mode)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KRichTextEdit::Mode*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KRichTextEdit() { this->_binding->deleted(161, (void*)this); }
};
void xenum_KRichTextEdit(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KRichTextEdit::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KRichTextEdit(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KRichTextEdit *xself = (x_KRichTextEdit*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KRichTextEdit::x_3(args);	break;
        case 4: x_KRichTextEdit::x_4(args);	break;
        case 5: x_KRichTextEdit::x_5(args);	break;
        case 6: x_KRichTextEdit::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KRichTextEdit::x_8(args);	break;
        case 9: x_KRichTextEdit::x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: xself->x_27(args);	break;
        case 28: xself->x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: xself->x_30(args);	break;
        case 31: xself->x_31(args);	break;
        case 32: xself->x_32(args);	break;
        case 33: xself->x_33(args);	break;
        case 34: xself->x_34(args);	break;
        case 35: xself->x_35(args);	break;
        case 36: xself->x_36(args);	break;
        case 37: xself->x_37(args);	break;
        case 38: xself->x_38(args);	break;
        case 39: xself->x_39(args);	break;
        case 40: xself->x_40(args);	break;
        case 41: xself->x_41(args);	break;
        case 42: xself->x_42(args);	break;
        case 43: xself->x_43(args);	break;
        case 44: xself->x_44(args);	break;
        case 45: xself->x_45(args);	break;
        case 46: xself->x_46(args);	break;
        case 47: xself->x_47(args);	break;
        case 48: x_KRichTextEdit::x_48(args);	break;
        case 49: x_KRichTextEdit::x_49(args);	break;
        case 50: x_KRichTextEdit::x_50(args);	break;
        case 51: x_KRichTextEdit::x_51(args);	break;
        case 52: x_KRichTextEdit::x_52(args);	break;
        case 53: x_KRichTextEdit::x_53(args);	break;
        case 54: x_KRichTextEdit::x_54(args);	break;
        case 55: delete (KRichTextEdit*)xself;	break;
    }
}
class x_KRichTextWidget : public KRichTextWidget, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextWidget*>(this))) {
            const QMetaObject* xret = ((const x_KRichTextWidget*)this)->KRichTextWidget::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KRichTextWidget*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextWidget*>(this))) {
            void* xret = this->KRichTextWidget::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KRichTextWidget::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KRichTextWidget::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KRichTextWidget::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KRichTextWidget::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextWidget*>(this))) {
            int xret = this->KRichTextWidget::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KRichTextWidget* KRichTextWidget(QWidget*)
        x_KRichTextWidget* xret = new x_KRichTextWidget((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRichTextWidget(QWidget* x1) : KRichTextWidget(x1) {}
    static void x_9(Smoke::Stack x) {
        // KRichTextWidget* KRichTextWidget(const QString&, QWidget*)
        x_KRichTextWidget* xret = new x_KRichTextWidget(*(const QString*)x[1].s_class,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRichTextWidget(const QString& x1, QWidget* x2) : KRichTextWidget(x1, x2) {}
    void x_10(Smoke::Stack x) {
        // virtual void createActions(KActionCollection*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextWidget*>(this))) {
            this->KRichTextWidget::createActions((KActionCollection*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->createActions((KActionCollection*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_11(Smoke::Stack x) {
        // void setRichTextSupport(const QFlags<KRichTextWidget::RichTextSupportValues>&)
        this->KRichTextWidget::setRichTextSupport(*(const QFlags<KRichTextWidget::RichTextSupportValues>*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // QFlags<KRichTextWidget::RichTextSupportValues> richTextSupport() const
        QFlags<KRichTextWidget::RichTextSupportValues> xret = ((const x_KRichTextWidget*)this)->KRichTextWidget::richTextSupport();
        x[0].s_uint = (uint)xret;
    }
    void x_13(Smoke::Stack x) {
        // void updateActionStates()
        this->KRichTextWidget::updateActionStates();
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // void setActionsEnabled(bool)
        this->KRichTextWidget::setActionsEnabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // virtual void mouseReleaseEvent(QMouseEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRichTextWidget*>(this))) {
            this->KRichTextWidget::mouseReleaseEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->mouseReleaseEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_16(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KRichTextWidget::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_17(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KRichTextWidget::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_18(Smoke::Stack x) {
        // KRichTextWidget* KRichTextWidget(const QString&)
        x_KRichTextWidget* xret = new x_KRichTextWidget(*(const QString*)x[1].s_class,(QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_19(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KRichTextWidget::staticMetaObject;
    }
    static void x_20(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::DisableRichText;
    }
    static void x_21(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportBold;
    }
    static void x_22(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportItalic;
    }
    static void x_23(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportUnderline;
    }
    static void x_24(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportStrikeOut;
    }
    static void x_25(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportFontFamily;
    }
    static void x_26(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportFontSize;
    }
    static void x_27(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportTextForegroundColor;
    }
    static void x_28(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportTextBackgroundColor;
    }
    static void x_29(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::FullTextFormattingSupport;
    }
    static void x_30(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportChangeListStyle;
    }
    static void x_31(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportIndentLists;
    }
    static void x_32(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportDedentLists;
    }
    static void x_33(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::FullListSupport;
    }
    static void x_34(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportAlignment;
    }
    static void x_35(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportRuleLine;
    }
    static void x_36(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportHyperlinks;
    }
    static void x_37(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportFormatPainting;
    }
    static void x_38(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportToPlainText;
    }
    static void x_39(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportSuperScriptAndSubScript;
    }
    static void x_40(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::SupportDirection;
    }
    static void x_41(Smoke::Stack x) {
        x[0].s_enum = (long)KRichTextWidget::FullSupport;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4488, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KRichTextWidget::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4489, (void*)this, x)) return (void*)x[0].s_class;
        return this->KRichTextWidget::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4494, (void*)this, x)) return (int)x[0].s_int;
        return this->KRichTextWidget::qt_metacall(x1, x2, x3);
    }
    virtual void createActions(KActionCollection* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4497, (void*)this, x)) return;
        this->KRichTextWidget::createActions(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4502, (void*)this, x)) return;
        this->KRichTextWidget::mouseReleaseEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4479, (void*)this, x)) return;
        this->KRichTextEdit::keyPressEvent(x1);
    }
    virtual void setReadOnly(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(5816, (void*)this, x)) return;
        this->KTextEdit::setReadOnly(x1);
    }
    virtual void createHighlighter() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(5821, (void*)this, x)) return;
        this->KTextEdit::createHighlighter();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5852, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KTextEdit::event(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5853, (void*)this, x)) return;
        this->KTextEdit::paintEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5854, (void*)this, x)) return;
        this->KTextEdit::focusOutEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5856, (void*)this, x)) return;
        this->KTextEdit::focusInEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5857, (void*)this, x)) return;
        this->KTextEdit::wheelEvent(x1);
    }
    virtual void deleteWordBack() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(5858, (void*)this, x)) return;
        this->KTextEdit::deleteWordBack();
    }
    virtual void deleteWordForward() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(5859, (void*)this, x)) return;
        this->KTextEdit::deleteWordForward();
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(5860, (void*)this, x)) return;
        this->KTextEdit::contextMenuEvent(x1);
    }
    virtual QVariant loadResource(int x1, const QUrl& x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(7697, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTextEdit::loadResource(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7698, (void*)this, x)) return;
        this->QTextEdit::timerEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7699, (void*)this, x)) return;
        this->QTextEdit::keyReleaseEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7700, (void*)this, x)) return;
        this->QTextEdit::resizeEvent(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7701, (void*)this, x)) return;
        this->QTextEdit::mousePressEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7702, (void*)this, x)) return;
        this->QTextEdit::mouseMoveEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7704, (void*)this, x)) return;
        this->QTextEdit::mouseDoubleClickEvent(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7705, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QTextEdit::focusNextPrevChild(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7706, (void*)this, x)) return;
        this->QTextEdit::dragEnterEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7707, (void*)this, x)) return;
        this->QTextEdit::dragLeaveEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7708, (void*)this, x)) return;
        this->QTextEdit::dragMoveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7709, (void*)this, x)) return;
        this->QTextEdit::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7711, (void*)this, x)) return;
        this->QTextEdit::showEvent(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7712, (void*)this, x)) return;
        this->QTextEdit::changeEvent(x1);
    }
    virtual QMimeData* createMimeDataFromSelection() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7713, (void*)this, x)) return (QMimeData*)x[0].s_class;
        return this->QTextEdit::createMimeDataFromSelection();
    }
    virtual bool canInsertFromMimeData(const QMimeData* x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7714, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QTextEdit::canInsertFromMimeData(x1);
    }
    virtual void insertFromMimeData(const QMimeData* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7715, (void*)this, x)) return;
        this->QTextEdit::insertFromMimeData(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7716, (void*)this, x)) return;
        this->QTextEdit::inputMethodEvent(x1);
    }
    virtual void scrollContentsBy(int x1, int x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_int = x2;
        if (this->_binding->callMethod(7718, (void*)this, x)) return;
        this->QTextEdit::scrollContentsBy(x1, x2);
    }
    virtual bool viewportEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7309, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractScrollArea::viewportEvent(x1);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7790, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7308, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractScrollArea::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7307, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractScrollArea::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7819, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7717, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QTextEdit::inputMethodQuery(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 252: //KRichTextWidget::RichTextSupportValues
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KRichTextWidget::RichTextSupportValues;
                    break;
                case Smoke::EnumDelete:
                    delete (KRichTextWidget::RichTextSupportValues*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KRichTextWidget::RichTextSupportValues*)xdata = (KRichTextWidget::RichTextSupportValues)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KRichTextWidget::RichTextSupportValues*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KRichTextWidget() { this->_binding->deleted(162, (void*)this); }
};
void xenum_KRichTextWidget(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KRichTextWidget::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KRichTextWidget(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KRichTextWidget *xself = (x_KRichTextWidget*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KRichTextWidget::x_3(args);	break;
        case 4: x_KRichTextWidget::x_4(args);	break;
        case 5: x_KRichTextWidget::x_5(args);	break;
        case 6: x_KRichTextWidget::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KRichTextWidget::x_8(args);	break;
        case 9: x_KRichTextWidget::x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: x_KRichTextWidget::x_16(args);	break;
        case 17: x_KRichTextWidget::x_17(args);	break;
        case 18: x_KRichTextWidget::x_18(args);	break;
        case 19: x_KRichTextWidget::x_19(args);	break;
        case 20: x_KRichTextWidget::x_20(args);	break;
        case 21: x_KRichTextWidget::x_21(args);	break;
        case 22: x_KRichTextWidget::x_22(args);	break;
        case 23: x_KRichTextWidget::x_23(args);	break;
        case 24: x_KRichTextWidget::x_24(args);	break;
        case 25: x_KRichTextWidget::x_25(args);	break;
        case 26: x_KRichTextWidget::x_26(args);	break;
        case 27: x_KRichTextWidget::x_27(args);	break;
        case 28: x_KRichTextWidget::x_28(args);	break;
        case 29: x_KRichTextWidget::x_29(args);	break;
        case 30: x_KRichTextWidget::x_30(args);	break;
        case 31: x_KRichTextWidget::x_31(args);	break;
        case 32: x_KRichTextWidget::x_32(args);	break;
        case 33: x_KRichTextWidget::x_33(args);	break;
        case 34: x_KRichTextWidget::x_34(args);	break;
        case 35: x_KRichTextWidget::x_35(args);	break;
        case 36: x_KRichTextWidget::x_36(args);	break;
        case 37: x_KRichTextWidget::x_37(args);	break;
        case 38: x_KRichTextWidget::x_38(args);	break;
        case 39: x_KRichTextWidget::x_39(args);	break;
        case 40: x_KRichTextWidget::x_40(args);	break;
        case 41: x_KRichTextWidget::x_41(args);	break;
        case 42: delete (KRichTextWidget*)xself;	break;
    }
}
class x_KRockerGesture : public KRockerGesture {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    static void x_1(Smoke::Stack x) {
        // KRockerGesture* KRockerGesture()
        x_KRockerGesture* xret = new x_KRockerGesture();
        x[0].s_class = (void*)xret;
    }
    explicit x_KRockerGesture() : KRockerGesture() {}
    static void x_2(Smoke::Stack x) {
        // KRockerGesture* KRockerGesture(Qt::MouseButton, Qt::MouseButton)
        x_KRockerGesture* xret = new x_KRockerGesture((Qt::MouseButton)x[1].s_enum,(Qt::MouseButton)x[2].s_enum);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRockerGesture(Qt::MouseButton x1, Qt::MouseButton x2) : KRockerGesture(x1, x2) {}
    static void x_3(Smoke::Stack x) {
        // KRockerGesture* KRockerGesture(const QString&)
        x_KRockerGesture* xret = new x_KRockerGesture(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRockerGesture(const QString& x1) : KRockerGesture(x1) {}
    static void x_4(Smoke::Stack x) {
        // KRockerGesture* KRockerGesture(const KRockerGesture&)
        x_KRockerGesture* xret = new x_KRockerGesture(*(const KRockerGesture*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRockerGesture(const KRockerGesture& x1) : KRockerGesture(x1) {}
    void x_5(Smoke::Stack x) {
        // void setButtons(Qt::MouseButton, Qt::MouseButton)
        this->KRockerGesture::setButtons((Qt::MouseButton)x[1].s_enum,(Qt::MouseButton)x[2].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_6(Smoke::Stack x) {
        // void getButtons(Qt::MouseButton*, Qt::MouseButton*) const
        ((const x_KRockerGesture*)this)->KRockerGesture::getButtons((Qt::MouseButton*)x[1].s_class,(Qt::MouseButton*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_7(Smoke::Stack x) {
        // QString rockerName() const
        QString xret = ((const x_KRockerGesture*)this)->KRockerGesture::rockerName();
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_8(Smoke::Stack x) {
        // static QString mouseButtonName(Qt::MouseButton)
        QString xret = KRockerGesture::mouseButtonName((Qt::MouseButton)x[1].s_enum);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_9(Smoke::Stack x) {
        // bool isValid() const
        bool xret = ((const x_KRockerGesture*)this)->KRockerGesture::isValid();
        x[0].s_bool = xret;
    }
    void x_10(Smoke::Stack x) {
        // QString toString() const
        QString xret = ((const x_KRockerGesture*)this)->KRockerGesture::toString();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_11(Smoke::Stack x) {
        // KRockerGesture& operator=(const KRockerGesture&)
        KRockerGesture& xret = this->KRockerGesture::operator=(*(const KRockerGesture*)x[1].s_class);
        x[0].s_class = (void*)&xret;
    }
    void x_12(Smoke::Stack x) {
        // bool operator==(const KRockerGesture&) const
        bool xret = ((const x_KRockerGesture*)this)->KRockerGesture::operator==(*(const KRockerGesture*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_13(Smoke::Stack x) {
        // bool operator!=(const KRockerGesture&) const
        bool xret = ((const x_KRockerGesture*)this)->KRockerGesture::operator!=(*(const KRockerGesture*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_14(Smoke::Stack x) {
        // unsigned int hashable() const
        unsigned int xret = ((const x_KRockerGesture*)this)->KRockerGesture::hashable();
        x[0].s_uint = xret;
    }
    ~x_KRockerGesture() { this->_binding->deleted(163, (void*)this); }
};
void xcall_KRockerGesture(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KRockerGesture *xself = (x_KRockerGesture*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: x_KRockerGesture::x_1(args);	break;
        case 2: x_KRockerGesture::x_2(args);	break;
        case 3: x_KRockerGesture::x_3(args);	break;
        case 4: x_KRockerGesture::x_4(args);	break;
        case 5: xself->x_5(args);	break;
        case 6: xself->x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KRockerGesture::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: delete (KRockerGesture*)xself;	break;
    }
}
class x_KRuler : public KRuler, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRuler*>(this))) {
            const QMetaObject* xret = ((const x_KRuler*)this)->KRuler::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KRuler*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRuler*>(this))) {
            void* xret = this->KRuler::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KRuler::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KRuler::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KRuler::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KRuler::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRuler*>(this))) {
            int xret = this->KRuler::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KRuler* KRuler(QWidget*)
        x_KRuler* xret = new x_KRuler((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRuler(QWidget* x1) : KRuler(x1) {}
    static void x_9(Smoke::Stack x) {
        // KRuler* KRuler(Qt::Orientation, QWidget*, QFlags<Qt::WindowType>)
        x_KRuler* xret = new x_KRuler((Qt::Orientation)x[1].s_enum,(QWidget*)x[2].s_class,(QFlags<Qt::WindowType>)x[3].s_uint);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRuler(Qt::Orientation x1, QWidget* x2, QFlags<Qt::WindowType> x3) : KRuler(x1, x2, x3) {}
    static void x_10(Smoke::Stack x) {
        // KRuler* KRuler(Qt::Orientation, int, QWidget*, QFlags<Qt::WindowType>)
        x_KRuler* xret = new x_KRuler((Qt::Orientation)x[1].s_enum,(int)x[2].s_int,(QWidget*)x[3].s_class,(QFlags<Qt::WindowType>)x[4].s_uint);
        x[0].s_class = (void*)xret;
    }
    explicit x_KRuler(Qt::Orientation x1, int x2, QWidget* x3, QFlags<Qt::WindowType> x4) : KRuler(x1, x2, x3, x4) {}
    void x_11(Smoke::Stack x) {
        // void setMinValue(int)
        this->KRuler::setMinValue((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // int minValue() const
        int xret = ((const x_KRuler*)this)->KRuler::minValue();
        x[0].s_int = xret;
    }
    void x_13(Smoke::Stack x) {
        // void setMaxValue(int)
        this->KRuler::setMaxValue((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // int maxValue() const
        int xret = ((const x_KRuler*)this)->KRuler::maxValue();
        x[0].s_int = xret;
    }
    void x_15(Smoke::Stack x) {
        // void setTinyMarkDistance(int)
        this->KRuler::setTinyMarkDistance((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_16(Smoke::Stack x) {
        // int tinyMarkDistance() const
        int xret = ((const x_KRuler*)this)->KRuler::tinyMarkDistance();
        x[0].s_int = xret;
    }
    void x_17(Smoke::Stack x) {
        // void setLittleMarkDistance(int)
        this->KRuler::setLittleMarkDistance((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_18(Smoke::Stack x) {
        // int littleMarkDistance() const
        int xret = ((const x_KRuler*)this)->KRuler::littleMarkDistance();
        x[0].s_int = xret;
    }
    void x_19(Smoke::Stack x) {
        // void setMediumMarkDistance(int)
        this->KRuler::setMediumMarkDistance((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_20(Smoke::Stack x) {
        // int mediumMarkDistance() const
        int xret = ((const x_KRuler*)this)->KRuler::mediumMarkDistance();
        x[0].s_int = xret;
    }
    void x_21(Smoke::Stack x) {
        // void setBigMarkDistance(int)
        this->KRuler::setBigMarkDistance((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_22(Smoke::Stack x) {
        // int bigMarkDistance() const
        int xret = ((const x_KRuler*)this)->KRuler::bigMarkDistance();
        x[0].s_int = xret;
    }
    void x_23(Smoke::Stack x) {
        // void setShowTinyMarks(bool)
        this->KRuler::setShowTinyMarks((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_24(Smoke::Stack x) {
        // bool showTinyMarks() const
        bool xret = ((const x_KRuler*)this)->KRuler::showTinyMarks();
        x[0].s_bool = xret;
    }
    void x_25(Smoke::Stack x) {
        // void setShowLittleMarks(bool)
        this->KRuler::setShowLittleMarks((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_26(Smoke::Stack x) {
        // bool showLittleMarks() const
        bool xret = ((const x_KRuler*)this)->KRuler::showLittleMarks();
        x[0].s_bool = xret;
    }
    void x_27(Smoke::Stack x) {
        // void setShowMediumMarks(bool)
        this->KRuler::setShowMediumMarks((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_28(Smoke::Stack x) {
        // bool showMediumMarks() const
        bool xret = ((const x_KRuler*)this)->KRuler::showMediumMarks();
        x[0].s_bool = xret;
    }
    void x_29(Smoke::Stack x) {
        // void setShowBigMarks(bool)
        this->KRuler::setShowBigMarks((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_30(Smoke::Stack x) {
        // bool showBigMarks() const
        bool xret = ((const x_KRuler*)this)->KRuler::showBigMarks();
        x[0].s_bool = xret;
    }
    void x_31(Smoke::Stack x) {
        // void setShowEndMarks(bool)
        this->KRuler::setShowEndMarks((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_32(Smoke::Stack x) {
        // bool showEndMarks() const
        bool xret = ((const x_KRuler*)this)->KRuler::showEndMarks();
        x[0].s_bool = xret;
    }
    void x_33(Smoke::Stack x) {
        // void setShowPointer(bool)
        this->KRuler::setShowPointer((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_34(Smoke::Stack x) {
        // bool showPointer() const
        bool xret = ((const x_KRuler*)this)->KRuler::showPointer();
        x[0].s_bool = xret;
    }
    void x_35(Smoke::Stack x) {
        // void setFrameStyle(int)
        this->KRuler::setFrameStyle((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_36(Smoke::Stack x) {
        // void setShowEndLabel(bool)
        this->KRuler::setShowEndLabel((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_37(Smoke::Stack x) {
        // bool showEndLabel() const
        bool xret = ((const x_KRuler*)this)->KRuler::showEndLabel();
        x[0].s_bool = xret;
    }
    void x_38(Smoke::Stack x) {
        // void setEndLabel(const QString&)
        this->KRuler::setEndLabel(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_39(Smoke::Stack x) {
        // QString endLabel() const
        QString xret = ((const x_KRuler*)this)->KRuler::endLabel();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_40(Smoke::Stack x) {
        // void setRulerMetricStyle(KRuler::MetricStyle)
        this->KRuler::setRulerMetricStyle((KRuler::MetricStyle)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_41(Smoke::Stack x) {
        // void setPixelPerMark(double)
        this->KRuler::setPixelPerMark((double)x[1].s_double);
        (void)x; // noop (for compiler warning)
    }
    void x_42(Smoke::Stack x) {
        // double pixelPerMark() const
        double xret = ((const x_KRuler*)this)->KRuler::pixelPerMark();
        x[0].s_double = xret;
    }
    void x_43(Smoke::Stack x) {
        // void setLength(int)
        this->KRuler::setLength((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_44(Smoke::Stack x) {
        // int length() const
        int xret = ((const x_KRuler*)this)->KRuler::length();
        x[0].s_int = xret;
    }
    void x_45(Smoke::Stack x) {
        // void setLengthFixed(bool)
        this->KRuler::setLengthFixed((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_46(Smoke::Stack x) {
        // bool lengthFixed() const
        bool xret = ((const x_KRuler*)this)->KRuler::lengthFixed();
        x[0].s_bool = xret;
    }
    void x_47(Smoke::Stack x) {
        // void slideUp(int)
        this->KRuler::slideUp((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_48(Smoke::Stack x) {
        // void slideDown(int)
        this->KRuler::slideDown((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_49(Smoke::Stack x) {
        // void setOffset(int)
        this->KRuler::setOffset((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_50(Smoke::Stack x) {
        // int offset() const
        int xret = ((const x_KRuler*)this)->KRuler::offset();
        x[0].s_int = xret;
    }
    void x_51(Smoke::Stack x) {
        // int endOffset() const
        int xret = ((const x_KRuler*)this)->KRuler::endOffset();
        x[0].s_int = xret;
    }
    void x_52(Smoke::Stack x) {
        // void slotNewValue(int)
        this->KRuler::slotNewValue((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_53(Smoke::Stack x) {
        // void slotNewOffset(int)
        this->KRuler::slotNewOffset((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_54(Smoke::Stack x) {
        // void slotEndOffset(int)
        this->KRuler::slotEndOffset((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_55(Smoke::Stack x) {
        // virtual void paintEvent(QPaintEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KRuler*>(this))) {
            this->KRuler::paintEvent((QPaintEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->paintEvent((QPaintEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_56(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KRuler::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_57(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KRuler::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_58(Smoke::Stack x) {
        // KRuler* KRuler()
        x_KRuler* xret = new x_KRuler((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_59(Smoke::Stack x) {
        // KRuler* KRuler(Qt::Orientation)
        x_KRuler* xret = new x_KRuler((Qt::Orientation)x[1].s_enum,(QWidget*)0,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_60(Smoke::Stack x) {
        // KRuler* KRuler(Qt::Orientation, QWidget*)
        x_KRuler* xret = new x_KRuler((Qt::Orientation)x[1].s_enum,(QWidget*)x[2].s_class,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_61(Smoke::Stack x) {
        // KRuler* KRuler(Qt::Orientation, int)
        x_KRuler* xret = new x_KRuler((Qt::Orientation)x[1].s_enum,(int)x[2].s_int,(QWidget*)0,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_62(Smoke::Stack x) {
        // KRuler* KRuler(Qt::Orientation, int, QWidget*)
        x_KRuler* xret = new x_KRuler((Qt::Orientation)x[1].s_enum,(int)x[2].s_int,(QWidget*)x[3].s_class,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    void x_63(Smoke::Stack x) {
        // void slideUp()
        this->KRuler::slideUp((int)1);
        (void)x; // noop (for compiler warning)
    }
    void x_64(Smoke::Stack x) {
        // void slideDown()
        this->KRuler::slideDown((int)1);
        (void)x; // noop (for compiler warning)
    }
    static void x_65(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KRuler::staticMetaObject;
    }
    static void x_66(Smoke::Stack x) {
        x[0].s_enum = (long)KRuler::Custom;
    }
    static void x_67(Smoke::Stack x) {
        x[0].s_enum = (long)KRuler::Pixel;
    }
    static void x_68(Smoke::Stack x) {
        x[0].s_enum = (long)KRuler::Inch;
    }
    static void x_69(Smoke::Stack x) {
        x[0].s_enum = (long)KRuler::Millimetres;
    }
    static void x_70(Smoke::Stack x) {
        x[0].s_enum = (long)KRuler::Centimetres;
    }
    static void x_71(Smoke::Stack x) {
        x[0].s_enum = (long)KRuler::Metres;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4545, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KRuler::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4546, (void*)this, x)) return (void*)x[0].s_class;
        return this->KRuler::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4551, (void*)this, x)) return (int)x[0].s_int;
        return this->KRuler::qt_metacall(x1, x2, x3);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4599, (void*)this, x)) return;
        this->KRuler::paintEvent(x1);
    }
    virtual void sliderChange(QAbstractSlider::SliderChange x1) {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7313, (void*)this, x)) return;
        this->QAbstractSlider::sliderChange(x1);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7790, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7791, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7792, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7796, (void*)this, x)) return;
        this->QWidget::mousePressEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7797, (void*)this, x)) return;
        this->QWidget::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7798, (void*)this, x)) return;
        this->QWidget::mouseDoubleClickEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7799, (void*)this, x)) return;
        this->QWidget::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7316, (void*)this, x)) return;
        this->QAbstractSlider::wheelEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7314, (void*)this, x)) return;
        this->QAbstractSlider::keyPressEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7803, (void*)this, x)) return;
        this->QWidget::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7804, (void*)this, x)) return;
        this->QWidget::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7809, (void*)this, x)) return;
        this->QWidget::resizeEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7811, (void*)this, x)) return;
        this->QWidget::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7814, (void*)this, x)) return;
        this->QWidget::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7815, (void*)this, x)) return;
        this->QWidget::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7816, (void*)this, x)) return;
        this->QWidget::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7817, (void*)this, x)) return;
        this->QWidget::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7818, (void*)this, x)) return;
        this->QWidget::showEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7819, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7317, (void*)this, x)) return;
        this->QAbstractSlider::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7823, (void*)this, x)) return;
        this->QWidget::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7824, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7312, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractSlider::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7315, (void*)this, x)) return;
        this->QAbstractSlider::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 257: //KRuler::MetricStyle
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KRuler::MetricStyle;
                    break;
                case Smoke::EnumDelete:
                    delete (KRuler::MetricStyle*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KRuler::MetricStyle*)xdata = (KRuler::MetricStyle)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KRuler::MetricStyle*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KRuler() { this->_binding->deleted(164, (void*)this); }
};
void xenum_KRuler(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KRuler::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KRuler(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KRuler *xself = (x_KRuler*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KRuler::x_3(args);	break;
        case 4: x_KRuler::x_4(args);	break;
        case 5: x_KRuler::x_5(args);	break;
        case 6: x_KRuler::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KRuler::x_8(args);	break;
        case 9: x_KRuler::x_9(args);	break;
        case 10: x_KRuler::x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: xself->x_27(args);	break;
        case 28: xself->x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: xself->x_30(args);	break;
        case 31: xself->x_31(args);	break;
        case 32: xself->x_32(args);	break;
        case 33: xself->x_33(args);	break;
        case 34: xself->x_34(args);	break;
        case 35: xself->x_35(args);	break;
        case 36: xself->x_36(args);	break;
        case 37: xself->x_37(args);	break;
        case 38: xself->x_38(args);	break;
        case 39: xself->x_39(args);	break;
        case 40: xself->x_40(args);	break;
        case 41: xself->x_41(args);	break;
        case 42: xself->x_42(args);	break;
        case 43: xself->x_43(args);	break;
        case 44: xself->x_44(args);	break;
        case 45: xself->x_45(args);	break;
        case 46: xself->x_46(args);	break;
        case 47: xself->x_47(args);	break;
        case 48: xself->x_48(args);	break;
        case 49: xself->x_49(args);	break;
        case 50: xself->x_50(args);	break;
        case 51: xself->x_51(args);	break;
        case 52: xself->x_52(args);	break;
        case 53: xself->x_53(args);	break;
        case 54: xself->x_54(args);	break;
        case 55: xself->x_55(args);	break;
        case 56: x_KRuler::x_56(args);	break;
        case 57: x_KRuler::x_57(args);	break;
        case 58: x_KRuler::x_58(args);	break;
        case 59: x_KRuler::x_59(args);	break;
        case 60: x_KRuler::x_60(args);	break;
        case 61: x_KRuler::x_61(args);	break;
        case 62: x_KRuler::x_62(args);	break;
        case 63: xself->x_63(args);	break;
        case 64: xself->x_64(args);	break;
        case 65: x_KRuler::x_65(args);	break;
        case 66: x_KRuler::x_66(args);	break;
        case 67: x_KRuler::x_67(args);	break;
        case 68: x_KRuler::x_68(args);	break;
        case 69: x_KRuler::x_69(args);	break;
        case 70: x_KRuler::x_70(args);	break;
        case 71: x_KRuler::x_71(args);	break;
        case 72: delete (KRuler*)xself;	break;
    }
}
class x_KSelectAction : public KSelectAction, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            const QMetaObject* xret = ((const x_KSelectAction*)this)->KSelectAction::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KSelectAction*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            void* xret = this->KSelectAction::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KSelectAction::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KSelectAction::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KSelectAction::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KSelectAction::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            int xret = this->KSelectAction::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KSelectAction* KSelectAction(QObject*)
        x_KSelectAction* xret = new x_KSelectAction((QObject*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectAction(QObject* x1) : KSelectAction(x1) {}
    static void x_9(Smoke::Stack x) {
        // KSelectAction* KSelectAction(const QString&, QObject*)
        x_KSelectAction* xret = new x_KSelectAction(*(const QString*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectAction(const QString& x1, QObject* x2) : KSelectAction(x1, x2) {}
    static void x_10(Smoke::Stack x) {
        // KSelectAction* KSelectAction(const KIcon&, const QString&, QObject*)
        x_KSelectAction* xret = new x_KSelectAction(*(const KIcon*)x[1].s_class,*(const QString*)x[2].s_class,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectAction(const KIcon& x1, const QString& x2, QObject* x3) : KSelectAction(x1, x2, x3) {}
    void x_11(Smoke::Stack x) {
        // KSelectAction::ToolBarMode toolBarMode() const
        KSelectAction::ToolBarMode xret = ((const x_KSelectAction*)this)->KSelectAction::toolBarMode();
        x[0].s_enum = xret;
    }
    void x_12(Smoke::Stack x) {
        // void setToolBarMode(KSelectAction::ToolBarMode)
        this->KSelectAction::setToolBarMode((KSelectAction::ToolBarMode)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // QToolButton::ToolButtonPopupMode toolButtonPopupMode() const
        QToolButton::ToolButtonPopupMode xret = ((const x_KSelectAction*)this)->KSelectAction::toolButtonPopupMode();
        x[0].s_enum = xret;
    }
    void x_14(Smoke::Stack x) {
        // void setToolButtonPopupMode(QToolButton::ToolButtonPopupMode)
        this->KSelectAction::setToolButtonPopupMode((QToolButton::ToolButtonPopupMode)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // QActionGroup* selectableActionGroup() const
        QActionGroup* xret = ((const x_KSelectAction*)this)->KSelectAction::selectableActionGroup();
        x[0].s_class = (void*)xret;
    }
    void x_16(Smoke::Stack x) {
        // QAction* currentAction() const
        QAction* xret = ((const x_KSelectAction*)this)->KSelectAction::currentAction();
        x[0].s_class = (void*)xret;
    }
    void x_17(Smoke::Stack x) {
        // int currentItem() const
        int xret = ((const x_KSelectAction*)this)->KSelectAction::currentItem();
        x[0].s_int = xret;
    }
    void x_18(Smoke::Stack x) {
        // QString currentText() const
        QString xret = ((const x_KSelectAction*)this)->KSelectAction::currentText();
        x[0].s_class = (void*)new QString(xret);
    }
    void x_19(Smoke::Stack x) {
        // QList<QAction*> actions() const
        QList<QAction*> xret = ((const x_KSelectAction*)this)->KSelectAction::actions();
        x[0].s_class = (void*)new QList<QAction*>(xret);
    }
    void x_20(Smoke::Stack x) {
        // QAction* action(int) const
        QAction* xret = ((const x_KSelectAction*)this)->KSelectAction::action((int)x[1].s_int);
        x[0].s_class = (void*)xret;
    }
    void x_21(Smoke::Stack x) {
        // QAction* action(const QString&, Qt::CaseSensitivity) const
        QAction* xret = ((const x_KSelectAction*)this)->KSelectAction::action(*(const QString*)x[1].s_class,(Qt::CaseSensitivity)x[2].s_enum);
        x[0].s_class = (void*)xret;
    }
    void x_22(Smoke::Stack x) {
        // bool setCurrentAction(QAction*)
        bool xret = this->KSelectAction::setCurrentAction((QAction*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_23(Smoke::Stack x) {
        // bool setCurrentItem(int)
        bool xret = this->KSelectAction::setCurrentItem((int)x[1].s_int);
        x[0].s_bool = xret;
    }
    void x_24(Smoke::Stack x) {
        // bool setCurrentAction(const QString&, Qt::CaseSensitivity)
        bool xret = this->KSelectAction::setCurrentAction(*(const QString*)x[1].s_class,(Qt::CaseSensitivity)x[2].s_enum);
        x[0].s_bool = xret;
    }
    void x_25(Smoke::Stack x) {
        // virtual void addAction(QAction*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            this->KSelectAction::addAction((QAction*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->addAction((QAction*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_26(Smoke::Stack x) {
        // KAction* addAction(const QString&)
        KAction* xret = this->KSelectAction::addAction(*(const QString*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_27(Smoke::Stack x) {
        // KAction* addAction(const KIcon&, const QString&)
        KAction* xret = this->KSelectAction::addAction(*(const KIcon*)x[1].s_class,*(const QString*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    void x_28(Smoke::Stack x) {
        // virtual QAction* removeAction(QAction*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            QAction* xret = this->KSelectAction::removeAction((QAction*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QAction* xret = this->removeAction((QAction*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_29(Smoke::Stack x) {
        // void setItems(const QStringList&)
        this->KSelectAction::setItems(*(const QStringList*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_30(Smoke::Stack x) {
        // QStringList items() const
        QStringList xret = ((const x_KSelectAction*)this)->KSelectAction::items();
        x[0].s_class = (void*)new QStringList(xret);
    }
    void x_31(Smoke::Stack x) {
        // bool isEditable() const
        bool xret = ((const x_KSelectAction*)this)->KSelectAction::isEditable();
        x[0].s_bool = xret;
    }
    void x_32(Smoke::Stack x) {
        // void setEditable(bool)
        this->KSelectAction::setEditable((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_33(Smoke::Stack x) {
        // int comboWidth() const
        int xret = ((const x_KSelectAction*)this)->KSelectAction::comboWidth();
        x[0].s_int = xret;
    }
    void x_34(Smoke::Stack x) {
        // void setComboWidth(int)
        this->KSelectAction::setComboWidth((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_35(Smoke::Stack x) {
        // void setMaxComboViewCount(int)
        this->KSelectAction::setMaxComboViewCount((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_36(Smoke::Stack x) {
        // void clear()
        this->KSelectAction::clear();
        (void)x; // noop (for compiler warning)
    }
    void x_37(Smoke::Stack x) {
        // void removeAllActions()
        this->KSelectAction::removeAllActions();
        (void)x; // noop (for compiler warning)
    }
    void x_38(Smoke::Stack x) {
        // void setMenuAccelsEnabled(bool)
        this->KSelectAction::setMenuAccelsEnabled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_39(Smoke::Stack x) {
        // bool menuAccelsEnabled() const
        bool xret = ((const x_KSelectAction*)this)->KSelectAction::menuAccelsEnabled();
        x[0].s_bool = xret;
    }
    void x_40(Smoke::Stack x) {
        // void changeItem(int, const QString&)
        this->KSelectAction::changeItem((int)x[1].s_int,*(const QString*)x[2].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_41(Smoke::Stack x) {
        // void triggered(QAction*)
        this->KSelectAction::triggered((QAction*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_42(Smoke::Stack x) {
        // void triggered(int)
        this->KSelectAction::triggered((int)x[1].s_int);
        (void)x; // noop (for compiler warning)
    }
    void x_43(Smoke::Stack x) {
        // void triggered(const QString&)
        this->KSelectAction::triggered(*(const QString*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_44(Smoke::Stack x) {
        // virtual void actionTriggered(QAction*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            this->KSelectAction::actionTriggered((QAction*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->actionTriggered((QAction*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_45(Smoke::Stack x) {
        // void slotToggled(bool)
        this->KSelectAction::slotToggled((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_46(Smoke::Stack x) {
        // virtual QWidget* createWidget(QWidget*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            QWidget* xret = this->KSelectAction::createWidget((QWidget*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QWidget* xret = this->createWidget((QWidget*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_47(Smoke::Stack x) {
        // virtual void deleteWidget(QWidget*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            this->KSelectAction::deleteWidget((QWidget*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->deleteWidget((QWidget*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_48(Smoke::Stack x) {
        // virtual bool event(QEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            bool xret = this->KSelectAction::event((QEvent*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->event((QEvent*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_49(Smoke::Stack x) {
        // virtual bool eventFilter(QObject*, QEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectAction*>(this))) {
            bool xret = this->KSelectAction::eventFilter((QObject*)x[1].s_class,(QEvent*)x[2].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->eventFilter((QObject*)x[1].s_class,(QEvent*)x[2].s_class);
            x[0].s_bool = xret;
        }
    }
    static void x_50(Smoke::Stack x) {
        // KSelectAction* KSelectAction(KSelectActionPrivate&, QObject*)
        x_KSelectAction* xret = new x_KSelectAction(*(KSelectActionPrivate*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectAction(KSelectActionPrivate& x1, QObject* x2) : KSelectAction(x1, x2) {}
    static void x_51(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KSelectAction::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_52(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KSelectAction::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_53(Smoke::Stack x) {
        // QAction* action(const QString&) const
        QAction* xret = ((const x_KSelectAction*)this)->KSelectAction::action(*(const QString*)x[1].s_class,(Qt::CaseSensitivity)Qt::CaseSensitive);
        x[0].s_class = (void*)xret;
    }
    void x_54(Smoke::Stack x) {
        // bool setCurrentAction(const QString&)
        bool xret = this->KSelectAction::setCurrentAction(*(const QString*)x[1].s_class,(Qt::CaseSensitivity)Qt::CaseSensitive);
        x[0].s_bool = xret;
    }
    static void x_55(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KSelectAction::staticMetaObject;
    }
    static void x_56(Smoke::Stack x) {
        x[0].s_enum = (long)KSelectAction::MenuMode;
    }
    static void x_57(Smoke::Stack x) {
        x[0].s_enum = (long)KSelectAction::ComboBoxMode;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4617, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KSelectAction::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4618, (void*)this, x)) return (void*)x[0].s_class;
        return this->KSelectAction::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4623, (void*)this, x)) return (int)x[0].s_int;
        return this->KSelectAction::qt_metacall(x1, x2, x3);
    }
    virtual void addAction(QAction* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4641, (void*)this, x)) return;
        this->KSelectAction::addAction(x1);
    }
    virtual QAction* removeAction(QAction* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4644, (void*)this, x)) return (QAction*)x[0].s_class;
        return this->KSelectAction::removeAction(x1);
    }
    virtual void actionTriggered(QAction* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4660, (void*)this, x)) return;
        this->KSelectAction::actionTriggered(x1);
    }
    virtual QWidget* createWidget(QWidget* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4662, (void*)this, x)) return (QWidget*)x[0].s_class;
        return this->KSelectAction::createWidget(x1);
    }
    virtual void deleteWidget(QWidget* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4663, (void*)this, x)) return;
        this->KSelectAction::deleteWidget(x1);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4664, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KSelectAction::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(4665, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KSelectAction::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 259: //KSelectAction::ToolBarMode
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KSelectAction::ToolBarMode;
                    break;
                case Smoke::EnumDelete:
                    delete (KSelectAction::ToolBarMode*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KSelectAction::ToolBarMode*)xdata = (KSelectAction::ToolBarMode)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KSelectAction::ToolBarMode*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KSelectAction() { this->_binding->deleted(165, (void*)this); }
};
void xenum_KSelectAction(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KSelectAction::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KSelectAction(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KSelectAction *xself = (x_KSelectAction*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KSelectAction::x_3(args);	break;
        case 4: x_KSelectAction::x_4(args);	break;
        case 5: x_KSelectAction::x_5(args);	break;
        case 6: x_KSelectAction::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KSelectAction::x_8(args);	break;
        case 9: x_KSelectAction::x_9(args);	break;
        case 10: x_KSelectAction::x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: xself->x_27(args);	break;
        case 28: xself->x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: xself->x_30(args);	break;
        case 31: xself->x_31(args);	break;
        case 32: xself->x_32(args);	break;
        case 33: xself->x_33(args);	break;
        case 34: xself->x_34(args);	break;
        case 35: xself->x_35(args);	break;
        case 36: xself->x_36(args);	break;
        case 37: xself->x_37(args);	break;
        case 38: xself->x_38(args);	break;
        case 39: xself->x_39(args);	break;
        case 40: xself->x_40(args);	break;
        case 41: xself->x_41(args);	break;
        case 42: xself->x_42(args);	break;
        case 43: xself->x_43(args);	break;
        case 44: xself->x_44(args);	break;
        case 45: xself->x_45(args);	break;
        case 46: xself->x_46(args);	break;
        case 47: xself->x_47(args);	break;
        case 48: xself->x_48(args);	break;
        case 49: xself->x_49(args);	break;
        case 50: x_KSelectAction::x_50(args);	break;
        case 51: x_KSelectAction::x_51(args);	break;
        case 52: x_KSelectAction::x_52(args);	break;
        case 53: xself->x_53(args);	break;
        case 54: xself->x_54(args);	break;
        case 55: x_KSelectAction::x_55(args);	break;
        case 56: x_KSelectAction::x_56(args);	break;
        case 57: x_KSelectAction::x_57(args);	break;
        case 58: delete (KSelectAction*)xself;	break;
    }
}
class x_KSelectionOwner : public KSelectionOwner, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionOwner*>(this))) {
            const QMetaObject* xret = ((const x_KSelectionOwner*)this)->KSelectionOwner::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KSelectionOwner*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionOwner*>(this))) {
            void* xret = this->KSelectionOwner::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KSelectionOwner::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KSelectionOwner::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KSelectionOwner::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KSelectionOwner::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionOwner*>(this))) {
            int xret = this->KSelectionOwner::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KSelectionOwner* KSelectionOwner(unsigned long, int, QObject*)
        x_KSelectionOwner* xret = new x_KSelectionOwner((unsigned long)x[1].s_ulong,(int)x[2].s_int,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectionOwner(unsigned long x1, int x2, QObject* x3) : KSelectionOwner(x1, x2, x3) {}
    static void x_9(Smoke::Stack x) {
        // KSelectionOwner* KSelectionOwner(const char*, int, QObject*)
        x_KSelectionOwner* xret = new x_KSelectionOwner((const char*)x[1].s_class,(int)x[2].s_int,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectionOwner(const char* x1, int x2, QObject* x3) : KSelectionOwner(x1, x2, x3) {}
    void x_10(Smoke::Stack x) {
        // bool claim(bool, bool)
        bool xret = this->KSelectionOwner::claim((bool)x[1].s_bool,(bool)x[2].s_bool);
        x[0].s_bool = xret;
    }
    void x_11(Smoke::Stack x) {
        // void release()
        this->KSelectionOwner::release();
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // Window ownerWindow() const
        Window xret = ((const x_KSelectionOwner*)this)->KSelectionOwner::ownerWindow();
        x[0].s_class = (void*)new Window(xret);
    }
    void x_13(Smoke::Stack x) {
        // bool filterEvent(_XEvent*)
        bool xret = this->KSelectionOwner::filterEvent((_XEvent*)x[1].s_class);
        x[0].s_bool = xret;
    }
    void x_14(Smoke::Stack x) {
        // void lostOwnership()
        this->KSelectionOwner::lostOwnership();
        (void)x; // noop (for compiler warning)
    }
    void x_15(Smoke::Stack x) {
        // virtual bool handleMessage(_XEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionOwner*>(this))) {
            bool xret = this->KSelectionOwner::handleMessage((_XEvent*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->handleMessage((_XEvent*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_16(Smoke::Stack x) {
        // virtual bool genericReply(unsigned long, unsigned long, Window)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionOwner*>(this))) {
            bool xret = this->KSelectionOwner::genericReply((unsigned long)x[1].s_ulong,(unsigned long)x[2].s_ulong,*(Window*)x[3].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->genericReply((unsigned long)x[1].s_ulong,(unsigned long)x[2].s_ulong,*(Window*)x[3].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_17(Smoke::Stack x) {
        // virtual void replyTargets(unsigned long, Window)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionOwner*>(this))) {
            this->KSelectionOwner::replyTargets((unsigned long)x[1].s_ulong,*(Window*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->replyTargets((unsigned long)x[1].s_ulong,*(Window*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_18(Smoke::Stack x) {
        // virtual void getAtoms()
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionOwner*>(this))) {
            this->KSelectionOwner::getAtoms();
            (void)x; // noop (for compiler warning)
        } else {
            this->getAtoms();
            (void)x; // noop (for compiler warning)
        }
    }
    void x_19(Smoke::Stack x) {
        // void setData(long, long)
        this->KSelectionOwner::setData((long)x[1].s_long,(long)x[2].s_long);
        (void)x; // noop (for compiler warning)
    }
    static void x_20(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KSelectionOwner::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_21(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KSelectionOwner::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_22(Smoke::Stack x) {
        // KSelectionOwner* KSelectionOwner(unsigned long)
        x_KSelectionOwner* xret = new x_KSelectionOwner((unsigned long)x[1].s_ulong,(int)-1,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    static void x_23(Smoke::Stack x) {
        // KSelectionOwner* KSelectionOwner(unsigned long, int)
        x_KSelectionOwner* xret = new x_KSelectionOwner((unsigned long)x[1].s_ulong,(int)x[2].s_int,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    static void x_24(Smoke::Stack x) {
        // KSelectionOwner* KSelectionOwner(const char*)
        x_KSelectionOwner* xret = new x_KSelectionOwner((const char*)x[1].s_class,(int)-1,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    static void x_25(Smoke::Stack x) {
        // KSelectionOwner* KSelectionOwner(const char*, int)
        x_KSelectionOwner* xret = new x_KSelectionOwner((const char*)x[1].s_class,(int)x[2].s_int,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    void x_26(Smoke::Stack x) {
        // bool claim(bool)
        bool xret = this->KSelectionOwner::claim((bool)x[1].s_bool,(bool)true);
        x[0].s_bool = xret;
    }
    static void x_27(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KSelectionOwner::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4675, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KSelectionOwner::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4676, (void*)this, x)) return (void*)x[0].s_class;
        return this->KSelectionOwner::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4681, (void*)this, x)) return (int)x[0].s_int;
        return this->KSelectionOwner::qt_metacall(x1, x2, x3);
    }
    virtual bool handleMessage(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4689, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KSelectionOwner::handleMessage(x1);
    }
    virtual bool genericReply(unsigned long x1, unsigned long x2, Window x3) {
        Smoke::StackItem x[4];
        x[1].s_ulong = x1;
        x[2].s_ulong = x2;
        x[3].s_class = (void*)new Window(x3);
        if (this->_binding->callMethod(4690, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KSelectionOwner::genericReply(x1, x2, x3);
    }
    virtual void replyTargets(unsigned long x1, Window x2) {
        Smoke::StackItem x[3];
        x[1].s_ulong = x1;
        x[2].s_class = (void*)new Window(x2);
        if (this->_binding->callMethod(4691, (void*)this, x)) return;
        this->KSelectionOwner::replyTargets(x1, x2);
    }
    virtual void getAtoms() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4692, (void*)this, x)) return;
        this->KSelectionOwner::getAtoms();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7575, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_KSelectionOwner() { this->_binding->deleted(167, (void*)this); }
};
void xcall_KSelectionOwner(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KSelectionOwner *xself = (x_KSelectionOwner*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KSelectionOwner::x_3(args);	break;
        case 4: x_KSelectionOwner::x_4(args);	break;
        case 5: x_KSelectionOwner::x_5(args);	break;
        case 6: x_KSelectionOwner::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KSelectionOwner::x_8(args);	break;
        case 9: x_KSelectionOwner::x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: x_KSelectionOwner::x_20(args);	break;
        case 21: x_KSelectionOwner::x_21(args);	break;
        case 22: x_KSelectionOwner::x_22(args);	break;
        case 23: x_KSelectionOwner::x_23(args);	break;
        case 24: x_KSelectionOwner::x_24(args);	break;
        case 25: x_KSelectionOwner::x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: x_KSelectionOwner::x_27(args);	break;
        case 28: delete (KSelectionOwner*)xself;	break;
    }
}
class x_KSelectionProxyModel : public KSelectionProxyModel, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            const QMetaObject* xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KSelectionProxyModel*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            void* xret = this->KSelectionProxyModel::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KSelectionProxyModel::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KSelectionProxyModel::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KSelectionProxyModel::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KSelectionProxyModel::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            int xret = this->KSelectionProxyModel::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KSelectionProxyModel* KSelectionProxyModel(QItemSelectionModel*, QObject*)
        x_KSelectionProxyModel* xret = new x_KSelectionProxyModel((QItemSelectionModel*)x[1].s_class,(QObject*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectionProxyModel(QItemSelectionModel* x1, QObject* x2) : KSelectionProxyModel(x1, x2) {}
    void x_9(Smoke::Stack x) {
        // virtual void setSourceModel(QAbstractItemModel*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            this->KSelectionProxyModel::setSourceModel((QAbstractItemModel*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->setSourceModel((QAbstractItemModel*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_10(Smoke::Stack x) {
        // QItemSelectionModel* selectionModel() const
        QItemSelectionModel* xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::selectionModel();
        x[0].s_class = (void*)xret;
    }
    void x_11(Smoke::Stack x) {
        // void setFilterBehavior(KSelectionProxyModel::FilterBehavior)
        this->KSelectionProxyModel::setFilterBehavior((KSelectionProxyModel::FilterBehavior)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // KSelectionProxyModel::FilterBehavior filterBehavior() const
        KSelectionProxyModel::FilterBehavior xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::filterBehavior();
        x[0].s_enum = xret;
    }
    void x_13(Smoke::Stack x) {
        // QModelIndex mapFromSource(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::mapFromSource(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        } else {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->mapFromSource(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        }
    }
    void x_14(Smoke::Stack x) {
        // QModelIndex mapToSource(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::mapToSource(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        } else {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->mapToSource(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        }
    }
    void x_15(Smoke::Stack x) {
        // QItemSelection mapSelectionFromSource(const QItemSelection&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QItemSelection xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::mapSelectionFromSource(*(const QItemSelection*)x[1].s_class);
            x[0].s_class = (void*)new QItemSelection(xret);
        } else {
            QItemSelection xret = ((const x_KSelectionProxyModel*)this)->mapSelectionFromSource(*(const QItemSelection*)x[1].s_class);
            x[0].s_class = (void*)new QItemSelection(xret);
        }
    }
    void x_16(Smoke::Stack x) {
        // QItemSelection mapSelectionToSource(const QItemSelection&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QItemSelection xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::mapSelectionToSource(*(const QItemSelection*)x[1].s_class);
            x[0].s_class = (void*)new QItemSelection(xret);
        } else {
            QItemSelection xret = ((const x_KSelectionProxyModel*)this)->mapSelectionToSource(*(const QItemSelection*)x[1].s_class);
            x[0].s_class = (void*)new QItemSelection(xret);
        }
    }
    void x_17(Smoke::Stack x) {
        // virtual QFlags<Qt::ItemFlag> flags(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QFlags<Qt::ItemFlag> xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::flags(*(const QModelIndex*)x[1].s_class);
            x[0].s_uint = (uint)xret;
        } else {
            QFlags<Qt::ItemFlag> xret = ((const x_KSelectionProxyModel*)this)->flags(*(const QModelIndex*)x[1].s_class);
            x[0].s_uint = (uint)xret;
        }
    }
    void x_18(Smoke::Stack x) {
        // QVariant data(const QModelIndex&, int) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QVariant xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::data(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        } else {
            QVariant xret = ((const x_KSelectionProxyModel*)this)->data(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        }
    }
    void x_19(Smoke::Stack x) {
        // virtual int rowCount(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            int xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::rowCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        } else {
            int xret = ((const x_KSelectionProxyModel*)this)->rowCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        }
    }
    void x_20(Smoke::Stack x) {
        // virtual QVariant headerData(int, Qt::Orientation, int) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QVariant xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::headerData((int)x[1].s_int,(Qt::Orientation)x[2].s_enum,(int)x[3].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        } else {
            QVariant xret = ((const x_KSelectionProxyModel*)this)->headerData((int)x[1].s_int,(Qt::Orientation)x[2].s_enum,(int)x[3].s_int);
            x[0].s_class = (void*)new QVariant(xret);
        }
    }
    void x_21(Smoke::Stack x) {
        // virtual QMimeData* mimeData(const QList<QModelIndex>&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QMimeData* xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::mimeData(*(const QList<QModelIndex>*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            QMimeData* xret = ((const x_KSelectionProxyModel*)this)->mimeData(*(const QList<QModelIndex>*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    void x_22(Smoke::Stack x) {
        // virtual QStringList mimeTypes() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QStringList xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::mimeTypes();
            x[0].s_class = (void*)new QStringList(xret);
        } else {
            QStringList xret = ((const x_KSelectionProxyModel*)this)->mimeTypes();
            x[0].s_class = (void*)new QStringList(xret);
        }
    }
    void x_23(Smoke::Stack x) {
        // virtual QFlags<Qt::DropAction> supportedDropActions() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QFlags<Qt::DropAction> xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::supportedDropActions();
            x[0].s_uint = (uint)xret;
        } else {
            QFlags<Qt::DropAction> xret = ((const x_KSelectionProxyModel*)this)->supportedDropActions();
            x[0].s_uint = (uint)xret;
        }
    }
    void x_24(Smoke::Stack x) {
        // virtual bool dropMimeData(const QMimeData*, Qt::DropAction, int, int, const QModelIndex&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            bool xret = this->KSelectionProxyModel::dropMimeData((const QMimeData*)x[1].s_class,(Qt::DropAction)x[2].s_enum,(int)x[3].s_int,(int)x[4].s_int,*(const QModelIndex*)x[5].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = this->dropMimeData((const QMimeData*)x[1].s_class,(Qt::DropAction)x[2].s_enum,(int)x[3].s_int,(int)x[4].s_int,*(const QModelIndex*)x[5].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_25(Smoke::Stack x) {
        // virtual bool hasChildren(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            bool xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::hasChildren(*(const QModelIndex*)x[1].s_class);
            x[0].s_bool = xret;
        } else {
            bool xret = ((const x_KSelectionProxyModel*)this)->hasChildren(*(const QModelIndex*)x[1].s_class);
            x[0].s_bool = xret;
        }
    }
    void x_26(Smoke::Stack x) {
        // virtual QModelIndex index(int, int, const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::index((int)x[1].s_int,(int)x[2].s_int,*(const QModelIndex*)x[3].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        } else {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->index((int)x[1].s_int,(int)x[2].s_int,*(const QModelIndex*)x[3].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        }
    }
    void x_27(Smoke::Stack x) {
        // virtual QModelIndex parent(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::parent(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        } else {
            QModelIndex xret = ((const x_KSelectionProxyModel*)this)->parent(*(const QModelIndex*)x[1].s_class);
            x[0].s_class = (void*)new QModelIndex(xret);
        }
    }
    void x_28(Smoke::Stack x) {
        // virtual int columnCount(const QModelIndex&) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            int xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::columnCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        } else {
            int xret = ((const x_KSelectionProxyModel*)this)->columnCount(*(const QModelIndex*)x[1].s_class);
            x[0].s_int = xret;
        }
    }
    void x_29(Smoke::Stack x) {
        // virtual QList<QModelIndex> match(const QModelIndex&, int, const QVariant&, int, QFlags<Qt::MatchFlag>) const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionProxyModel*>(this))) {
            QList<QModelIndex> xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::match(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int,*(const QVariant*)x[3].s_class,(int)x[4].s_int,(QFlags<Qt::MatchFlag>)x[5].s_uint);
            x[0].s_class = (void*)new QList<QModelIndex>(xret);
        } else {
            QList<QModelIndex> xret = ((const x_KSelectionProxyModel*)this)->match(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int,*(const QVariant*)x[3].s_class,(int)x[4].s_int,(QFlags<Qt::MatchFlag>)x[5].s_uint);
            x[0].s_class = (void*)new QList<QModelIndex>(xret);
        }
    }
    void x_30(Smoke::Stack x) {
        // QList<QPersistentModelIndex> sourceRootIndexes() const
        QList<QPersistentModelIndex> xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::sourceRootIndexes();
        x[0].s_class = (void*)new QList<QPersistentModelIndex>(xret);
    }
    static void x_31(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KSelectionProxyModel::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_32(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KSelectionProxyModel::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_33(Smoke::Stack x) {
        // KSelectionProxyModel* KSelectionProxyModel(QItemSelectionModel*)
        x_KSelectionProxyModel* xret = new x_KSelectionProxyModel((QItemSelectionModel*)x[1].s_class,(QObject*)0);
        x[0].s_class = (void*)xret;
    }
    void x_34(Smoke::Stack x) {
        // QVariant data(const QModelIndex&) const
        QVariant xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::data(*(const QModelIndex*)x[1].s_class,(int)Qt::DisplayRole);
        x[0].s_class = (void*)new QVariant(xret);
    }
    void x_35(Smoke::Stack x) {
        // int rowCount() const
        int xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::rowCount((const QModelIndex&)QModelIndex());
        x[0].s_int = xret;
    }
    void x_36(Smoke::Stack x) {
        // QVariant headerData(int, Qt::Orientation) const
        QVariant xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::headerData((int)x[1].s_int,(Qt::Orientation)x[2].s_enum,(int)Qt::DisplayRole);
        x[0].s_class = (void*)new QVariant(xret);
    }
    void x_37(Smoke::Stack x) {
        // bool hasChildren() const
        bool xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::hasChildren((const QModelIndex&)QModelIndex());
        x[0].s_bool = xret;
    }
    void x_38(Smoke::Stack x) {
        // QModelIndex index(int, int) const
        QModelIndex xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::index((int)x[1].s_int,(int)x[2].s_int,(const QModelIndex&)QModelIndex());
        x[0].s_class = (void*)new QModelIndex(xret);
    }
    void x_39(Smoke::Stack x) {
        // int columnCount() const
        int xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::columnCount((const QModelIndex&)QModelIndex());
        x[0].s_int = xret;
    }
    void x_40(Smoke::Stack x) {
        // QList<QModelIndex> match(const QModelIndex&, int, const QVariant&) const
        QList<QModelIndex> xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::match(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int,*(const QVariant*)x[3].s_class,(int)1,(QFlags<Qt::MatchFlag>)Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap));
        x[0].s_class = (void*)new QList<QModelIndex>(xret);
    }
    void x_41(Smoke::Stack x) {
        // QList<QModelIndex> match(const QModelIndex&, int, const QVariant&, int) const
        QList<QModelIndex> xret = ((const x_KSelectionProxyModel*)this)->KSelectionProxyModel::match(*(const QModelIndex*)x[1].s_class,(int)x[2].s_int,*(const QVariant*)x[3].s_class,(int)x[4].s_int,(QFlags<Qt::MatchFlag>)Qt::MatchFlags(Qt::MatchStartsWith|Qt::MatchWrap));
        x[0].s_class = (void*)new QList<QModelIndex>(xret);
    }
    static void x_42(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KSelectionProxyModel::staticMetaObject;
    }
    static void x_43(Smoke::Stack x) {
        x[0].s_enum = (long)KSelectionProxyModel::SubTrees;
    }
    static void x_44(Smoke::Stack x) {
        x[0].s_enum = (long)KSelectionProxyModel::SubTreeRoots;
    }
    static void x_45(Smoke::Stack x) {
        x[0].s_enum = (long)KSelectionProxyModel::SubTreesWithoutRoots;
    }
    static void x_46(Smoke::Stack x) {
        x[0].s_enum = (long)KSelectionProxyModel::ExactSelection;
    }
    static void x_47(Smoke::Stack x) {
        x[0].s_enum = (long)KSelectionProxyModel::ChildrenOfExactSelection;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4703, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KSelectionProxyModel::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4704, (void*)this, x)) return (void*)x[0].s_class;
        return this->KSelectionProxyModel::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4709, (void*)this, x)) return (int)x[0].s_int;
        return this->KSelectionProxyModel::qt_metacall(x1, x2, x3);
    }
    virtual void setSourceModel(QAbstractItemModel* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4711, (void*)this, x)) return;
        this->KSelectionProxyModel::setSourceModel(x1);
    }
    virtual QFlags<Qt::ItemFlag> flags(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4719, (void*)this, x)) return (QFlags<Qt::ItemFlag>)x[0].s_uint;
        return this->KSelectionProxyModel::flags(x1);
    }
    virtual int rowCount(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4721, (void*)this, x)) return (int)x[0].s_int;
        return this->KSelectionProxyModel::rowCount(x1);
    }
    virtual QVariant headerData(int x1, Qt::Orientation x2, int x3) const {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(4722, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::headerData(x1, x2, x3);
    }
    virtual QMimeData* mimeData(const QList<QModelIndex>& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4723, (void*)this, x)) return (QMimeData*)x[0].s_class;
        return this->KSelectionProxyModel::mimeData(x1);
    }
    virtual QStringList mimeTypes() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4724, (void*)this, x)) {
            QStringList* xptr = (QStringList*)x[0].s_class;
            QStringList xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::mimeTypes();
    }
    virtual QFlags<Qt::DropAction> supportedDropActions() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4725, (void*)this, x)) return (QFlags<Qt::DropAction>)x[0].s_uint;
        return this->KSelectionProxyModel::supportedDropActions();
    }
    virtual bool dropMimeData(const QMimeData* x1, Qt::DropAction x2, int x3, int x4, const QModelIndex& x5) {
        Smoke::StackItem x[6];
        x[1].s_class = (void*)x1;
        x[2].s_enum = x2;
        x[3].s_int = x3;
        x[4].s_int = x4;
        x[5].s_class = (void*)&x5;
        if (this->_binding->callMethod(4726, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KSelectionProxyModel::dropMimeData(x1, x2, x3, x4, x5);
    }
    virtual bool hasChildren(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4727, (void*)this, x)) return (bool)x[0].s_bool;
        return this->KSelectionProxyModel::hasChildren(x1);
    }
    virtual QModelIndex index(int x1, int x2, const QModelIndex& x3) const {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(4728, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::index(x1, x2, x3);
    }
    virtual QModelIndex parent(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4729, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::parent(x1);
    }
    virtual int columnCount(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4730, (void*)this, x)) return (int)x[0].s_int;
        return this->KSelectionProxyModel::columnCount(x1);
    }
    virtual QList<QModelIndex> match(const QModelIndex& x1, int x2, const QVariant& x3, int x4, QFlags<Qt::MatchFlag> x5) const {
        Smoke::StackItem x[6];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        x[5].s_uint = (uint)x5;
        if (this->_binding->callMethod(4731, (void*)this, x)) {
            QList<QModelIndex>* xptr = (QList<QModelIndex>*)x[0].s_class;
            QList<QModelIndex> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::match(x1, x2, x3, x4, x5);
    }
    virtual QModelIndex mapToSource(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4716, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::mapToSource(x1);
    }
    virtual QModelIndex mapFromSource(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4715, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::mapFromSource(x1);
    }
    virtual QItemSelection mapSelectionToSource(const QItemSelection& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4718, (void*)this, x)) {
            QItemSelection* xptr = (QItemSelection*)x[0].s_class;
            QItemSelection xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::mapSelectionToSource(x1);
    }
    virtual QItemSelection mapSelectionFromSource(const QItemSelection& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(4717, (void*)this, x)) {
            QItemSelection* xptr = (QItemSelection*)x[0].s_class;
            QItemSelection xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::mapSelectionFromSource(x1);
    }
    virtual QVariant data(const QModelIndex& x1, int x2) const {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_int = x2;
        if (this->_binding->callMethod(4720, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->KSelectionProxyModel::data(x1, x2);
    }
    virtual bool setData(const QModelIndex& x1, const QVariant& x2, int x3) {
        Smoke::StackItem x[4];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        x[3].s_int = x3;
        if (this->_binding->callMethod(7299, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractProxyModel::setData(x1, x2, x3);
    }
    virtual bool setHeaderData(int x1, Qt::Orientation x2, const QVariant& x3, int x4) {
        Smoke::StackItem x[5];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        x[3].s_class = (void*)&x3;
        x[4].s_int = x4;
        if (this->_binding->callMethod(7301, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractProxyModel::setHeaderData(x1, x2, x3, x4);
    }
    virtual QMap<int,QVariant> itemData(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7298, (void*)this, x)) {
            QMap<int,QVariant>* xptr = (QMap<int,QVariant>*)x[0].s_class;
            QMap<int,QVariant> xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractProxyModel::itemData(x1);
    }
    virtual bool setItemData(const QModelIndex& x1, const QMap<int,QVariant>& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)&x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(7300, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractProxyModel::setItemData(x1, x2);
    }
    virtual bool insertRows(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7224, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::insertRows(x1, x2, x3);
    }
    virtual bool insertColumns(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7225, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::insertColumns(x1, x2, x3);
    }
    virtual bool removeRows(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7226, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::removeRows(x1, x2, x3);
    }
    virtual bool removeColumns(int x1, int x2, const QModelIndex& x3) {
        Smoke::StackItem x[4];
        x[1].s_int = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)&x3;
        if (this->_binding->callMethod(7227, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractItemModel::removeColumns(x1, x2, x3);
    }
    virtual void fetchMore(const QModelIndex& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7304, (void*)this, x)) return;
        this->QAbstractProxyModel::fetchMore(x1);
    }
    virtual bool canFetchMore(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7303, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractProxyModel::canFetchMore(x1);
    }
    virtual void sort(int x1, Qt::SortOrder x2) {
        Smoke::StackItem x[3];
        x[1].s_int = x1;
        x[2].s_enum = x2;
        if (this->_binding->callMethod(7305, (void*)this, x)) return;
        this->QAbstractProxyModel::sort(x1, x2);
    }
    virtual QModelIndex buddy(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7302, (void*)this, x)) {
            QModelIndex* xptr = (QModelIndex*)x[0].s_class;
            QModelIndex xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractProxyModel::buddy(x1);
    }
    virtual QSize span(const QModelIndex& x1) const {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7306, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QAbstractProxyModel::span(x1);
    }
    virtual bool submit() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7296, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractProxyModel::submit();
    }
    virtual void revert() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7297, (void*)this, x)) return;
        this->QAbstractProxyModel::revert();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7575, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    static void xenum_operation(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
        switch(xtype) {
        case 263: //KSelectionProxyModel::FilterBehavior
            switch(xop) {
                case Smoke::EnumNew:
                    xdata = (void*)new KSelectionProxyModel::FilterBehavior;
                    break;
                case Smoke::EnumDelete:
                    delete (KSelectionProxyModel::FilterBehavior*)xdata;
                    break;
                case Smoke::EnumFromLong:
                    *(KSelectionProxyModel::FilterBehavior*)xdata = (KSelectionProxyModel::FilterBehavior)xvalue;
                    break;
                case Smoke::EnumToLong:
                    xvalue = (long)*(KSelectionProxyModel::FilterBehavior*)xdata;
                    break;
            }
            break;
        }
    }
    ~x_KSelectionProxyModel() { this->_binding->deleted(168, (void*)this); }
};
void xenum_KSelectionProxyModel(Smoke::EnumOperation xop, Smoke::Index xtype, void *&xdata, long &xvalue) {
    x_KSelectionProxyModel::xenum_operation(xop, xtype, xdata, xvalue);
}
void xcall_KSelectionProxyModel(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KSelectionProxyModel *xself = (x_KSelectionProxyModel*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KSelectionProxyModel::x_3(args);	break;
        case 4: x_KSelectionProxyModel::x_4(args);	break;
        case 5: x_KSelectionProxyModel::x_5(args);	break;
        case 6: x_KSelectionProxyModel::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KSelectionProxyModel::x_8(args);	break;
        case 9: xself->x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: xself->x_22(args);	break;
        case 23: xself->x_23(args);	break;
        case 24: xself->x_24(args);	break;
        case 25: xself->x_25(args);	break;
        case 26: xself->x_26(args);	break;
        case 27: xself->x_27(args);	break;
        case 28: xself->x_28(args);	break;
        case 29: xself->x_29(args);	break;
        case 30: xself->x_30(args);	break;
        case 31: x_KSelectionProxyModel::x_31(args);	break;
        case 32: x_KSelectionProxyModel::x_32(args);	break;
        case 33: x_KSelectionProxyModel::x_33(args);	break;
        case 34: xself->x_34(args);	break;
        case 35: xself->x_35(args);	break;
        case 36: xself->x_36(args);	break;
        case 37: xself->x_37(args);	break;
        case 38: xself->x_38(args);	break;
        case 39: xself->x_39(args);	break;
        case 40: xself->x_40(args);	break;
        case 41: xself->x_41(args);	break;
        case 42: x_KSelectionProxyModel::x_42(args);	break;
        case 43: x_KSelectionProxyModel::x_43(args);	break;
        case 44: x_KSelectionProxyModel::x_44(args);	break;
        case 45: x_KSelectionProxyModel::x_45(args);	break;
        case 46: x_KSelectionProxyModel::x_46(args);	break;
        case 47: x_KSelectionProxyModel::x_47(args);	break;
        case 48: delete (KSelectionProxyModel*)xself;	break;
    }
}
class x_KSelectionWatcher : public KSelectionWatcher, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionWatcher*>(this))) {
            const QMetaObject* xret = ((const x_KSelectionWatcher*)this)->KSelectionWatcher::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KSelectionWatcher*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionWatcher*>(this))) {
            void* xret = this->KSelectionWatcher::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KSelectionWatcher::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KSelectionWatcher::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KSelectionWatcher::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KSelectionWatcher::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelectionWatcher*>(this))) {
            int xret = this->KSelectionWatcher::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KSelectionWatcher* KSelectionWatcher(unsigned long, int, QObject*)
        x_KSelectionWatcher* xret = new x_KSelectionWatcher((unsigned long)x[1].s_ulong,(int)x[2].s_int,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectionWatcher(unsigned long x1, int x2, QObject* x3) : KSelectionWatcher(x1, x2, x3) {}
    static void x_9(Smoke::Stack x) {
        // KSelectionWatcher* KSelectionWatcher(const char*, int, QObject*)
        x_KSelectionWatcher* xret = new x_KSelectionWatcher((const char*)x[1].s_class,(int)x[2].s_int,(QObject*)x[3].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelectionWatcher(const char* x1, int x2, QObject* x3) : KSelectionWatcher(x1, x2, x3) {}
    void x_10(Smoke::Stack x) {
        // Window owner()
        Window xret = this->KSelectionWatcher::owner();
        x[0].s_class = (void*)new Window(xret);
    }
    void x_11(Smoke::Stack x) {
        // void filterEvent(_XEvent*)
        this->KSelectionWatcher::filterEvent((_XEvent*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // void newOwner(Window)
        this->KSelectionWatcher::newOwner(*(Window*)x[1].s_class);
        (void)x; // noop (for compiler warning)
    }
    void x_13(Smoke::Stack x) {
        // void lostOwner()
        this->KSelectionWatcher::lostOwner();
        (void)x; // noop (for compiler warning)
    }
    static void x_14(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KSelectionWatcher::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_15(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KSelectionWatcher::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_16(Smoke::Stack x) {
        // KSelectionWatcher* KSelectionWatcher(unsigned long)
        x_KSelectionWatcher* xret = new x_KSelectionWatcher((unsigned long)x[1].s_ulong,(int)-1,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    static void x_17(Smoke::Stack x) {
        // KSelectionWatcher* KSelectionWatcher(unsigned long, int)
        x_KSelectionWatcher* xret = new x_KSelectionWatcher((unsigned long)x[1].s_ulong,(int)x[2].s_int,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    static void x_18(Smoke::Stack x) {
        // KSelectionWatcher* KSelectionWatcher(const char*)
        x_KSelectionWatcher* xret = new x_KSelectionWatcher((const char*)x[1].s_class,(int)-1,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    static void x_19(Smoke::Stack x) {
        // KSelectionWatcher* KSelectionWatcher(const char*, int)
        x_KSelectionWatcher* xret = new x_KSelectionWatcher((const char*)x[1].s_class,(int)x[2].s_int,(QObject*)NULL);
        x[0].s_class = (void*)xret;
    }
    static void x_20(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KSelectionWatcher::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4751, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KSelectionWatcher::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4752, (void*)this, x)) return (void*)x[0].s_class;
        return this->KSelectionWatcher::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4757, (void*)this, x)) return (int)x[0].s_int;
        return this->KSelectionWatcher::qt_metacall(x1, x2, x3);
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7575, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    ~x_KSelectionWatcher() { this->_binding->deleted(169, (void*)this); }
};
void xcall_KSelectionWatcher(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KSelectionWatcher *xself = (x_KSelectionWatcher*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KSelectionWatcher::x_3(args);	break;
        case 4: x_KSelectionWatcher::x_4(args);	break;
        case 5: x_KSelectionWatcher::x_5(args);	break;
        case 6: x_KSelectionWatcher::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KSelectionWatcher::x_8(args);	break;
        case 9: x_KSelectionWatcher::x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: x_KSelectionWatcher::x_14(args);	break;
        case 15: x_KSelectionWatcher::x_15(args);	break;
        case 16: x_KSelectionWatcher::x_16(args);	break;
        case 17: x_KSelectionWatcher::x_17(args);	break;
        case 18: x_KSelectionWatcher::x_18(args);	break;
        case 19: x_KSelectionWatcher::x_19(args);	break;
        case 20: x_KSelectionWatcher::x_20(args);	break;
        case 21: delete (KSelectionWatcher*)xself;	break;
    }
}
class x_KSelector : public KSelector, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            const QMetaObject* xret = ((const x_KSelector*)this)->KSelector::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KSelector*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            void* xret = this->KSelector::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KSelector::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KSelector::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KSelector::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KSelector::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            int xret = this->KSelector::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KSelector* KSelector(QWidget*)
        x_KSelector* xret = new x_KSelector((QWidget*)x[1].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelector(QWidget* x1) : KSelector(x1) {}
    static void x_9(Smoke::Stack x) {
        // KSelector* KSelector(Qt::Orientation, QWidget*)
        x_KSelector* xret = new x_KSelector((Qt::Orientation)x[1].s_enum,(QWidget*)x[2].s_class);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSelector(Qt::Orientation x1, QWidget* x2) : KSelector(x1, x2) {}
    void x_10(Smoke::Stack x) {
        // QRect contentsRect() const
        QRect xret = ((const x_KSelector*)this)->KSelector::contentsRect();
        x[0].s_class = (void*)new QRect(xret);
    }
    void x_11(Smoke::Stack x) {
        // void setIndent(bool)
        this->KSelector::setIndent((bool)x[1].s_bool);
        (void)x; // noop (for compiler warning)
    }
    void x_12(Smoke::Stack x) {
        // bool indent() const
        bool xret = ((const x_KSelector*)this)->KSelector::indent();
        x[0].s_bool = xret;
    }
    void x_13(Smoke::Stack x) {
        // void setArrowDirection(Qt::ArrowType)
        this->KSelector::setArrowDirection((Qt::ArrowType)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    void x_14(Smoke::Stack x) {
        // Qt::ArrowType arrowDirection() const
        Qt::ArrowType xret = ((const x_KSelector*)this)->KSelector::arrowDirection();
        x[0].s_enum = xret;
    }
    void x_15(Smoke::Stack x) {
        // virtual void drawContents(QPainter*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            this->KSelector::drawContents((QPainter*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->drawContents((QPainter*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_16(Smoke::Stack x) {
        // virtual void drawArrow(QPainter*, const QPoint&)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            this->KSelector::drawArrow((QPainter*)x[1].s_class,*(const QPoint*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->drawArrow((QPainter*)x[1].s_class,*(const QPoint*)x[2].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_17(Smoke::Stack x) {
        // virtual void paintEvent(QPaintEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            this->KSelector::paintEvent((QPaintEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->paintEvent((QPaintEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_18(Smoke::Stack x) {
        // virtual void mousePressEvent(QMouseEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            this->KSelector::mousePressEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->mousePressEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_19(Smoke::Stack x) {
        // virtual void mouseMoveEvent(QMouseEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            this->KSelector::mouseMoveEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->mouseMoveEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_20(Smoke::Stack x) {
        // virtual void mouseReleaseEvent(QMouseEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            this->KSelector::mouseReleaseEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->mouseReleaseEvent((QMouseEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    void x_21(Smoke::Stack x) {
        // virtual void wheelEvent(QWheelEvent*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSelector*>(this))) {
            this->KSelector::wheelEvent((QWheelEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        } else {
            this->wheelEvent((QWheelEvent*)x[1].s_class);
            (void)x; // noop (for compiler warning)
        }
    }
    static void x_22(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KSelector::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_23(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KSelector::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_24(Smoke::Stack x) {
        // KSelector* KSelector()
        x_KSelector* xret = new x_KSelector((QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_25(Smoke::Stack x) {
        // KSelector* KSelector(Qt::Orientation)
        x_KSelector* xret = new x_KSelector((Qt::Orientation)x[1].s_enum,(QWidget*)0);
        x[0].s_class = (void*)xret;
    }
    static void x_26(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KSelector::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4772, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KSelector::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4773, (void*)this, x)) return (void*)x[0].s_class;
        return this->KSelector::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4778, (void*)this, x)) return (int)x[0].s_int;
        return this->KSelector::qt_metacall(x1, x2, x3);
    }
    virtual void drawContents(QPainter* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4786, (void*)this, x)) return;
        this->KSelector::drawContents(x1);
    }
    virtual void drawArrow(QPainter* x1, const QPoint& x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)&x2;
        if (this->_binding->callMethod(4787, (void*)this, x)) return;
        this->KSelector::drawArrow(x1, x2);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4788, (void*)this, x)) return;
        this->KSelector::paintEvent(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4789, (void*)this, x)) return;
        this->KSelector::mousePressEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4790, (void*)this, x)) return;
        this->KSelector::mouseMoveEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4791, (void*)this, x)) return;
        this->KSelector::mouseReleaseEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4792, (void*)this, x)) return;
        this->KSelector::wheelEvent(x1);
    }
    virtual void sliderChange(QAbstractSlider::SliderChange x1) {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7313, (void*)this, x)) return;
        this->QAbstractSlider::sliderChange(x1);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7790, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7791, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7792, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7798, (void*)this, x)) return;
        this->QWidget::mouseDoubleClickEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7314, (void*)this, x)) return;
        this->QAbstractSlider::keyPressEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7803, (void*)this, x)) return;
        this->QWidget::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7804, (void*)this, x)) return;
        this->QWidget::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7809, (void*)this, x)) return;
        this->QWidget::resizeEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7811, (void*)this, x)) return;
        this->QWidget::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7814, (void*)this, x)) return;
        this->QWidget::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7815, (void*)this, x)) return;
        this->QWidget::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7816, (void*)this, x)) return;
        this->QWidget::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7817, (void*)this, x)) return;
        this->QWidget::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7818, (void*)this, x)) return;
        this->QWidget::showEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7819, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7317, (void*)this, x)) return;
        this->QAbstractSlider::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7823, (void*)this, x)) return;
        this->QWidget::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7824, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7312, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QAbstractSlider::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7315, (void*)this, x)) return;
        this->QAbstractSlider::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    ~x_KSelector() { this->_binding->deleted(170, (void*)this); }
};
void xcall_KSelector(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KSelector *xself = (x_KSelector*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KSelector::x_3(args);	break;
        case 4: x_KSelector::x_4(args);	break;
        case 5: x_KSelector::x_5(args);	break;
        case 6: x_KSelector::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KSelector::x_8(args);	break;
        case 9: x_KSelector::x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: xself->x_12(args);	break;
        case 13: xself->x_13(args);	break;
        case 14: xself->x_14(args);	break;
        case 15: xself->x_15(args);	break;
        case 16: xself->x_16(args);	break;
        case 17: xself->x_17(args);	break;
        case 18: xself->x_18(args);	break;
        case 19: xself->x_19(args);	break;
        case 20: xself->x_20(args);	break;
        case 21: xself->x_21(args);	break;
        case 22: x_KSelector::x_22(args);	break;
        case 23: x_KSelector::x_23(args);	break;
        case 24: x_KSelector::x_24(args);	break;
        case 25: x_KSelector::x_25(args);	break;
        case 26: x_KSelector::x_26(args);	break;
        case 27: delete (KSelector*)xself;	break;
    }
}
class x_KSeparator : public KSeparator, public __internal_SmokeClass {
    SmokeBinding* _binding;
public:
    void x_0(Smoke::Stack x) {
        // set the smoke binding
        _binding = (SmokeBinding*)x[1].s_class;
    }
    void x_1(Smoke::Stack x) {
        // virtual const QMetaObject* metaObject() const
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSeparator*>(this))) {
            const QMetaObject* xret = ((const x_KSeparator*)this)->KSeparator::metaObject();
            x[0].s_class = (void*)xret;
        } else {
            const QMetaObject* xret = ((const x_KSeparator*)this)->metaObject();
            x[0].s_class = (void*)xret;
        }
    }
    void x_2(Smoke::Stack x) {
        // virtual void* qt_metacast(const char*)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSeparator*>(this))) {
            void* xret = this->KSeparator::qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        } else {
            void* xret = this->qt_metacast((const char*)x[1].s_class);
            x[0].s_class = (void*)xret;
        }
    }
    static void x_3(Smoke::Stack x) {
        // static QString tr(const char*, const char*)
        QString xret = KSeparator::tr((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_4(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*)
        QString xret = KSeparator::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_5(Smoke::Stack x) {
        // static QString tr(const char*, const char*, int)
        QString xret = KSeparator::tr((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_6(Smoke::Stack x) {
        // static QString trUtf8(const char*, const char*, int)
        QString xret = KSeparator::trUtf8((const char*)x[1].s_class,(const char*)x[2].s_class,(int)x[3].s_int);
        x[0].s_class = (void*)new QString(xret);
    }
    void x_7(Smoke::Stack x) {
        // virtual int qt_metacall(QMetaObject::Call, int, void**)
        if (dynamic_cast<__internal_SmokeClass*>(static_cast<KSeparator*>(this))) {
            int xret = this->KSeparator::qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        } else {
            int xret = this->qt_metacall((QMetaObject::Call)x[1].s_enum,(int)x[2].s_int,(void**)x[3].s_class);
            x[0].s_int = xret;
        }
    }
    static void x_8(Smoke::Stack x) {
        // KSeparator* KSeparator(QWidget*, QFlags<Qt::WindowType>)
        x_KSeparator* xret = new x_KSeparator((QWidget*)x[1].s_class,(QFlags<Qt::WindowType>)x[2].s_uint);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSeparator(QWidget* x1, QFlags<Qt::WindowType> x2) : KSeparator(x1, x2) {}
    static void x_9(Smoke::Stack x) {
        // KSeparator* KSeparator(Qt::Orientation, QWidget*, QFlags<Qt::WindowType>)
        x_KSeparator* xret = new x_KSeparator((Qt::Orientation)x[1].s_enum,(QWidget*)x[2].s_class,(QFlags<Qt::WindowType>)x[3].s_uint);
        x[0].s_class = (void*)xret;
    }
    explicit x_KSeparator(Qt::Orientation x1, QWidget* x2, QFlags<Qt::WindowType> x3) : KSeparator(x1, x2, x3) {}
    void x_10(Smoke::Stack x) {
        // Qt::Orientation orientation() const
        Qt::Orientation xret = ((const x_KSeparator*)this)->KSeparator::orientation();
        x[0].s_enum = xret;
    }
    void x_11(Smoke::Stack x) {
        // void setOrientation(Qt::Orientation)
        this->KSeparator::setOrientation((Qt::Orientation)x[1].s_enum);
        (void)x; // noop (for compiler warning)
    }
    static void x_12(Smoke::Stack x) {
        // static QString tr(const char*)
        QString xret = KSeparator::tr((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_13(Smoke::Stack x) {
        // static QString trUtf8(const char*)
        QString xret = KSeparator::trUtf8((const char*)x[1].s_class,(const char*)0);
        x[0].s_class = (void*)new QString(xret);
    }
    static void x_14(Smoke::Stack x) {
        // KSeparator* KSeparator()
        x_KSeparator* xret = new x_KSeparator((QWidget*)0,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_15(Smoke::Stack x) {
        // KSeparator* KSeparator(QWidget*)
        x_KSeparator* xret = new x_KSeparator((QWidget*)x[1].s_class,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_16(Smoke::Stack x) {
        // KSeparator* KSeparator(Qt::Orientation)
        x_KSeparator* xret = new x_KSeparator((Qt::Orientation)x[1].s_enum,(QWidget*)0,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_17(Smoke::Stack x) {
        // KSeparator* KSeparator(Qt::Orientation, QWidget*)
        x_KSeparator* xret = new x_KSeparator((Qt::Orientation)x[1].s_enum,(QWidget*)x[2].s_class,(QFlags<Qt::WindowType>)0);
        x[0].s_class = (void*)xret;
    }
    static void x_18(Smoke::Stack x) {
        // static const QMetaObject staticMetaObject
        x[0].s_class = (void*)&KSeparator::staticMetaObject;
    }
    virtual const QMetaObject* metaObject() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(4799, (void*)this, x)) return (const QMetaObject*)x[0].s_class;
        return this->KSeparator::metaObject();
    }
    virtual void* qt_metacast(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(4800, (void*)this, x)) return (void*)x[0].s_class;
        return this->KSeparator::qt_metacast(x1);
    }
    virtual int qt_metacall(QMetaObject::Call x1, int x2, void** x3) {
        Smoke::StackItem x[4];
        x[1].s_enum = x1;
        x[2].s_int = x2;
        x[3].s_class = (void*)x3;
        if (this->_binding->callMethod(4805, (void*)this, x)) return (int)x[0].s_int;
        return this->KSeparator::qt_metacall(x1, x2, x3);
    }
    virtual void setVisible(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7790, (void*)this, x)) return;
        this->QWidget::setVisible(x1);
    }
    virtual QSize sizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7413, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QFrame::sizeHint();
    }
    virtual QSize minimumSizeHint() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7792, (void*)this, x)) {
            QSize* xptr = (QSize*)x[0].s_class;
            QSize xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::minimumSizeHint();
    }
    virtual int heightForWidth(int x1) const {
        Smoke::StackItem x[2];
        x[1].s_int = x1;
        if (this->_binding->callMethod(7793, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::heightForWidth(x1);
    }
    virtual void mousePressEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7796, (void*)this, x)) return;
        this->QWidget::mousePressEvent(x1);
    }
    virtual void mouseReleaseEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7797, (void*)this, x)) return;
        this->QWidget::mouseReleaseEvent(x1);
    }
    virtual void mouseDoubleClickEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7798, (void*)this, x)) return;
        this->QWidget::mouseDoubleClickEvent(x1);
    }
    virtual void mouseMoveEvent(QMouseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7799, (void*)this, x)) return;
        this->QWidget::mouseMoveEvent(x1);
    }
    virtual void wheelEvent(QWheelEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7800, (void*)this, x)) return;
        this->QWidget::wheelEvent(x1);
    }
    virtual void keyPressEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7801, (void*)this, x)) return;
        this->QWidget::keyPressEvent(x1);
    }
    virtual void keyReleaseEvent(QKeyEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7802, (void*)this, x)) return;
        this->QWidget::keyReleaseEvent(x1);
    }
    virtual void focusInEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7803, (void*)this, x)) return;
        this->QWidget::focusInEvent(x1);
    }
    virtual void focusOutEvent(QFocusEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7804, (void*)this, x)) return;
        this->QWidget::focusOutEvent(x1);
    }
    virtual void enterEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7805, (void*)this, x)) return;
        this->QWidget::enterEvent(x1);
    }
    virtual void leaveEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7806, (void*)this, x)) return;
        this->QWidget::leaveEvent(x1);
    }
    virtual void paintEvent(QPaintEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7415, (void*)this, x)) return;
        this->QFrame::paintEvent(x1);
    }
    virtual void moveEvent(QMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7808, (void*)this, x)) return;
        this->QWidget::moveEvent(x1);
    }
    virtual void resizeEvent(QResizeEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7809, (void*)this, x)) return;
        this->QWidget::resizeEvent(x1);
    }
    virtual void closeEvent(QCloseEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7810, (void*)this, x)) return;
        this->QWidget::closeEvent(x1);
    }
    virtual void contextMenuEvent(QContextMenuEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7811, (void*)this, x)) return;
        this->QWidget::contextMenuEvent(x1);
    }
    virtual void tabletEvent(QTabletEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7812, (void*)this, x)) return;
        this->QWidget::tabletEvent(x1);
    }
    virtual void actionEvent(QActionEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7813, (void*)this, x)) return;
        this->QWidget::actionEvent(x1);
    }
    virtual void dragEnterEvent(QDragEnterEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7814, (void*)this, x)) return;
        this->QWidget::dragEnterEvent(x1);
    }
    virtual void dragMoveEvent(QDragMoveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7815, (void*)this, x)) return;
        this->QWidget::dragMoveEvent(x1);
    }
    virtual void dragLeaveEvent(QDragLeaveEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7816, (void*)this, x)) return;
        this->QWidget::dragLeaveEvent(x1);
    }
    virtual void dropEvent(QDropEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7817, (void*)this, x)) return;
        this->QWidget::dropEvent(x1);
    }
    virtual void showEvent(QShowEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7818, (void*)this, x)) return;
        this->QWidget::showEvent(x1);
    }
    virtual void hideEvent(QHideEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7819, (void*)this, x)) return;
        this->QWidget::hideEvent(x1);
    }
    virtual bool x11Event(_XEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7820, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::x11Event(x1);
    }
    virtual void changeEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7416, (void*)this, x)) return;
        this->QFrame::changeEvent(x1);
    }
    virtual void inputMethodEvent(QInputMethodEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7823, (void*)this, x)) return;
        this->QWidget::inputMethodEvent(x1);
    }
    virtual QVariant inputMethodQuery(Qt::InputMethodQuery x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7824, (void*)this, x)) {
            QVariant* xptr = (QVariant*)x[0].s_class;
            QVariant xret(*xptr);
            delete xptr;
            return xret;
        }
        return this->QWidget::inputMethodQuery(x1);
    }
    virtual bool focusNextPrevChild(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7825, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QWidget::focusNextPrevChild(x1);
    }
    virtual void styleChange(QStyle& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7826, (void*)this, x)) return;
        this->QWidget::styleChange(x1);
    }
    virtual void enabledChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7827, (void*)this, x)) return;
        this->QWidget::enabledChange(x1);
    }
    virtual void paletteChange(const QPalette& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7828, (void*)this, x)) return;
        this->QWidget::paletteChange(x1);
    }
    virtual void fontChange(const QFont& x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)&x1;
        if (this->_binding->callMethod(7829, (void*)this, x)) return;
        this->QWidget::fontChange(x1);
    }
    virtual void windowActivationChange(bool x1) {
        Smoke::StackItem x[2];
        x[1].s_bool = x1;
        if (this->_binding->callMethod(7830, (void*)this, x)) return;
        this->QWidget::windowActivationChange(x1);
    }
    virtual void languageChange() {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7831, (void*)this, x)) return;
        this->QWidget::languageChange();
    }
    virtual bool event(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7414, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QFrame::event(x1);
    }
    virtual bool eventFilter(QObject* x1, QEvent* x2) {
        Smoke::StackItem x[3];
        x[1].s_class = (void*)x1;
        x[2].s_class = (void*)x2;
        if (this->_binding->callMethod(7576, (void*)this, x)) return (bool)x[0].s_bool;
        return this->QObject::eventFilter(x1, x2);
    }
    virtual void timerEvent(QTimerEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7577, (void*)this, x)) return;
        this->QObject::timerEvent(x1);
    }
    virtual void childEvent(QChildEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7578, (void*)this, x)) return;
        this->QObject::childEvent(x1);
    }
    virtual void customEvent(QEvent* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7579, (void*)this, x)) return;
        this->QObject::customEvent(x1);
    }
    virtual void connectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7580, (void*)this, x)) return;
        this->QObject::connectNotify(x1);
    }
    virtual void disconnectNotify(const char* x1) {
        Smoke::StackItem x[2];
        x[1].s_class = (void*)x1;
        if (this->_binding->callMethod(7581, (void*)this, x)) return;
        this->QObject::disconnectNotify(x1);
    }
    virtual int devType() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7789, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::devType();
    }
    virtual QPaintEngine* paintEngine() const {
        Smoke::StackItem x[1];
        if (this->_binding->callMethod(7794, (void*)this, x)) return (QPaintEngine*)x[0].s_class;
        return this->QWidget::paintEngine();
    }
    virtual int metric(QPaintDevice::PaintDeviceMetric x1) const {
        Smoke::StackItem x[2];
        x[1].s_enum = x1;
        if (this->_binding->callMethod(7822, (void*)this, x)) return (int)x[0].s_int;
        return this->QWidget::metric(x1);
    }
    ~x_KSeparator() { this->_binding->deleted(171, (void*)this); }
};
void xcall_KSeparator(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_KSeparator *xself = (x_KSeparator*)obj;
    switch(xi) {
        case 0: xself->x_0(args);	break;
        case 1: xself->x_1(args);	break;
        case 2: xself->x_2(args);	break;
        case 3: x_KSeparator::x_3(args);	break;
        case 4: x_KSeparator::x_4(args);	break;
        case 5: x_KSeparator::x_5(args);	break;
        case 6: x_KSeparator::x_6(args);	break;
        case 7: xself->x_7(args);	break;
        case 8: x_KSeparator::x_8(args);	break;
        case 9: x_KSeparator::x_9(args);	break;
        case 10: xself->x_10(args);	break;
        case 11: xself->x_11(args);	break;
        case 12: x_KSeparator::x_12(args);	break;
        case 13: x_KSeparator::x_13(args);	break;
        case 14: x_KSeparator::x_14(args);	break;
        case 15: x_KSeparator::x_15(args);	break;
        case 16: x_KSeparator::x_16(args);	break;
        case 17: x_KSeparator::x_17(args);	break;
        case 18: x_KSeparator::x_18(args);	break;
        case 19: delete (KSeparator*)xself;	break;
    }
}

}
