QtGui/qlcdnumber.h Source File
Go to the documentation of this file.
54 #ifndef QT_NO_LCDNUMBER
56 class QLCDNumberPrivate;
61 Q_PROPERTY(
bool smallDecimalPoint READ smallDecimalPoint WRITE setSmallDecimalPoint)
62 Q_PROPERTY(
int numDigits READ numDigits WRITE setNumDigits)
63 Q_PROPERTY(
int digitCount READ digitCount WRITE setDigitCount)
65 Q_PROPERTY(SegmentStyle segmentStyle READ segmentStyle WRITE setSegmentStyle)
76 #if defined(QT3_SUPPORT) && !defined(Q_MOC_RUN)
77 , HEX = Hex, DEC = Dec, OCT = Oct, BIN = Bin
84 bool smallDecimalPoint()
const;
86 QT_DEPRECATED
int numDigits()
const;
87 QT_DEPRECATED
void setNumDigits(
int nDigits);
89 int digitCount()
const;
90 void setDigitCount(
int nDigits);
92 bool checkOverflow(
double num)
const;
93 bool checkOverflow(
int num)
const;
98 SegmentStyle segmentStyle()
const;
99 void setSegmentStyle(SegmentStyle);
101 double value()
const;
102 int intValue()
const;
107 void display(
const QString &str);
108 void display(
int num);
109 void display(
double num);
114 void setSmallDecimalPoint(
bool);
128 QT3_SUPPORT
void setMargin(
int margin) {
setContentsMargins(margin, margin, margin, margin); }
129 QT3_SUPPORT
int margin()
const
130 {
int margin;
int dummy;
getContentsMargins(&margin, &dummy, &dummy, &dummy);
return margin; }
138 #endif // QT_NO_LCDNUMBER
144 #endif // QLCDNUMBER_H
#define QT_BEGIN_NAMESPACE
GLsizei const GLfloat * value
GLuint const GLchar * name
void paintEvent(QPaintEvent *)