35 addItem(lab, QVariant(val));
43 for(
int i = 0; i < count(); i++) {
44 QString key = itemText(i);
45 double nd = fabs(v -
valmap[key]);
51 setCurrentIndex(bestidx);
63 addItem(lab, QVariant(val));
69 for(
int i = 0; i < count(); i++) {
70 QString key = itemText(i);
79 for(
int i = 0; i < count(); i++) {
80 QString key = itemText(i);
void textChanged(const QString &txt)
std::map< QString, double > valmap
void addValue(QString lab, int val)
void textChanged(const QString &txt)
void valueChanged(double v)
void addValue(QString lab, double val)