comparison 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
comparison
equal deleted inserted replaced
1457:0925b37a3ed1 1458:0fb5d4e6edeb
41 41
42 template <typename PointType> 42 template <typename PointType>
43 class SparseModel : public Model, 43 class SparseModel : public Model,
44 public TabularModel 44 public TabularModel
45 { 45 {
46 // If we omit the Q_OBJECT macro, lupdate complains.
47
48 // If we include it, moc fails (can't handle template classes).
49
50 // If we omit it, lupdate still seems to emit translatable
51 // messages for the tr() strings in here. So I guess we omit it.
52
46 public: 53 public:
47 SparseModel(sv_samplerate_t sampleRate, int resolution, 54 SparseModel(sv_samplerate_t sampleRate, int resolution,
48 bool notifyOnAdd = true); 55 bool notifyOnAdd = true);
49 virtual ~SparseModel() { } 56 virtual ~SparseModel() { }
50 57