~arcachofo/simulide/1.1.0

« back to all changes in this revision

Viewing changes to src/microsim/mcucreator.cpp

  • Committer: arcachofo
  • Date: 2024-10-12 10:14:58 UTC
  • Revision ID: arcachofo@simulide.com-20241012101458-4i01dm6j2sketsq0
Script Display: optimize Widget paint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1262
1262
    }
1263
1263
    else display = new Display( width, height, name, CircuitWidget::self() );
1264
1264
 
1265
 
    bool embeed = e->attribute("embeed") == "true";
1266
 
    if( embeed ) m_mcuComp->setBackData( display->getBackData() );
1267
 
    else         m_displays.append( display );
 
1265
    bool embed = e->attribute("embeed") == "true";
 
1266
    display->setEmbed( embed );
 
1267
    if( embed ) m_mcuComp->setBackData( display->getBackData() ); // Display in Package
 
1268
    else        m_displays.append( display );                     // Display in Mcu Monitor
1268
1269
 
1269
 
    if( e->hasAttribute("scale") )
1270
 
    {
 
1270
    if( e->hasAttribute("scale") ){
1271
1271
        double scale = e->attribute("scale").toDouble();
1272
1272
        display->setMonitorScale( scale );
1273
1273
    }