diff layer/SingleColourLayer.cpp @ 299:5c59c433b358

* Show colour swatch next to layer name in pane (if available) * Fix for incorrect layer name prefix handling (was making some layers appear to have the same model name in cases where the model names differed by the final character only)
author Chris Cannam
date Wed, 05 Sep 2007 15:17:15 +0000
parents 860f9ada4327
children c0b9eec70639
line wrap: on
line diff
--- a/layer/SingleColourLayer.cpp	Thu Aug 16 16:47:07 2007 +0000
+++ b/layer/SingleColourLayer.cpp	Wed Sep 05 15:17:15 2007 +0000
@@ -31,6 +31,12 @@
     setDefaultColourFor(0);
 }
 
+QPixmap
+SingleColourLayer::getLayerPresentationPixmap(QSize size) const
+{
+    return ColourDatabase::getInstance()->getExamplePixmap(m_colour, size);
+}
+
 bool
 SingleColourLayer::hasLightBackground() const
 {