Isis 3 Programmer Reference
ProgressBar.cpp
1#include "ProgressBar.h"
2
3namespace 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
24 ProgressBar::~ProgressBar() {
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}
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16