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 }
QWidget
QProgressBar
Isis::ProgressBar::text
virtual QString text() const
This applies the custom text.
Definition: ProgressBar.cpp:40
Isis::ProgressBar::~ProgressBar
~ProgressBar()
Free the allocated memory by this object.
Definition: ProgressBar.cpp:24
Isis::ProgressBar::setText
void setText(QString text)
Set custom text for this progress bar.
Definition: ProgressBar.cpp:32
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16