summaryrefslogtreecommitdiffstats
path: root/kmoon/kmoonwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit49f9b290287ed4df63901c5912ddbb3c1ae5d515 (patch)
tree0a20bf2186d58b5edef3a3a7da518ea3c8244246 /kmoon/kmoonwidget.cpp
parent1d14c95a7737078a695e99442628f450354c00ff (diff)
downloadtdetoys-49f9b290287ed4df63901c5912ddbb3c1ae5d515.tar.gz
tdetoys-49f9b290287ed4df63901c5912ddbb3c1ae5d515.zip
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
Diffstat (limited to 'kmoon/kmoonwidget.cpp')
-rw-r--r--kmoon/kmoonwidget.cpp12
1 files changed, 6 insertions, 6 deletions
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);