changeset 1585:073ef72e8e60

Add test for whether presentation name is at default or not
author Chris Cannam
date Fri, 27 Mar 2020 11:04:48 +0000
parents e5464dc2f6cf
children bbc3f537564c
files layer/Layer.cpp layer/Layer.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
 {
--- 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(); }