1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00

Remove explicit wigdet count workaround

We now list to the pipe connection to make this
behavior implicit.
This commit is contained in:
Elias Steurer 2021-05-23 17:24:52 +02:00
parent 8c344b7c3d
commit 2596c9700b
2 changed files with 0 additions and 2 deletions

View File

@ -83,7 +83,6 @@ void ScreenPlayWidget::setSDKConnection(std::unique_ptr<SDKConnection> connectio
{
m_connection = std::move(connection);
qInfo() << "[3/3] SDKConnected (Widged) saved!";
QObject::connect(m_connection.get(), &SDKConnection::requestDecreaseWidgetCount, this, [this]() { emit requestClose(appID()); });
QObject::connect(m_connection.get(), &SDKConnection::jsonMessageReceived, this, [this](const QJsonObject obj) {
if (obj.value("messageType") == "positionUpdate") {
setPosition({ obj.value("positionX").toInt(0), obj.value("positionY").toInt(0) });

View File

@ -82,7 +82,6 @@ signals:
void appIDChanged(QString appID);
void monitorChanged(QVector<int> monitor);
void typeChanged(QString type);
void requestDecreaseWidgetCount();
void requestRaise();
void appConnected(const ScreenPlay::SDKConnection* connection);
void jsonMessageReceived(const QJsonObject obj);