[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/kplato/plugins/scripting
From: Dag Andersen <danders () get2net ! dk>
Date: 2008-03-28 17:11:29
Message-ID: 1206724289.274965.6344.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 791189 by danders:
Scripting: Adjust method names for node access.
M +2 -2 Module.cpp
M +2 -2 Module.h
M +1 -1 scripts/sample_project.py
--- trunk/koffice/kplato/plugins/scripting/Module.cpp #791188:791189
@@ -101,13 +101,13 @@
return d->project->node( index );
}
-int Module::childCount( QObject *parent )
+int Module::nodeCount( QObject *parent )
{
Node *n = dynamic_cast<Node*>( parent );
return n ? n->childCount() : 0;
}
-QObject *Module::childAt( QObject *parent, int index )
+QObject *Module::nodeAt( QObject *parent, int index )
{
Node *n = dynamic_cast<Node*>( parent );
return n ? n->childAt( index ) : 0;
--- trunk/koffice/kplato/plugins/scripting/Module.h #791188:791189
@@ -74,9 +74,9 @@
QObject *nodeAt( int index );
/// Number of children of @p parent
- int childCount( QObject *parent );
+ int nodeCount( QObject *parent );
/// Return child node at @p index of @p parent
- QObject *childAt( QObject *parent, int index );
+ QObject *nodeAt( QObject *parent, int index );
/// Number of resource groups
int resourceGroupCount();
--- trunk/koffice/kplato/plugins/scripting/scripts/sample_project.py #791188:791189
@@ -8,7 +8,7 @@
def printNodes( node, props, types = None ):
printNode( node, props, types )
for i in range( node.childCount() ):
- printNodes( KPlato.childAt( node, i ), props, types )
+ printNodes( KPlato.nodeAt( node, i ), props, types )
def printNode( node, props, types = None ):
if types is None or node.type() in types:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic