[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Fri Dec 16 06:45:43 CET 2005


On Friday 16 December 2005 00:13, Barth Netterfield wrote:
> --- trunk/extragear/graphics/kst/kst/kstviewarrow.cpp #488851:488852
> @@ -68,6 +68,7 @@
>    }
>
>    // always has this value
> +  setTransparent(true);
>    _type = "Arrow";
>  }

  Is this not being inherited from the Line object?

> --- trunk/extragear/graphics/kst/kst/kstviewline.cpp #488851:488852
> +      if (metaObject()->findProperty(el.tagName().latin1(), true) > -1) {
> +        setProperty(el.tagName().latin1(), QVariant(el.text()));
> +      }

  Does setTagName() not suffice here?

> --- trunk/extragear/graphics/kst/kst/kstviewobject.cpp #488851:488852
> @@ -199,6 +199,10 @@
>          KstViewArrowPtr arrow = new KstViewArrow(el);
>          appendChild(arrow.data(), true);
>          arrow->loadChildren(el);
> +      } else if (el.tagName() == "Line") {
> +        KstViewLinePtr line = new KstViewArrow(el);

   new KstViewLine?

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list