Commit 6dfd45fa authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Make the widget selectable in the WidgetBase constructor before calling setSelected()

Otherwise, the call has no effect.

CCBUG:418249 
parent c880a38d
...@@ -63,14 +63,14 @@ WidgetBase::WidgetBase(UMLScene *scene, WidgetType type, Uml::ID::Type id) ...@@ -63,14 +63,14 @@ WidgetBase::WidgetBase(UMLScene *scene, WidgetType type, Uml::ID::Type id)
m_changesShape(false) m_changesShape(false)
{ {
Q_ASSERT(m_baseType > wt_Min && m_baseType < wt_Max); Q_ASSERT(m_baseType > wt_Min && m_baseType < wt_Max);
setFlags(ItemIsSelectable);
//setFlags(ItemIsSelectable | ItemIsMovable |ItemSendsGeometryChanges);
// Note: no virtual methods from derived classes available, // Note: no virtual methods from derived classes available,
// this operation need to be finished in derived class constructor. // this operation need to be finished in derived class constructor.
setLineColor(QColor("black")); setLineColor(QColor("black"));
setSelected(false); setSelected(false);
// TODO 310283
setFlags(ItemIsSelectable);
//setFlags(ItemIsSelectable | ItemIsMovable |ItemSendsGeometryChanges);
if (m_scene) { if (m_scene) {
m_usesDiagramLineColor = true; m_usesDiagramLineColor = true;
m_usesDiagramLineWidth = true; m_usesDiagramLineWidth = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment