Utility class for converting the QVariant in CurveNameList to/from the curve names as QStrings, for use by the CurveNameList model class. More...
#include <CurveNameListEntry.h>
Public Member Functions | |
CurveNameListEntry () | |
Constructor for empty entry. | |
CurveNameListEntry (const QString &curveNameCurrent, const QString &curveNameOriginal, int numPoints) | |
Constructor for converting to QVariant. | |
CurveNameListEntry (const QString &fromText) | |
Constructor for converting from QVariant. | |
QString | curveNameCurrent () const |
Curve name displayed in DlgSettingsCurveAddRemove. | |
QString | curveNameOriginal () const |
Original curve name in document. Empty if there was no original curve. | |
bool | entryHasNotBeenPopulated () const |
Return true if entry is unpopulated. This is true between insertRows (where added to model) and setData (where fields are set). | |
int | numPoints () const |
Number of points in curve. | |
void | setCurveNameCurrent (const QString &curveNameCurrent) |
Set method for current curve name. | |
void | setCurveNameOriginal (const QString &curveNameOriginal) |
Set method for original curve name. | |
void | setNumPoints (int numPoints) |
Set method for point count. | |
QString | toString () const |
QString for creating QVariant. | |
Static Public Member Functions | |
static int | COL_CURVE_NAME_CURRENT () |
Get method for current curve name constant. | |
static int | COL_CURVE_NAME_ORIGINAL () |
Get method for original curve name constant. | |
static int | COL_NUM_POINTS () |
Get method for number of points constant. |
Utility class for converting the QVariant in CurveNameList to/from the curve names as QStrings, for use by the CurveNameList model class.
Subclassing QVariant brings up difficult challenges, so the QString userType was chosen.
Each entry has the current curve name, original curve name and point count, separated by a delimiter.
Definition at line 19 of file CurveNameListEntry.h.