MCPcopy Create free account
hub / github.com/KDE/labplot / hasMultiLayerGraphs

Method hasMultiLayerGraphs

src/backend/datasources/projects/OriginProjectParser.cpp:113–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113bool OriginProjectParser::hasMultiLayerGraphs() {
114 if (!m_originFile)
115 return false;
116
117 for (unsigned int i = 0; i < m_originFile->graphCount(); i++) {
118 const auto& graph = m_originFile->graph(i);
119 if (graph.layers.size() > 1)
120 return true;
121 }
122
123 return false;
124}
125
126void OriginProjectParser::setGraphLayerAsPlotArea(bool value) {
127 m_graphLayerAsPlotArea = value;

Callers 1

checkContentMethod · 0.95

Calls 2

graphCountMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected