Exemplo n.º 1
0
QMeeGoPlatformInputContext::QMeeGoPlatformInputContext()
    : d(new QMeeGoPlatformInputContextPrivate(this))
{
    if (debug)
        qDebug() << "QMeeGoPlatformInputContext::QMeeGoPlatformInputContext()";
    QInputPanel *p = qApp->inputPanel();
    connect(p, SIGNAL(inputItemChanged()), this, SLOT(inputItemChanged()));
}
Exemplo n.º 2
0
InputNotifier::InputNotifier(QObject *parent) :
    QObject(parent)
{
    m_inputMethod = qApp->inputMethod();
    connect(m_inputMethod, SIGNAL(inputItemChanged()), this, SLOT(inputItemChanged()));
}
Exemplo n.º 3
0
    QIBusInputContextProxy *context;

    bool valid;
    QString predit;
};


QIBusPlatformInputContext::QIBusPlatformInputContext ()
    : d(new QIBusPlatformInputContextPrivate())
{
    if (d->context) {
        connect(d->context, SIGNAL(CommitText(QDBusVariant)), SLOT(commitText(QDBusVariant)));
        connect(d->context, SIGNAL(UpdatePreeditText(QDBusVariant,uint,bool)), this, SLOT(updatePreeditText(QDBusVariant,uint,bool)));
    }
    QInputPanel *p = qApp->inputPanel();
    connect(p, SIGNAL(inputItemChanged()), this, SLOT(inputItemChanged()));
    connect(p, SIGNAL(cursorRectangleChanged()), this, SLOT(cursorRectChanged()));
}

QIBusPlatformInputContext::~QIBusPlatformInputContext (void)
{
    delete d;
}

bool QIBusPlatformInputContext::isValid() const
{
    return d->valid;
}

void QIBusPlatformInputContext::invokeAction(QInputPanel::Action a, int x)
{