mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2021-02-08 Fred Gleason <fredg@paravelsystems.com>
* Refactored the library list in the 'Edit Event' dialog in rdlogmanger(1) to use the model based API. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -168,6 +168,25 @@ QString RDGroupListModel::groupName(const QModelIndex &row) const
|
||||
}
|
||||
|
||||
|
||||
QStringList RDGroupListModel::allGroupNames() const
|
||||
{
|
||||
QStringList ret;
|
||||
|
||||
if(d_show_all) {
|
||||
for(int i=1;i<d_texts.size();i++) {
|
||||
ret.push_back(d_texts.at(i).at(0).toString());
|
||||
}
|
||||
}
|
||||
else {
|
||||
for(int i=0;i<d_texts.size();i++) {
|
||||
ret.push_back(d_texts.at(i).at(0).toString());
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
QModelIndex RDGroupListModel::addGroup(const QString &grpname)
|
||||
{
|
||||
//
|
||||
|
Reference in New Issue
Block a user