40 #include "ui_progressview.h"
46 using namespace DISPLIB;
53 const QString& sStyleSheet)
55 , m_pUi(new Ui::ProgressViewWidget)
61 if(sStyleSheet !=
""){
62 m_pUi->m_VerticalLabel->setStyleSheet(sStyleSheet);
63 m_pUi->m_HorizonatlLabel->setStyleSheet(sStyleSheet);
66 m_pUi->m_progressBar->setMinimum(0);
67 m_pUi->m_progressBar->setMaximum(0);
68 m_pUi->m_progressBar->setValue(0);
69 m_pUi->m_progressBar->setTextVisible(
false);
70 m_pUi->m_progressBar->setMaximumWidth(300);
72 m_pUi->m_progressBar->setAttribute(Qt::WA_Hover);
112 m_pUi->m_VerticalLabel->hide();
113 m_pUi->m_HorizonatlLabel->show();
120 m_pUi->m_VerticalLabel->show();
121 m_pUi->m_HorizonatlLabel->hide();
128 m_pUi->m_VerticalLabel->setText(sMessage);
129 m_pUi->m_HorizonatlLabel->setText(sMessage);
135 const QString& sMessage)
137 m_pUi->m_progressBar->show();
139 if (m_pUi->m_progressBar->maximum() == 0){
140 m_pUi->m_progressBar->setMaximum(100);
143 m_pUi->m_progressBar->setValue(iPercentage);
155 m_pUi->m_progressBar->show();
157 m_pUi->m_progressBar->hide();