mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
update screen list when screen plugged/unplugged #LINQT-2454
This commit is contained in:
parent
5bb9c1a6a4
commit
8c7ddd2a14
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ScreenList.hpp"
|
#include "ScreenList.hpp"
|
||||||
|
#include "core/App.hpp"
|
||||||
|
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QScreen>
|
#include <QScreen>
|
||||||
|
|
@ -28,6 +30,8 @@
|
||||||
|
|
||||||
ScreenList::ScreenList(QObject *parent) : AbstractListProxy(parent) {
|
ScreenList::ScreenList(QObject *parent) : AbstractListProxy(parent) {
|
||||||
connect(this, &ScreenList::modeChanged, this, &ScreenList::update);
|
connect(this, &ScreenList::modeChanged, this, &ScreenList::update);
|
||||||
|
connect(App::getInstance(), &App::screenAdded, this, &ScreenList::update);
|
||||||
|
connect(App::getInstance(), &App::screenRemoved, this, &ScreenList::update);
|
||||||
}
|
}
|
||||||
|
|
||||||
ScreenList::~ScreenList() {
|
ScreenList::~ScreenList() {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue