Mercurial > hg > svcore
changeset 1458:0fb5d4e6edeb
Note about Q_OBJECT and lupdate
author | Chris Cannam |
---|---|
date | Tue, 24 Apr 2018 15:02:54 +0100 |
parents | 0925b37a3ed1 |
children | 3a128665fa6f 45519a9836e6 |
files | data/model/SparseModel.h |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);