}
- 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,
{
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();
}
}