diff options
author | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2016-11-30 13:34:30 +0900 |
---|---|---|
committer | Tasuku Suzuki <tasuku.suzuki@qt.io> | 2016-11-30 15:18:03 +0900 |
commit | 4ccab203994f2472641c429bb4b86535c5128884 (patch) | |
tree | 131e27f500bbeb7e8181f2e3756c6116dfdb0288 /HomeScreen/src/applauncherwidget.cpp | |
parent | 75a4e94d7610db25c98f05cdda9491f4e7c0a4db (diff) |
improve AppInfo class
hide public member variables and introduce getters and setters for them.
Change-Id: I9108e94516238ef2ff8d4ea18db381d4e7e73bec
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'HomeScreen/src/applauncherwidget.cpp')
-rw-r--r-- | HomeScreen/src/applauncherwidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/HomeScreen/src/applauncherwidget.cpp b/HomeScreen/src/applauncherwidget.cpp index 2cd5b17..efa4c2a 100644 --- a/HomeScreen/src/applauncherwidget.cpp +++ b/HomeScreen/src/applauncherwidget.cpp @@ -124,7 +124,7 @@ void AppLauncherWidget::populateAppList() { 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,8 +136,8 @@ 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 |