diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:42 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:50:42 -0600 |
commit | 6cdf35ab11c322f33feca5baf090ef56068b6049 (patch) | |
tree | ca493b21887096329578b1c02530fd4ca9388cfc /fifteenapplet/fifteenapplet.cpp | |
parent | 44b2e94b380d4e5ec1539874823ffc06f05515cb (diff) | |
download | tdetoys-6cdf35ab11c322f33feca5baf090ef56068b6049.tar.gz tdetoys-6cdf35ab11c322f33feca5baf090ef56068b6049.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'fifteenapplet/fifteenapplet.cpp')
-rw-r--r-- | fifteenapplet/fifteenapplet.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fifteenapplet/fifteenapplet.cpp b/fifteenapplet/fifteenapplet.cpp index 498f93d..1409c4f 100644 --- a/fifteenapplet/fifteenapplet.cpp +++ b/fifteenapplet/fifteenapplet.cpp @@ -24,7 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <stdlib.h> #include <time.h> -#include <tqlayout.h> +#include <layout.h> #include <tqpainter.h> #include <tqpopupmenu.h> @@ -54,7 +54,7 @@ FifteenApplet::FifteenApplet(const TQString& configFile, Type type, int actions, _table = new PiecesTable(this); setCustomMenu(_table->popup()); - // setup tqlayout + // setup layout TQHBoxLayout *_layout = new TQHBoxLayout(this); _layout->add(_table); @@ -120,7 +120,7 @@ void PiecesTable::paintCell(TQPainter *p, int row, int col) // draw cell background if(number == 16) - p->setBrush(tqcolorGroup().background()); + p->setBrush(colorGroup().background()); else p->setBrush(_colors[number-1]); p->setPen(NoPen); @@ -128,7 +128,7 @@ void PiecesTable::paintCell(TQPainter *p, int row, int col) // draw borders if (height() > 40) { - p->setPen(tqcolorGroup().text()); + p->setPen(colorGroup().text()); if(col < numCols()-1) p->drawLine(x2, 0, x2, y2); // right border line @@ -198,14 +198,14 @@ void PiecesTable::randomizeMap() } } } - tqrepaint(); + repaint(); _randomized = true; } void PiecesTable::resetMap() { initMap(); - tqrepaint(); + repaint(); } void PiecesTable::chectwin() |