Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qlcdnumber.cpp File Reference

(f2e622a75dc5c27bb3eeb73e286264bd4415ede7)

#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)   addPoint(a, QPoint(pt.x() + (X),pt.y() + (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 )   addPoint(a, QPoint(pt.x() + (X),pt.y() + (Y)))

◆ 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))
\inmodule QtCore\reentrant
Definition qpoint.h:25
GLfloat GLfloat p
[1]

Function Documentation

◆ addPoint()

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

Definition at line 827 of file qlcdnumber.cpp.

Referenced by QGeoMapPolygonGeometry::updateSourcePoints().

+ Here is the caller graph for this function:

◆ double2string()

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

Definition at line 169 of file qlcdnumber.cpp.

References QString::asprintf(), base, QLCDNumber::Dec, i, and int2string().

Referenced by QLCDNumber::checkOverflow(), and QLCDNumber::display().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSegments()

static const char * getSegments ( char ch)
static

Definition at line 197 of file qlcdnumber.cpp.

References ch.

Referenced by QLCDNumberPrivate::drawDigit().

+ Here is the caller graph for this function:

◆ int2string()

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

Definition at line 112 of file qlcdnumber.cpp.

References QString::asprintf(), base, QLCDNumber::Bin, QLCDNumber::Dec, QLCDNumber::Hex, i, and QLCDNumber::Oct.

Referenced by QLCDNumber::checkOverflow(), QLCDNumber::display(), and double2string().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: