summaryrefslogtreecommitdiffhomepage
path: root/options/connector.cpp
AgeCommit message (Collapse)Author
2017-03-21options/{bundle,connector,value}: allow setting to default valuesStanislaw Halik
This is complicated by Qt's rejection of template classes. Also move some stuff to slots where makes sense.
2016-10-11options/connector: bundle can't be null at all hereStanislaw Halik
It's a shared_ptr<detail::bundle> stored in base_value.
2016-10-11options/connector: fix pointless check for nullptrStanislaw Halik
2016-09-18add missing copyright termsStanislaw Halik
Due to fucking AT&T vs BSD suit copyright defaults to all rights reserved. Fuck Berne Convention as well.
2016-08-25options: use non-generic comparison for bundle modification checkStanislaw Halik
The generic QVariant comparison works badly for QList<QPointF>. Create a comparator between two QVariants for base_value in value<tp> ctor, using QVariant::value<tp> which returns right results once it's converted to tp. If a value was registered for a name in a bundle, use that comparator as the comparator for that name. In case conflicting value types were registered always use generic comparison for that name. std::type_index needs to be used here since value<t> can be instantiated in different modules (libraries), resulting in different value for the comparator function pointer. Move group::operator== to bundle type to avoid circular include for connector.h. Also use element_type more consistently in value<tp>.
2016-08-23options/bundle: treat bundles with empty names speciallyStanislaw Halik
They're now not cached in the singleton. Operations like "reload", "save", and connector stuff short-circuit to prevent anything done with them
2016-08-20options/connector: spew more warningsStanislaw Halik
2016-08-20options/connector: spew warning when init/deinit mismatchStanislaw Halik
2016-08-20options/connector: fix infinite loopStanislaw Halik
2016-08-20options/{connector,base_value}: add missing dtor call. rename callees.Stanislaw Halik
2016-08-18options: factor out connector out of bundleStanislaw Halik