Remoto - VFS: progressField Class Reference
Remoto - VFS

The progressField class provides a field representing percent progress. More...

#include <progressField.h>

Inheritance diagram for progressField:
VFS_form_field

Public Member Functions

 progressField (double v, QString label="", QString tip="", double max=-1)
 The double progressField constructor. More...
 
 progressField (int v, QString label="", QString tip="", int max=-1)
 The int progressField constructor. More...
 
void setMax (double max)
 Set a number field's range. More...
 
- Public Member Functions inherited from VFS_form_field
 VFS_form_field (QJsonValue val, QString type, QString label="", QString tip="")
 
 VFS_form_field (QString type)
 
void clearOption (QString o)
 Clear/remove a widget option. More...
 
int getIndex ()
 Get the field index. More...
 
QString getLabel ()
 Return the label. More...
 
void setAllowEmpty (bool e)
 Validate this field against empty-ness. More...
 
void setEnabled (bool e)
 Enable or disable this field. More...
 
void setHidden (bool e)
 Keep the field, but hide it when rendering. More...
 
void setHideLabel (bool l)
 Hide the label for this field. More...
 
void setIndex (int i)
 Set the field index for this widget. More...
 
void setLabel (QString l, bool replace=true)
 Set the label. More...
 
void setOption (QString o, QJsonValue v)
 Set a widget option. More...
 
void setSpellcheck (bool s)
 Enable or disable spellchecking on this text field. More...
 
void setTip (QString t)
 Set the tooltip. More...
 
void setValue (QJsonValue val)
 Set the value. More...
 

Additional Inherited Members

- Protected Attributes inherited from VFS_form_field
QJsonObject options
 Options for any widget type... this is an arbitrary list. More...
 

Detailed Description

The progressField class provides a field representing percent progress.

If the max option is set, the value field will set percentage. If no max is set, value should be between 0.0 and 1.0 .

See also
progressWidget

Definition at line 6 of file progressField.h.

Constructor & Destructor Documentation

◆ progressField() [1/2]

progressField::progressField ( int  v,
QString  label = "",
QString  tip = "",
int  max = -1 
)
explicit

The int progressField constructor.

Parameters
vThe initial value
labelThe label
tipThe tooltip
maxMaximum value representing 100%

Definition at line 23 of file progressField.cpp.

◆ progressField() [2/2]

progressField::progressField ( double  v,
QString  label = "",
QString  tip = "",
double  max = -1 
)
explicit

The double progressField constructor.

Parameters
vThe value
labelThe label
tipThe tooltip
maxMaximum value representing 100%

Definition at line 38 of file progressField.cpp.

Member Function Documentation

◆ setMax()

void progressField::setMax ( double  max)

Set a number field's range.

Parameters
maxMaximum value

Definition at line 50 of file progressField.cpp.


The documentation for this class was generated from the following files: