Changeset 255

Show
Ignore:
Timestamp:
12/22/09 22:48:06 (9 months ago)
Author:
deu
Message:

IN PROGRESS -- issue QREST-6: Magic number
 http://requests.wardsback.org/browse/QREST-6

Custom Widget 'steadiness pie' :
removed unused member : threshold
and propagated changes to references

Location:
branches/v0.5/src/gui/widgets
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/v0.5/src/gui/widgets/custom/progressPie.cpp

    r236 r255  
    3232//////////////////////////////////////////////////////////////////////////// 
    3333ProgressPie::ProgressPie(QWidget* parent) : 
    34     QWidget(parent), _threshold(0.0), _value(0.0), _pRedBrush(new QBrush( 
     34    QWidget(parent), _value(0.0), _pRedBrush(new QBrush( 
    3535            Qt::red)), _pGreenBrush(new QBrush(Qt::darkGreen)) { 
    3636 
  • branches/v0.5/src/gui/widgets/custom/progressPie.h

    r233 r255  
    4949    // 
    5050    //////////////////////////////////////////////////////////////////////////// 
    51     /** 
    52      * set threshold value. 
    53      * 
    54      * \param threshold the threshold value to set 
    55      */ 
    56     inline void setThreshold(const double threshold) { 
    5751 
    58         _threshold = threshold; 
    59     } 
    60  
    61     /** 
    62      * get threshold value. 
    63      * 
    64      * \return the threshold value 
    65      */ 
    66     inline double threshold() const { 
    67  
    68         return _threshold; 
    69     } 
    7052 
    7153    //////////////////////////////////////////////////////////////////////////// 
  • branches/v0.5/src/gui/widgets/qrestmainwindow.cpp

    r249 r255  
    5151    // setup steadiness indocator 
    5252    _pie = new ProgressPie(); 
    53     _pie->setThreshold(Constants::STEADINESS_TARGET_RATIO); 
    5453    ui.tempoInputHorizontalLayout->addWidget(_pie); 
    5554