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

(87806f5cad6e4ce75a899598c15c126995682562)

#include "qlcdnumber.h"
#include "qbitarray.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 num, 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

◆ DARK [2/2]

#define DARK   p.setPen(darkColor)

◆ LIGHT [1/2]

#define LIGHT

◆ LIGHT [2/2]

#define LIGHT   p.setPen(lightColor)

◆ LINETO [1/2]

#define LINETO ( X,
Y )
Value:
addPoint(a, QPoint(pt.x() + (X),pt.y() + (Y)))
\inmodule QtCore\reentrant
Definition qpoint.h:29
static void addPoint(QPolygon &a, const QPoint &p)
GLboolean GLboolean GLboolean GLboolean a
#define X(name)

◆ LINETO [2/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))
GLfloat GLfloat p

Function Documentation

◆ addPoint()

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

Definition at line 828 of file qlcdnumber.cpp.

◆ double2string()

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

Definition at line 170 of file qlcdnumber.cpp.

◆ getSegments()

const char * getSegments ( char ch)
static

Definition at line 198 of file qlcdnumber.cpp.

Referenced by QLCDNumberPrivate::drawDigit().

Here is the caller graph for this function:

◆ int2string()

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

Definition at line 113 of file qlcdnumber.cpp.