Isis 3.0 Programmer Reference
Back | Home
ProgressBar.cpp
1 #include "ProgressBar.h"
2 
3 namespace Isis {
4 
8  ProgressBar::ProgressBar(QWidget *parent): QProgressBar(parent) {
9  }
10 
14  ProgressBar::ProgressBar(QString textDescription,
15  QWidget *parent): QProgressBar(parent) {
16  m_customText = textDescription;
17  }
18 
19 
24  }
25 
26 
31  void ProgressBar::setText(QString text) {
32  m_customText = text;
33  }
34 
35 
39  QString ProgressBar::text() const {
40  QString progressText = m_customText;
41 
42  if(progressText.size() != 0)
43  progressText += " ";
44 
45  return progressText + QProgressBar::text();
46  }
47 }
virtual QString text() const
This applies the custom text.
Definition: ProgressBar.cpp:39
~ProgressBar()
Free the allocated memory by this object.
Definition: ProgressBar.cpp:23
void setText(QString text)
Set custom text for this progress bar.
Definition: ProgressBar.cpp:31

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:26:41