comparison data/model/FFTModel.h @ 360:ac300d385ab2

* Various fixes to object lifetime management, particularly in the spectrum layer and for notification of main model deletion. The main purpose of this is to improve the behaviour of the spectrum, but I think it may also help with #1840922 Various crashes in Layer Summary window.
author Chris Cannam
date Wed, 23 Jan 2008 15:43:27 +0000
parents 700cd3350391
children 7aa1de571880
comparison
equal deleted inserted replaced
359:824ee993ca8d 360:ac300d385ab2
165 virtual void suspendWrites() { m_server->suspendWrites(); } 165 virtual void suspendWrites() { m_server->suspendWrites(); }
166 virtual void resume() { m_server->resume(); } 166 virtual void resume() { m_server->resume(); }
167 167
168 QString getTypeName() const { return tr("FFT"); } 168 QString getTypeName() const { return tr("FFT"); }
169 169
170 public slots:
171 void sourceModelAboutToBeDeleted();
172
170 private: 173 private:
171 FFTModel(const FFTModel &); // not implemented 174 FFTModel(const FFTModel &); // not implemented
172 FFTModel &operator=(const FFTModel &); // not implemented 175 FFTModel &operator=(const FFTModel &); // not implemented
173 176
174 FFTDataServer *m_server; 177 FFTDataServer *m_server;