diff data/model/SparseModel.h @ 1458:0fb5d4e6edeb

Note about Q_OBJECT and lupdate
author Chris Cannam
date Tue, 24 Apr 2018 15:02:54 +0100
parents 904e031c9c76
children f68911282993
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);