Skip to content
Snippets Groups Projects
Commit 223bcc8c authored by Olivier SOLDANO's avatar Olivier SOLDANO Committed by Guillaume Roguez
Browse files

change video overlay buttons if fullscreen


the buttons back and config were shown on the overlay
in full screen. However due the the preemption of the full screen
mode, they seem to have no effect for the user, but changes the page
in background.
Thus when in full screen, these buttons are hidden.

Change-Id: Iba0bd7f5630523a7f56a932bc96cf0eb583c4266
Reviewed-by: default avatarGuillaume Roguez <guillaume.roguez@savoirfairelinux.com>
parent 8179e996
No related branches found
No related tags found
No related merge requests found
......@@ -19,12 +19,16 @@
#include "videooverlay.h"
#include "ui_videooverlay.h"
// Client
#include "contactpicker.h"
// LRC
#include "callmodel.h"
#include "contactmethod.h"
#include "person.h"
VideoOverlay::VideoOverlay(QWidget* parent) :
QWidget(parent),
ui(new Ui::VideoOverlay),
......@@ -101,6 +105,9 @@ VideoOverlay::VideoOverlay(QWidget* parent) :
connect(qualityDialog_, &QualityDialog::isVisible, [this] (bool visible) {
dialogVisible_ = visible;
});
// temporary hide
ui->addPersonButton->hide();
}
VideoOverlay::~VideoOverlay()
......@@ -122,6 +129,17 @@ VideoOverlay::setTime(const QString& time)
ui->timerLabel->setText(time);
}
void VideoOverlay::toggleContextButtons(bool visible)
{
if (! visible) {
ui->videoCfgBtn->hide();
ui->videoBackBtn->hide();
} else {
ui->videoCfgBtn->show();
ui->videoBackBtn->show();
}
}
void
VideoOverlay::on_hangupButton_clicked()
{
......
......@@ -42,6 +42,7 @@ public:
void setName(const QString& name);
void setTime(const QString& time);
inline bool isDialogVisible(){ return dialogVisible_; };
void toggleContextButtons(bool visible);
//UI SLOTS
private slots:
......
......@@ -185,6 +185,7 @@ VideoView::dropEvent(QDropEvent* event)
void
VideoView::toggleFullScreen()
{
overlay_->toggleContextButtons(isFullScreen());
if(isFullScreen()) {
dynamic_cast<QSplitter*>(oldParent_)->insertWidget(0,this);
this->resize(oldSize_.width(), oldSize_.height());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment