mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-01 00:16:23 +00:00
feat(ui/views/App/Calls/ConferenceManager): in progress
This commit is contained in:
parent
853d46f15a
commit
6b17b76714
3 changed files with 49 additions and 7 deletions
|
|
@ -31,7 +31,9 @@ using namespace std;
|
|||
|
||||
// =============================================================================
|
||||
|
||||
ConferenceModel::ConferenceModel (QObject *parent) : QSortFilterProxyModel(parent) {}
|
||||
ConferenceModel::ConferenceModel (QObject *parent) : QSortFilterProxyModel(parent) {
|
||||
setSourceModel(CoreManager::getInstance()->getCallsListModel());
|
||||
}
|
||||
|
||||
bool ConferenceModel::filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const {
|
||||
const QModelIndex &index = sourceModel()->index(sourceRow, 0, sourceParent);
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ class ConferenceModel : public QSortFilterProxyModel {
|
|||
Q_OBJECT;
|
||||
|
||||
Q_PROPERTY(bool microMuted READ getMicroMuted WRITE setMicroMuted NOTIFY microMutedChanged);
|
||||
|
||||
Q_PROPERTY(bool recording READ getRecording NOTIFY recordingChanged);
|
||||
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ import QtQuick 2.7
|
|||
import QtQuick.Layouts 1.3
|
||||
|
||||
import Common 1.0
|
||||
import Common.Styles 1.0
|
||||
import Linphone 1.0
|
||||
import LinphoneUtils 1.0
|
||||
import Utils 1.0
|
||||
|
||||
import App.Styles 1.0
|
||||
|
||||
|
|
@ -15,10 +15,6 @@ Rectangle {
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
ConferenceModel {
|
||||
id: conference
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
anchors {
|
||||
fill: parent
|
||||
|
|
@ -96,6 +92,51 @@ Rectangle {
|
|||
Layout.fillWidth: true
|
||||
Layout.fillHeight: true
|
||||
Layout.margins: CallStyle.container.margins
|
||||
|
||||
|
||||
GridView {
|
||||
id: grid
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
cellHeight: 145
|
||||
cellWidth: 154
|
||||
|
||||
model: ConferenceModel {
|
||||
id: conference
|
||||
}
|
||||
|
||||
delegate: ColumnLayout {
|
||||
readonly property string sipAddress: $call.sipAddress
|
||||
readonly property var sipAddressObserver: SipAddressesModel.getSipAddressObserver(sipAddress)
|
||||
|
||||
height: grid.cellHeight
|
||||
width: grid.cellWidth
|
||||
|
||||
ContactDescription {
|
||||
id: contactDescription
|
||||
|
||||
Layout.preferredHeight: 35
|
||||
Layout.fillWidth: true
|
||||
|
||||
horizontalTextAlignment: Text.AlignHCenter
|
||||
sipAddress: parent.sipAddressObserver.sipAddress
|
||||
username: LinphoneUtils.getContactUsername(parent.sipAddressObserver.contact || parent.sipAddress)
|
||||
}
|
||||
|
||||
Avatar {
|
||||
height: parent.width
|
||||
width: parent.width
|
||||
|
||||
backgroundColor: CallStyle.container.avatar.backgroundColor
|
||||
foregroundColor: incall.call.status === CallModel.CallStatusPaused
|
||||
? CallStyle.container.pause.color
|
||||
: 'transparent'
|
||||
image: parent.sipAddressObserver.contact && parent.sipAddressObserver.contact.vcard.avatar
|
||||
username: contactDescription.username
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue