# HG changeset patch # User Chris Cannam # Date 1524578574 -3600 # Node ID 0fb5d4e6edeb7ea21d9827417fa11fa72055de19 # Parent 0925b37a3ed12c330ff25c997a845ac6aaf91129 Note about Q_OBJECT and lupdate diff -r 0925b37a3ed1 -r 0fb5d4e6edeb data/model/SparseModel.h --- a/data/model/SparseModel.h Tue Apr 24 14:13:51 2018 +0100 +++ b/data/model/SparseModel.h Tue Apr 24 15:02:54 2018 +0100 @@ -43,6 +43,13 @@ class SparseModel : public Model, public TabularModel { + // If we omit the Q_OBJECT macro, lupdate complains. + + // If we include it, moc fails (can't handle template classes). + + // If we omit it, lupdate still seems to emit translatable + // messages for the tr() strings in here. So I guess we omit it. + public: SparseModel(sv_samplerate_t sampleRate, int resolution, bool notifyOnAdd = true);