#include "GlobDefs.h"#include "general.h"#include <QString>#include <QCoreApplication>Include dependency graph for general.cpp:

Functions | |
| QString | humanCount (qint64 n) |
| takes a number and transforms it to a quoted string such as 1,234,567.09. | |
| QString | humanCount (double n, int pers) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. takes a float number. | |
| void | flushAllEvents () |
| flush and burn all qt events. | |
Variables | |
| qint64 | powOf10 [] = { 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, Q_INT64_C(1000000000), Q_INT64_C(10000000000), Q_INT64_C(100000000000) } |
| void flushAllEvents | ( | ) |
flush and burn all qt events.
use this when visuals need to update in mid-function before moving on.
| QString humanCount | ( | double | n, | |
| int | pers | |||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. takes a float number.
| QString humanCount | ( | qint64 | n | ) |
takes a number and transforms it to a quoted string such as 1,234,567.09.
which is much more readable for humans.
| qint64 powOf10[] = { 1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, Q_INT64_C(1000000000), Q_INT64_C(10000000000), Q_INT64_C(100000000000) } |