Skip to content

Commit

Permalink
Updated metacontrol template to use new AddItems() method for Type-ba…
Browse files Browse the repository at this point in the history
…sed listboxes
  • Loading branch information
mikeho committed Jun 30, 2011
1 parent 67c924d commit 33f5f62
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -11,8 +11,8 @@
<% } %><% if (!$objColumn->NotNull) { %>
$this-><%=$strControlId %>->AddItem(QApplication::Translate('- Select One -'), null);
<% } %>
foreach (<%= $objColumn->Reference->VariableType %>::$NameArray as $intId => $strValue)
$this-><%= $strControlId %>->AddItem(new QListItem($strValue, $intId, $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %> == $intId));

$this-><%= $strControlId %>->AddItems(<%= $objColumn->Reference->VariableType %>::$NameArray, $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %>);
return $this-><%= $strControlId %>;
}

Expand Down

0 comments on commit 33f5f62

Please sign in to comment.