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

call: move call incoming dialog

- Center the dialog
- Display the formatted name of the call

Refs #75536

Change-Id: I2dcd8e3a648174e8b8bc817fcb5c9623418f5022
parent 3aca8e39
......@@ -203,6 +203,7 @@ void
CallWidget::callIncoming(Call *call)
{
if (!call->account()->isAutoAnswer()) {
ui->callLabel->setText("Call from " + call->formattedName());
ui->callInvite->setVisible(true);
ui->callInvite->raise();
}
......
......@@ -50,13 +50,32 @@
<item>
<widget class="VideoView" name="videoWidget" native="true"/>
</item>
<item>
<item alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QWidget" name="callInvite" native="true">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="ressources.qrc">:/images/account.png</pixmap>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="callLabel">
<property name="font">
<font>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Call</string>
</property>
......@@ -66,6 +85,9 @@
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="topMargin">
<number>20</number>
</property>
<item>
<widget class="QPushButton" name="acceptButton">
<property name="text">
......@@ -353,15 +375,15 @@
</widget>
<customwidgets>
<customwidget>
<class>VideoView</class>
<class>InstantMessagingWidget</class>
<extends>QWidget</extends>
<header>videoview.h</header>
<header>instantmessagingwidget.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>InstantMessagingWidget</class>
<class>VideoView</class>
<extends>QWidget</extends>
<header>instantmessagingwidget.h</header>
<header>videoview.h</header>
<container>1</container>
</customwidget>
</customwidgets>
......
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