Remove unnecessary file
[staging/HomeScreen.git] / HomeScreen / src / applauncherwidget.cpp
index 2cd5b17..26b80a0 100644 (file)
@@ -114,17 +114,17 @@ void AppLauncherWidget::populateAppList()
     }
 
 
-    for (i = 0; i < (mp_appTable->rowCount() * APP_LIST_COLUMN_COUNT); i++)
+    /*for (i = 0; i < (mp_appTable->rowCount() * APP_LIST_COLUMN_COUNT); i++)
     {
         mp_appTable->verticalHeader()->resizeSection(i, 190);
         mp_appTable->horizontalHeader()->resizeSection(i, 190);
-    }
+    }*/
 
     for (i = 0; i < m_appList.size(); i++)
     {
        mp_appTable->setItem(i / APP_LIST_COLUMN_COUNT,
                             i % APP_LIST_COLUMN_COUNT,
-                            new QTableWidgetItem(m_appList.at(i).name));
+                            new QTableWidgetItem(m_appList.at(i).name()));
        mp_appTable->item(i / APP_LIST_COLUMN_COUNT,
                          i % APP_LIST_COLUMN_COUNT)->setFlags(Qt::ItemIsEnabled);
        mp_appTable->item(i / APP_LIST_COLUMN_COUNT,
@@ -136,13 +136,13 @@ void AppLauncherWidget::on_tableView_clicked(int row, int col)
 {
     if (m_appList.size() > row * APP_LIST_COLUMN_COUNT + col)
     {
-        int pid = mp_dBusAppFrameworkProxy->launchApp(m_appList.at(row * APP_LIST_COLUMN_COUNT + col).id);
-        qDebug("%d, %d: start app %s", row, col, m_appList.at(row * APP_LIST_COLUMN_COUNT + col).id.toStdString().c_str());
+        int pid = mp_dBusAppFrameworkProxy->launchApp(m_appList.at(row * APP_LIST_COLUMN_COUNT + col).id());
+        qDebug("%d, %d: start app %s", row, col, m_appList.at(row * APP_LIST_COLUMN_COUNT + col).id().toStdString().c_str());
         qDebug("pid: %d", pid);
 
         // the new app wants to be visible by default
-        newRequestsToBeVisibleApp(pid);
+        emit newRequestsToBeVisibleApp(pid);
 
-        showAppLayer();
+        emit showAppLayer();
     }
 }