src/gui/widgets/qlcdnumber.h
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    58 {
    58 {
    59     Q_OBJECT
    59     Q_OBJECT
    60     Q_ENUMS(Mode SegmentStyle)
    60     Q_ENUMS(Mode SegmentStyle)
    61     Q_PROPERTY(bool smallDecimalPoint READ smallDecimalPoint WRITE setSmallDecimalPoint)
    61     Q_PROPERTY(bool smallDecimalPoint READ smallDecimalPoint WRITE setSmallDecimalPoint)
    62     Q_PROPERTY(int numDigits READ numDigits WRITE setNumDigits)
    62     Q_PROPERTY(int numDigits READ numDigits WRITE setNumDigits)
       
    63     Q_PROPERTY(int digitCount READ digitCount WRITE setDigitCount)
    63     Q_PROPERTY(Mode mode READ mode WRITE setMode)
    64     Q_PROPERTY(Mode mode READ mode WRITE setMode)
    64     Q_PROPERTY(SegmentStyle segmentStyle READ segmentStyle WRITE setSegmentStyle)
    65     Q_PROPERTY(SegmentStyle segmentStyle READ segmentStyle WRITE setSegmentStyle)
    65     Q_PROPERTY(double value READ value WRITE display)
    66     Q_PROPERTY(double value READ value WRITE display)
    66     Q_PROPERTY(int intValue READ intValue WRITE display)
    67     Q_PROPERTY(int intValue READ intValue WRITE display)
    67 
    68 
    79     enum SegmentStyle {
    80     enum SegmentStyle {
    80         Outline, Filled, Flat
    81         Outline, Filled, Flat
    81     };
    82     };
    82 
    83 
    83     bool smallDecimalPoint() const;
    84     bool smallDecimalPoint() const;
    84 
    85 #ifdef QT_DEPRECATED
    85     int numDigits() const;
    86     QT_DEPRECATED int numDigits() const;
    86     void setNumDigits(int nDigits);
    87     QT_DEPRECATED void setNumDigits(int nDigits);
       
    88 #endif
       
    89     int digitCount() const;
       
    90     void setDigitCount(int nDigits);
    87 
    91 
    88     bool checkOverflow(double num) const;
    92     bool checkOverflow(double num) const;
    89     bool checkOverflow(int num) const;
    93     bool checkOverflow(int num) const;
    90 
    94 
    91     Mode mode() const;
    95     Mode mode() const;