Add time to the sensor list widget, also broadcast and recive the time of a sensor
This commit is contained in:
@ -144,7 +144,7 @@ void ItemSettingsDialog::addActor()
|
||||
|
||||
void ItemSettingsDialog::removeActor()
|
||||
{
|
||||
if(item_->getActors().size() > ui->tableWidget->currentRow())
|
||||
if(item_->getActors().size() > static_cast<size_t>(ui->tableWidget->currentRow()))
|
||||
{
|
||||
item_->removeActor(item_->getActors().at(ui->tableWidget->currentRow()));
|
||||
loadActorList();
|
||||
@ -153,7 +153,7 @@ void ItemSettingsDialog::removeActor()
|
||||
|
||||
void ItemSettingsDialog::editActor()
|
||||
{
|
||||
if(item_->getActors().size() > ui->tableWidget->currentRow())
|
||||
if(item_->getActors().size() > static_cast<size_t>(ui->tableWidget->currentRow()))
|
||||
{
|
||||
std::shared_ptr<Actor> actor = item_->getActors()[ui->tableWidget->currentRow()];
|
||||
|
||||
@ -177,7 +177,7 @@ void ItemSettingsDialog::editActor()
|
||||
dialog->show();
|
||||
dialog->exec();
|
||||
|
||||
for(int i = 0; i < ui->tableWidget->rowCount() && i < item_->getActors().size(); ++i)
|
||||
for(int i = 0; i < ui->tableWidget->rowCount() && i < static_cast<size_t>(item_->getActors().size()); ++i)
|
||||
{
|
||||
ui->tableWidget->item(i, 0)->setText(item_->getActors()[i]->getName());
|
||||
ui->tableWidget->item(i, 1)->setText(item_->getActors()[i]->actionName());
|
||||
|
Reference in New Issue
Block a user