Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qlcdnumber.cpp File Reference

(91f617899e63817c32eb47d8bbcf08603734158a)

#include "qlcdnumber.h"
#include "qbitarray.h"
#include "qnumeric.h"
#include "qpainter.h"
#include "private/qframe_p.h"
#include "moc_qlcdnumber.cpp"
Include dependency graph for qlcdnumber.cpp:

Go to the source code of this file.

Classes

class  QLCDNumberPrivate

Macros

#define LINETO(X, Y)
#define LIGHT
#define DARK
#define LINETO(X, Y)
#define LIGHT   p.setPen(lightColor)
#define DARK   p.setPen(darkColor)

Functions

static QString int2string (int number, int base, int ndigits, bool *oflow)
static QString double2string (double num, int base, int ndigits, bool *oflow)
static const char * getSegments (char ch)
static void addPoint (QPolygon &a, const QPoint &p)

Macro Definition Documentation

◆ DARK [1/2]

#define DARK   p.setPen(darkColor)

◆ DARK [2/2]

#define DARK

◆ LIGHT [1/2]

#define LIGHT   p.setPen(lightColor)

◆ LIGHT [2/2]

#define LIGHT

◆ LINETO [1/2]

#define LINETO ( X,
Y )
Value:
p.drawLine(ppt.x(), ppt.y(), pt.x()+(X), pt.y()+(Y)); \
ppt = QPoint(pt.x()+(X), pt.y()+(Y))
\inmodule QtCore\reentrant
Definition qpoint.h:30
GLfloat GLfloat p
#define X(name)

◆ LINETO [2/2]

#define LINETO ( X,
Y )
Value:
addPoint(a, QPoint(pt.x() + (X),pt.y() + (Y)))
static void addPoint(QPolygon &a, const QPoint &p)
GLboolean GLboolean GLboolean GLboolean a

Function Documentation

◆ addPoint()

void addPoint ( QPolygon & a,
const QPoint & p )
static

Definition at line 824 of file qlcdnumber.cpp.

◆ double2string()

QString double2string ( double num,
int base,
int ndigits,
bool * oflow )
static

Definition at line 166 of file qlcdnumber.cpp.

◆ getSegments()

const char * getSegments ( char ch)
static

Definition at line 194 of file qlcdnumber.cpp.

Referenced by QLCDNumberPrivate::drawDigit().

Here is the caller graph for this function:

◆ int2string()

QString int2string ( int number,
int base,
int ndigits,
bool * oflow )
static

Definition at line 114 of file qlcdnumber.cpp.