forked from len0rd/rockbox
Theme Editor: Enabled editing tag parameters from a treeview
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26452 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
253cfbcd47
commit
5943f4c5e2
6 changed files with 119 additions and 8 deletions
|
@ -26,6 +26,7 @@ extern "C"
|
|||
}
|
||||
|
||||
#include "parsetreenode.h"
|
||||
#include "parsetreemodel.h"
|
||||
|
||||
/* Root element constructor */
|
||||
ParseTreeNode::ParseTreeNode(struct skin_element* data)
|
||||
|
@ -223,8 +224,7 @@ QVariant ParseTreeNode::data(int column) const
|
|||
{
|
||||
switch(column)
|
||||
{
|
||||
/* Column 0 is the element type */
|
||||
case 0:
|
||||
case ParseTreeModel::typeColumn:
|
||||
if(element)
|
||||
{
|
||||
switch(element->type)
|
||||
|
@ -278,8 +278,7 @@ QVariant ParseTreeNode::data(int column) const
|
|||
|
||||
break;
|
||||
|
||||
/* Column 1 is the value */
|
||||
case 1:
|
||||
case ParseTreeModel::valueColumn:
|
||||
if(element)
|
||||
{
|
||||
switch(element->type)
|
||||
|
@ -324,8 +323,7 @@ QVariant ParseTreeNode::data(int column) const
|
|||
}
|
||||
break;
|
||||
|
||||
/* Column 2 is the line number */
|
||||
case 2:
|
||||
case ParseTreeModel::lineColumn:
|
||||
if(element)
|
||||
return QString::number(element->line, 10);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue