mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: port tag-list to C++
Also adds a new test, which tests merging of two tag-lists. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
640ecb345b
commit
f18acf6fb9
25 changed files with 195 additions and 227 deletions
|
@ -341,11 +341,8 @@ void DiveComponentSelection::buttonClicked(QAbstractButton *button)
|
|||
text << tr("Suit: ") << current_dive->suit << "\n";
|
||||
if (what-> tags) {
|
||||
text << tr("Tags: ");
|
||||
tag_entry *entry = current_dive->tag_list;
|
||||
while (entry) {
|
||||
text << entry->tag->name.c_str() << " ";
|
||||
entry = entry->next;
|
||||
}
|
||||
for (const divetag *tag: current_dive->tags)
|
||||
text << tag->name.c_str() << " ";
|
||||
text << "\n";
|
||||
}
|
||||
if (what->cylinders) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue