31 QValidator::State
validate(QString &input,
int &pos)
const;
44 QMap<QString, QStringList >
p_map;
void setBandBin(Pvl &pvl, const QString &key="BandNumber")
Sets the band bin.
QSize sizeHint() const
returns a size hint for the spin box
void setKey(QString key)
Sets the key to the provided key.
QString p_lastKey
The last key.
QString textFromValue(int val) const
Gets the text using p_map.
int valueFromText(const QString &text) const
gets the value (int) using p_map.
BandSpinBox(QWidget *parent=0)
BandSpinBox constructor.
QMap< QString, QStringList > p_map
The maps the last key to all the keys.
QStringList p_keys
List of all the keys.
QValidator::State validate(QString &input, int &pos) const
returns how valid the value from the spin box is.
QStringList BandBinKeys()
returns the list of keys.
int p_bands
Number of bands.
Container for cube-like labels.
This is free and unencumbered software released into the public domain.