replace a SLOT macro with SIGNAL where a signal is triggered
[staging/HomeScreen.git] / HomeScreen / src / layouthandler.cpp
index b2bfd17..6aad54b 100644 (file)
@@ -33,7 +33,7 @@ LayoutHandler::LayoutHandler(QObject *parent) :
                                        "org.agl.windowmanager",
                                        "surfaceVisibilityChanged",
                                        this,
-                                       SLOT(surfaceVisibilityChanged(int,bool)));
+                                       SIGNAL(surfaceVisibilityChanged(int,bool)));
 }
 
 LayoutHandler::~LayoutHandler()
@@ -277,7 +277,7 @@ void LayoutHandler::setLayoutByName(QString layoutName)
 void LayoutHandler::requestSurfaceVisibilityChanged(int surfaceId, bool visible)
 {
     qDebug("requestSurfaceVisibilityChanged %d %s", surfaceId, visible ? "true" : "false");
-    surfaceVisibilityChanged(surfaceId, visible);
+    emit surfaceVisibilityChanged(surfaceId, visible);
 }
 
 void LayoutHandler::timerEvent(QTimerEvent *e)