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:
parent
8c344b7c3d
commit
2596c9700b
@ -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) });
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user