Commit fa05d97b authored by Edric Milaret's avatar Edric Milaret Committed by Alexandre Lision

ui: activate search field on smartList

Change-Id: Ib686f55720db14784f2a6a5860a95d765fa88b4d
Tuleap: #148
parent 33cb4830
......@@ -106,6 +106,8 @@ CallWidget::CallWidget(QWidget* parent) :
, this
, SLOT(findRingAccount(QModelIndex, QModelIndex, QVector<int>)));
RecentModel::instance().peopleProxy()->setFilterRole(static_cast<int>(Ring::Role::Name));
RecentModel::instance().peopleProxy()->setFilterCaseSensitivity(Qt::CaseInsensitive);
ui->smartList->setModel(RecentModel::instance().peopleProxy());
connect(ui->smartList->selectionModel(),
SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
......@@ -543,3 +545,9 @@ CallWidget::slotAccountMessageReceived(const QMap<QString,QString> message,
ui->listMessageView->scrollToBottom();
}
void
CallWidget::on_ringContactLineEdit_textEdited(const QString& text)
{
RecentModel::instance().peopleProxy()->setFilterWildcard(text);
}
......@@ -75,6 +75,7 @@ private slots:
void on_sendButton_clicked();
void on_messageEdit_returnPressed();
void on_contactMethodComboBox_currentIndexChanged(const QString& number);
void on_ringContactLineEdit_textEdited(const QString& text);
private slots:
void callIncoming(Call* call);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment