remove incorrectly functioning widgets/views based on old lrc
- Removes callutilsdialog and contactpicker used as a filtered
smartlist proxy for selecting contacts when transferring SIP
calls or adding to a conference.
- Removes some other widgets that were not being used.
- Diminishes use of old lrc models.
Change-Id: I17847c87a67d117e47dd5db9ca35b2139159312c
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
diff --git a/videoview.cpp b/videoview.cpp
index 36c0a30..b461e61 100644
--- a/videoview.cpp
+++ b/videoview.cpp
@@ -22,11 +22,6 @@
#include "utils.h"
#include "lrcinstance.h"
-#include "video/devicemodel.h"
-#include "video/sourcemodel.h"
-#include "recentmodel.h"
-#include "media/video.h"
-
#include <QGraphicsOpacityEffect>
#include <QPropertyAnimation>
#include <QDesktopWidget>
@@ -325,24 +320,6 @@
}
void
-VideoView::pushRenderer(Call* call) {
- if (not call) {
- disconnect(videoStartedConnection_);
- return;
- }
- if (auto renderer = call->videoRenderer()) {
- slotVideoStarted(renderer);
- } else {
- disconnect(videoStartedConnection_);
- videoStartedConnection_ = connect(call,
- SIGNAL(videoStarted(Video::Renderer*)),
- this,
- SLOT(slotVideoStarted(Video::Renderer*)));
- }
- ui->videoWidget->setPreviewDisplay(call->type() != Call::Type::CONFERENCE);
-}
-
-void
VideoView::pushRenderer(const std::string& callUid) {
auto callModel = LRCInstance::getCurrentCallModel();
@@ -357,7 +334,7 @@
[this](const std::string& callId, Video::Renderer* renderer) {
Q_UNUSED(callId);
slotVideoStarted(renderer);
- this->overlay_->setVideoMuteVisibility(LRCInstance::getCurrentCallModel()->getCall(callId).isAudioOnly);
+ this->overlay_->setVideoMuteVisibility(!LRCInstance::getCurrentCallModel()->getCall(callId).isAudioOnly);
});
ui->videoWidget->setPreviewDisplay(call.type != lrc::api::call::Type::CONFERENCE);
}