Desktop/remember DCs: remember dive computers that were used

The algorithm tries to keep the order of the buttons the same. So if a dive
computer was used that's already remembered, don't reorder the buttons. But if
a new dive computer is used, add it as the first one and move the others back,
potentially dropping the oldest one.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-09-21 12:17:24 -07:00
parent e2ee8c57df
commit 99261775ce
2 changed files with 45 additions and 0 deletions

View file

@ -59,6 +59,7 @@ private:
void markChildrenAsDisabled();
void markChildrenAsEnabled();
void updateDeviceEnabled();
void updateRememberedDCs();
QStringListModel vendorModel;
QStringListModel productModel;