MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / SetProgress

Method SetProgress

DSView/pv/dock/protocolitemlayer.cpp:103–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101//-----------------
102
103 void ProtocolItemLayer::SetProgress(int progress, QString text){
104 QString str = QString::number(progress) + "%" + text;
105
106 if (progress == 100)
107 _progress_label->setStyleSheet("color:green;");
108 else
109 _progress_label->setStyleSheet("color:red;");
110
111 if (progress >= 0)
112 _progress_label->setText(str);
113 else
114 _progress_label->setText("");
115 }
116
117void ProtocolItemLayer::ResetStyle(){
118 QString iconPath = GetIconPath();

Callers 1

decoded_progressMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected