Commit 4156fdff authored by Andreas Traczyk's avatar Andreas Traczyk

callview: don't hide overlay when call is paused

- Keeps the overlay from fading when paused.
- Keeps the timer updated when paused.
- Increases the font size for the overlay name and time

Change-Id: Ia8fcea3359ee25f312c7f4ddc35c6dde41ee58f4
parent ad099080
......@@ -77,7 +77,8 @@ VideoOverlay::setTime()
}
try {
auto callInfo = LRCInstance::getCurrentCallModel()->getCall(callId_);
if (callInfo.status == lrc::api::call::Status::IN_PROGRESS) {
if (callInfo.status == lrc::api::call::Status::IN_PROGRESS ||
callInfo.status == lrc::api::call::Status::PAUSED) {
int numSeconds = std::chrono::duration_cast<std::chrono::seconds>(
std::chrono::steady_clock::now() - callInfo.startTime).count();
QTime t(0, 0, numSeconds);
......@@ -95,7 +96,9 @@ VideoOverlay::setVideoMuteVisibility(bool visible)
bool
VideoOverlay::shouldShowOverlay()
{
return ui->bottomButtons->underMouse() || ui->topInfoBar->underMouse();
auto callInfo = LRCInstance::getCurrentCallModel()->getCall(callId_);
auto callPaused = callInfo.status == lrc::api::call::Status::PAUSED;
return ui->bottomButtons->underMouse() || ui->topInfoBar->underMouse() || callPaused;
}
void
......
......@@ -316,6 +316,11 @@
</disabled>
</palette>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="toolTip">
<string>Name label</string>
</property>
......@@ -376,6 +381,11 @@
</disabled>
</palette>
</property>
<property name="font">
<font>
<pointsize>9</pointsize>
</font>
</property>
<property name="toolTip">
<string>Time elapsed</string>
</property>
......
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