Changeset 436 in flair-src for trunk/tools/FlairGCS/src/DataPlot1D.cpp
- Timestamp:
- 08/24/21 11:58:44 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/DataPlot1D.cpp
r269 r436 4 4 // %flair:license} 5 5 #include "DataPlot1D.h" 6 #include "ConnectionLayout.h" 6 7 #include "Layout.h" 7 8 #include <QMouseEvent> 8 9 #include <QMenu> 9 10 #include <QGridLayout> 11 #include <QTime> 10 12 #include <qendian.h> 11 13 … … 16 18 17 19 setEnabled(enabled); 20 ResetElapsedTime((float)connectionLayout()->GetStartTime().msecsTo(QTime::currentTime())/1000.); 18 21 parent->addWidget(this, row, col); 19 22 visible_widget = this; … … 25 28 26 29 void DataPlot1D::XmlEvent(QDomElement *dom) { 30 bool previouslyEnabled=IsEnabled(); 31 27 32 if (dom->attribute("curve") != "") { 28 33 QString type = dom->attribute("type"); … … 46 51 XmlSetup(dom); 47 52 } 53 54 if(previouslyEnabled!=IsEnabled() && IsEnabled()) 55 ResetElapsedTime((float)connectionLayout()->GetStartTime().msecsTo(QTime::currentTime())/1000.); 48 56 } 49 57 … … 132 140 if (action == clear) 133 141 clearCurves(); 134 142 135 143 return true; 136 144 }
Note:
See TracChangeset
for help on using the changeset viewer.