diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:47:17 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:47:17 -0600 |
commit | 6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (patch) | |
tree | cc90a09df2d1fd6d956cc084529a62d354316ad3 /blinken/src/number.cpp | |
parent | 174fd5e23c68598774706ea9b571d3d178e36b81 (diff) | |
download | tdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.tar.gz tdeedu-6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'blinken/src/number.cpp')
-rw-r--r-- | blinken/src/number.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/blinken/src/number.cpp b/blinken/src/number.cpp index 27621ee8..d5fbd539 100644 --- a/blinken/src/number.cpp +++ b/blinken/src/number.cpp @@ -7,7 +7,7 @@ * (at your option) any later version. * ***************************************************************************/ -#include <tqbrush.h> +#include <brush.h> #include <tqcolor.h> #include <tqpainter.h> @@ -100,7 +100,7 @@ void number::paintDigit(TQPainter &p, int number) const { // make gcc happy const int *n = m_number0; - int tqshape; + int shape; switch (number) { @@ -147,25 +147,25 @@ void number::paintDigit(TQPainter &p, int number) const { for (int j = 0; j < 4; j++) { - tqshape = n[j + i * 4]; - if (tqshape == 0) + shape = n[j + i * 4]; + if (shape == 0) { p.fillRect(7 * (j-1), 7 * (i-1), 6, 6, TQt::red); } - else if (tqshape != 5) + else if (shape != 5) { - if (tqshape == 1) p.translate(7 * (j-1), 7 * (i-1)); - else if (tqshape == 2) + if (shape == 1) p.translate(7 * (j-1), 7 * (i-1)); + else if (shape == 2) { p.translate(7 * j - 2, 7 * (i-1)); p.rotate(90); } - else if (tqshape == 3) + else if (shape == 3) { p.translate(7 * j - 2, 7 * i - 2); p.rotate(180); } - else if (tqshape == 4) + else if (shape == 4) { p.translate(7 * (j-1), 7 * i - 2); p.rotate(270); @@ -173,19 +173,19 @@ void number::paintDigit(TQPainter &p, int number) const p.drawPie(0, 0, 11, 11, 90 * 16, 16 * 90); - if (tqshape == 1) p.translate(-7 * (j-1), -7 * (i-1)); - else if (tqshape == 2) + if (shape == 1) p.translate(-7 * (j-1), -7 * (i-1)); + else if (shape == 2) { p.rotate(-90); p.translate(-(7 * j - 2), -7 * (i-1)); } - else if (tqshape == 3) + else if (shape == 3) { p.rotate(-180); p.translate(-(7 * j - 2), -(7 * i - 2)); } - else if (tqshape == 4) + else if (shape == 4) { p.rotate(-270); p.translate(- (7 * (j-1)), -(7 * i - 2)); |