# HG changeset patch # User Chris Cannam # Date 1585307088 0 # Node ID 073ef72e8e60d8e37a8dee420c53c1bc9c01c9b1 # Parent e5464dc2f6cfc7e55c985561598e9bde476f282e Add test for whether presentation name is at default or not diff -r e5464dc2f6cf -r 073ef72e8e60 layer/Layer.cpp --- a/layer/Layer.cpp Thu Mar 26 12:10:55 2020 +0000 +++ b/layer/Layer.cpp Fri Mar 27 11:04:48 2020 +0000 @@ -89,6 +89,12 @@ m_presentationName = name; } +bool +Layer::isPresentationNameSet() const +{ + return (m_presentationName != ""); +} + QString Layer::getLayerPresentationName() const { diff -r e5464dc2f6cf -r 073ef72e8e60 layer/Layer.h --- a/layer/Layer.h Thu Mar 26 12:10:55 2020 +0000 +++ b/layer/Layer.h Fri Mar 27 11:04:48 2020 +0000 @@ -159,6 +159,8 @@ virtual void setPresentationName(QString name); + virtual bool isPresentationNameSet() const; + virtual QString getLayerPresentationName() const; virtual QPixmap getLayerPresentationPixmap(QSize) const { return QPixmap(); }