]> Shamusworld >> Repos - architektonas/blobdiff - src/widgets/layerbox.cpp
In the middle of chasing down MDI not activating bug, renaming of Graphic to
[architektonas] / src / widgets / layerbox.cpp
index b6e865aac175620e900dd81ab66687f444be3604..5326f803ed85f4fab8464b079583fece2ba4ca6c 100644 (file)
@@ -20,8 +20,7 @@
 #include "layerlist.h"
 
 /**
- * Default Constructor. You must call init manually before using
- * this class.
+ * Default Constructor. You must call init manually before using this class.
  */
 LayerBox::LayerBox(QWidget * parent, const char */*name*/): QComboBox(parent)
 {
@@ -45,10 +44,9 @@ Layer * LayerBox::getLayer()
 }
 
 /**
- * Initialisation (called manually only once).
+ * Initialization (called manually only once).
  *
- * @param layerList Layer list which provides the layer names that are
- *                  available.
+ * @param layerList Layer list which provides the layer names that are available.
  * @param showByBlock true: Show attribute ByBlock.
  */
 void LayerBox::init(LayerList & layerList, bool showByBlock, bool showUnchanged)
@@ -58,16 +56,14 @@ void LayerBox::init(LayerList & layerList, bool showByBlock, bool showUnchanged)
        this->layerList = &layerList;
 
        if (showUnchanged)
-//             insertItem(tr("- Unchanged -"));
                addItem(tr("- Unchanged -"));
 
        for(uint i=0; i<layerList.count(); ++i)
        {
-               Layer * lay = layerList.at(i);
+               Layer * currentLayer = layerList.at(i);
 
-               if (lay != NULL && (lay->getName() != "ByBlock" || showByBlock))
-//                     insertItem(lay->getName());
-                       addItem(lay->getName());
+               if (currentLayer != NULL && (currentLayer->getName() != "ByBlock" || showByBlock))
+                       addItem(currentLayer->getName());
        }
 
        connect(this, SIGNAL(activated(int)), this, SLOT(slotLayerChanged(int)));