MCPcopy Create free account
hub / github.com/baldurk/renderdoc / setInfinite

Method setInfinite

qrenderdoc/Code/QRDUtils.cpp:2959–2973  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2957 void enableCancel() { setCancelButtonText(tr("Cancel")); }
2958 void setPercentage(float percent) { setValue(int(maxProgress * percent)); }
2959 void setInfinite(bool infinite)
2960 {
2961 if(infinite)
2962 {
2963 setMinimum(0);
2964 setMaximum(0);
2965 setValue(0);
2966 }
2967 else
2968 {
2969 setMinimum(0);
2970 setMaximum(maxProgress + 1);
2971 setValue(0);
2972 }
2973 }
2974
2975 void closeAndReset()
2976 {

Callers 1

ShowProgressDialogFunction · 0.80

Calls 1

setValueFunction · 0.50

Tested by

no test coverage detected