comparison layer/TimeRulerLayer.h @ 947:e53a87a5efb2

Allow layers to be loaded without models if their layer class explicitly says it's OK (otherwise default template won't load, as it has an empty waveform layer)
author Chris Cannam
date Mon, 20 Apr 2015 10:10:26 +0100
parents b66fb15de477
children e3c7da3d896e
comparison
equal deleted inserted replaced
944:78c152e4db95 947:e53a87a5efb2
58 virtual void toXml(QTextStream &stream, QString indent = "", 58 virtual void toXml(QTextStream &stream, QString indent = "",
59 QString extraAttributes = "") const; 59 QString extraAttributes = "") const;
60 60
61 void setProperties(const QXmlAttributes &attributes); 61 void setProperties(const QXmlAttributes &attributes);
62 62
63 virtual bool canExistWithoutModel() const { return true; }
64
63 protected: 65 protected:
64 Model *m_model; 66 Model *m_model;
65 LabelHeight m_labelHeight; 67 LabelHeight m_labelHeight;
66 68
67 virtual int getDefaultColourHint(bool dark, bool &impose); 69 virtual int getDefaultColourHint(bool dark, bool &impose);