40   std::set <std::string>::iterator labelsIt;
 
   43   for (labelsIt = labels.begin(); labelsIt != labels.end(); labelsIt++)
 
   45     qstr = qstr.fromStdString(*labelsIt);
 
   62     m_labels = new_labels;
 
   69   uint index = qRound( value );
 
   71   if(m_labels.empty() == 
false)
 
   73     size_t size = m_labels.size();
 
   76       std::set<QString>::const_iterator it = m_labels.begin();
 
   85       std::string test = lbl.toStdString();
 
virtual QwtText label(double value) const 
It returns the label at the given index. 
 
std::set< QString > & getLabels()
It returns the list containing the labels. 
 
A class to represent a set of labels to be used on a histogram's chart. 
 
StringScaleDraw(std::set< QString > &labels)
Constructor. 
 
void setLabels(std::set< QString > new_labels)
It sets the list containing the labels. 
 
std::set< QString > m_labels
A set of label values. 
 
~StringScaleDraw()
Destructor.