Changeset 255
- Timestamp:
- 12/22/09 22:48:06 (9 months ago)
- Location:
- branches/v0.5/src/gui/widgets
- Files:
-
- 3 modified
-
custom/progressPie.cpp (modified) (1 diff)
-
custom/progressPie.h (modified) (1 diff)
-
qrestmainwindow.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/v0.5/src/gui/widgets/custom/progressPie.cpp
r236 r255 32 32 //////////////////////////////////////////////////////////////////////////// 33 33 ProgressPie::ProgressPie(QWidget* parent) : 34 QWidget(parent), _ threshold(0.0), _value(0.0), _pRedBrush(new QBrush(34 QWidget(parent), _value(0.0), _pRedBrush(new QBrush( 35 35 Qt::red)), _pGreenBrush(new QBrush(Qt::darkGreen)) { 36 36 -
branches/v0.5/src/gui/widgets/custom/progressPie.h
r233 r255 49 49 // 50 50 //////////////////////////////////////////////////////////////////////////// 51 /**52 * set threshold value.53 *54 * \param threshold the threshold value to set55 */56 inline void setThreshold(const double threshold) {57 51 58 _threshold = threshold;59 }60 61 /**62 * get threshold value.63 *64 * \return the threshold value65 */66 inline double threshold() const {67 68 return _threshold;69 }70 52 71 53 //////////////////////////////////////////////////////////////////////////// -
branches/v0.5/src/gui/widgets/qrestmainwindow.cpp
r249 r255 51 51 // setup steadiness indocator 52 52 _pie = new ProgressPie(); 53 _pie->setThreshold(Constants::STEADINESS_TARGET_RATIO);54 53 ui.tempoInputHorizontalLayout->addWidget(_pie); 55 54
