filter panel

This commit is contained in:
2019-03-19 16:55:28 +01:00
parent 95179c2db1
commit ead5308a97
15 changed files with 485 additions and 15 deletions
+10 -1
View File
@@ -213,6 +213,9 @@ void cToolBoxPerson::onPersonAdd()
m_lpPersonListModel->appendRow(lpItem);
m_lpPersonListModel->sort(0);
emit personAdded(lpPerson);
emit personListChanged();
m_bLoading = false;
}
@@ -242,6 +245,9 @@ void cToolBoxPerson::onPersonEdit()
return;
lpItem->setText(input.textValue());
emit personEdited(lpPerson);
emit personListChanged();
}
void cToolBoxPerson::onPersonDelete()
@@ -260,12 +266,15 @@ void cToolBoxPerson::onPersonDelete()
if(!m_lpPersonList->remove(lpPerson))
QMessageBox::critical(this, tr("Delete Person"), QString(tr("%1 is in use and can't be deleted!")).arg(lpPerson->name()));
else
{
m_lpPersonListModel->removeRow(index.row());
emit personRemoved(lpPerson);
}
}
}
}
}
emit personListChanged();
}
void cToolBoxPerson::onPersonViewContextMenu(const QPoint& pos)