ExpressionNode flags are now set in it's constructor.

--HG--
branch : dfighter-tools
hg/feature/qt5
dfighter1985 10 years ago
parent bf12cbc53c
commit 315e43a469

@ -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…
Cancel
Save