X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=HomeScreen%2Fsrc%2Fapplauncherwidget.cpp;h=26b80a0a0ab08b5ee91433bd317ad157f08bd78b;hb=43c6b242b71a35a164b8e14a54c99f2bf667b37b;hp=2cd5b178a478552894e66a9a086ab091958c5dba;hpb=dd8c90f87463d370c3076e13b7c6cc0e27c0d2f5;p=staging%2FHomeScreen.git diff --git a/HomeScreen/src/applauncherwidget.cpp b/HomeScreen/src/applauncherwidget.cpp index 2cd5b17..26b80a0 100644 --- a/HomeScreen/src/applauncherwidget.cpp +++ b/HomeScreen/src/applauncherwidget.cpp @@ -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(); } }