2021-01-15 Fred Gleason <fredg@paravelsystems.com>

* Modified 'RDLogListModel::logName()' to take 'QModelIndex'
	instead of 'int'.
	* Modified 'RDLogListModel::removeLog()' to take 'QModelIndex'
	instead of 'int'.
	* Modified 'RDLogListModel::addLog()' to return 'QModelIndex' instead
	of 'int'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-01-15 09:20:41 -05:00
parent d6b2b22462
commit 6ecad43241
8 changed files with 68 additions and 44 deletions

View File

@@ -327,8 +327,8 @@ ListLog::ListLog(RDLogPlay *log,int id,bool allow_pause,
//
// Map Slots
//
connect(list_log,SIGNAL(reloaded()),this,SLOT(logReloadedData()));
connect(list_log,SIGNAL(played(int)),this,SLOT(logPlayedData(int)));
// connect(list_log,SIGNAL(reloaded()),this,SLOT(logReloadedData()));
// connect(list_log,SIGNAL(played(int)),this,SLOT(logPlayedData(int)));
connect(list_log,SIGNAL(paused(int)),this,SLOT(logPausedData(int)));
connect(list_log,SIGNAL(stopped(int)),this,SLOT(logStoppedData(int)));
connect(list_log,SIGNAL(inserted(int)),this,SLOT(logInsertedData(int)));

View File

@@ -153,7 +153,7 @@ void ListLogs::loadButtonData()
return;
}
*list_logname=list_log_model->logName(list_log_view->selectionModel()->
selectedRows().at(0).row());
selectedRows().at(0));
done(ListLogs::Load);
}