From 49f9b290287ed4df63901c5912ddbb3c1ae5d515 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 22:19:39 +0000 Subject: rename the following methods: tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kmoon/kmoonwidget.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'kmoon/kmoonwidget.cpp') diff --git a/kmoon/kmoonwidget.cpp b/kmoon/kmoonwidget.cpp index f909235..3e727c5 100644 --- a/kmoon/kmoonwidget.cpp +++ b/kmoon/kmoonwidget.cpp @@ -50,8 +50,8 @@ extern double moonphasebylunation(int lun, int phi); extern time_t JDtoDate(double jd, struct tm *event_date); -MoonWidget::MoonWidget(TQWidget *tqparent, const char *name) - : TQWidget(tqparent, name) +MoonWidget::MoonWidget(TQWidget *parent, const char *name) + : TQWidget(parent, name) { struct tm * t; time_t clock; @@ -61,10 +61,10 @@ MoonWidget::MoonWidget(TQWidget *tqparent, const char *name) config->setGroup("General"); _angle = config->readNumEntry("Rotation", 0); _north = config->readBoolEntry("Northern", true); - _tqmask = config->readBoolEntry("Mask", true); + _mask = config->readBoolEntry("Mask", true); old_angle = old_w = old_h = old_counter = -1; old_north = false; - old_tqmask = false; + old_mask = false; startTimer(1000 * 60 * 20); time(&clock); @@ -250,7 +250,7 @@ void MoonWidget::setNorthHemi(bool n) void MoonWidget::setMask(bool value) { - _tqmask = value; + _mask = value; renderGraphic(); tqrepaint(); } @@ -328,7 +328,7 @@ void MoonWidget::renderGraphic() } else { dest = im.smoothScale(mw, mw).convertDepth(32); } - if (_tqmask) { + if (_mask) { // generate alpha-channel int dmw = mw*2; TQBitmap dMask(dmw, dmw); -- cgit v1.2.3