QComboBox: Implement support for IM queries with QVariant argument
Change-Id: If59c36fa1b18a0d5562047dd06758fbcdbf63bc7 Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
This commit is contained in:
parent
f942d82d14
commit
48e30656a7
@ -3352,6 +3352,14 @@ QVariant QComboBox::inputMethodQuery(Qt::InputMethodQuery query) const
|
|||||||
return QWidget::inputMethodQuery(query);
|
return QWidget::inputMethodQuery(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QVariant QComboBox::inputMethodQuery(Qt::InputMethodQuery query, const QVariant &argument) const
|
||||||
|
{
|
||||||
|
Q_D(const QComboBox);
|
||||||
|
if (d->lineEdit)
|
||||||
|
return d->lineEdit->inputMethodQuery(query, argument);
|
||||||
|
return QWidget::inputMethodQuery(query);
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\fn void QComboBox::addItem(const QString &text, const QVariant &userData)
|
\fn void QComboBox::addItem(const QString &text, const QVariant &userData)
|
||||||
|
|
||||||
|
@ -202,6 +202,7 @@ public:
|
|||||||
|
|
||||||
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||||
QVariant inputMethodQuery(Qt::InputMethodQuery) const Q_DECL_OVERRIDE;
|
QVariant inputMethodQuery(Qt::InputMethodQuery) const Q_DECL_OVERRIDE;
|
||||||
|
Q_INVOKABLE QVariant inputMethodQuery(Qt::InputMethodQuery query, const QVariant &argument) const;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void clear();
|
void clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user