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