mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-23 23:56:15 +00:00
ExpressionNode flags are now set in it's constructor.
This commit is contained in:
parent
5771f0c914
commit
fee6b431a0
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