mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-26 17:16:20 +00:00
ExpressionNode flags are now set in it's constructor.
--HG-- branch : dfighter-tools
This commit is contained in:
parent
bf12cbc53c
commit
315e43a469
2 changed files with 2 additions and 1 deletions
|
@ -239,7 +239,6 @@ void ExpressionEditor::onItemDblClicked( QTreeWidgetItem *item )
|
|||
m_nodeCount++;
|
||||
|
||||
ExpressionNode *node = new ExpressionNode( n, info->slotNames.count() );
|
||||
node->setFlags( QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsMovable );
|
||||
node->setSlotNames( info->slotNames );
|
||||
node->setVariable( info->variable );
|
||||
node->setIsValue( info->value );
|
||||
|
|
|
@ -101,6 +101,8 @@ private:
|
|||
ExpressionNode::ExpressionNode( const QString &name, int slotCount, QGraphicsItem *parent ) :
|
||||
QGraphicsItem( parent )
|
||||
{
|
||||
setFlags( QGraphicsItem::ItemIsSelectable | QGraphicsItem::ItemIsMovable );
|
||||
|
||||
m_w = 100;
|
||||
m_h = 100;
|
||||
m_hh = 20.0;
|
||||
|
|
Loading…
Reference in a new issue