I figured out how to use icons for a column in a QxListView -- very cool that you can do this.
However, on the rows that have no data, I get a "broken image" displayed
by the browser (see attached screenshot). Investigating the DOM element
shows that the src attribute is empty for those img tags.
It seems that for QxIconHtml objects that have an empty icon property,
the QxImageManager leaves the empty string alone, resulting in a bunch
of broken images. It seems to make more sense to expand the empty
string
to a URL for the blank.gif.
I have no idea of the ramifications of such a change, but I present the
patch here. This only works if you explicitly set
QxSettings.imageCorePath
(I don't know if that is standard practice or not -- I've never had to
set this before).
----------------------------------------------------------------------
--- QxImageManager.js 2006-02-27 21:45:51.000000000 -0500
+++ QxImageManager.js.new 2006-02-27 21:45:19.000000000 -0500
@@ -269,6 +269,11 @@
proto._buildUri = function(vPath, vForce)
{
+ if (vPath == "")
+ {
+ return (QxSettings.imageCorePath + QxConst.CORE_SLASH +
"blank.gif");
+ }
+
switch(vPath.charAt(0))
{
case QxConst.CORE_SLASH:
----------------------------------------------------------------------
Jason Priebe
CBC New Media
listview.png
Description: listview.png
