Commit a20501fd authored by Edric Milaret's avatar Edric Milaret Committed by Stepan Salenikovich

ui: fix caller photo not being set

Patchset 3515 needed before merge

Change-Id: I207ebabbf324d2707f8ccbd1a8fada23daacb08e
Tuleap: #148
parent 0b7fe5dc
......@@ -322,6 +322,10 @@ CallWidget::callIncoming(Call* call)
if (!call->account()->isAutoAnswer()) {
ui->callerIdLabel->setText(QString(tr("%1", "%1 is the name of the caller"))
.arg(call->formattedName()));
ui->callerPhoto->setPixmap(
QPixmap::fromImage(
GlobalInstances::pixmapManipulator()
.callPhoto(call, QSize(130,130)).value<QImage>()));
ui->stackedWidget->setCurrentWidget(ui->callInvitePage);
}
setActualCall(call);
......
......@@ -946,7 +946,7 @@
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_2">
<widget class="QLabel" name="callerPhoto">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Minimum">
<horstretch>0</horstretch>
......
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