client: Don't store the list of properties in every PropertyMapItem
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 29 Aug 2018 20:11:46 +0000 (22:11 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 3 Sep 2018 20:13:17 +0000 (22:13 +0200)
commit48dda5f3e963e13e36300ddaef262660bf169672
treeec8124d7ebb90c9fa82dc64ebef045664b524942
parentd1e7cc01969e8fb8cfc20a62a29176f417fc3507
client: Don't store the list of properties in every PropertyMapItem

It's rather inefficient to store a QStringList in every item, since
it is the same for every type of item anyway. Use a pure virtual
accessor in the base class instead, and return a static QStringList
in every item type.

This prevents the usecase of adding properties dynamically after
creation, but we didn't use that feature anyway, so remove it.
src/client/networkmodel.cpp
src/client/networkmodel.h
src/client/treemodel.cpp
src/client/treemodel.h