Start work on launching a stream from QML and rip out remaining QtWidgets

This commit is contained in:
Cameron Gutman
2018-07-07 16:30:26 -07:00
parent d5cc07f107
commit 60ad95bb7b
11 changed files with 83 additions and 55 deletions

View File

@@ -19,6 +19,14 @@ void AppModel::initialize(ComputerManager* computerManager, int computerIndex)
m_CurrentGameId = m_Computer->currentGameId;
}
Session* AppModel::createSessionForApp(int appIndex)
{
Q_ASSERT(appIndex < m_Apps.count());
NvApp app = m_Apps.at(appIndex);
return new Session(m_Computer, app);
}
int AppModel::rowCount(const QModelIndex &parent) const
{
// For list models only the root node (an invalid parent) should return the list's size. For all