summaryrefslogtreecommitdiffstats
path: root/kmoon/kmoonwidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:14 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 10:00:14 -0600
commit4d75f93557ba631d97a56e288a34ca27f4507653 (patch)
tree9c6aa673bd4900debf335044852a99b4d9f67133 /kmoon/kmoonwidget.cpp
parent6cdf35ab11c322f33feca5baf090ef56068b6049 (diff)
downloadtdetoys-4d75f93557ba631d97a56e288a34ca27f4507653.tar.gz
tdetoys-4d75f93557ba631d97a56e288a34ca27f4507653.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 6cdf35ab11c322f33feca5baf090ef56068b6049.
Diffstat (limited to 'kmoon/kmoonwidget.cpp')
-rw-r--r--kmoon/kmoonwidget.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kmoon/kmoonwidget.cpp b/kmoon/kmoonwidget.cpp
index fd4dcf1..89858c8 100644
--- a/kmoon/kmoonwidget.cpp
+++ b/kmoon/kmoonwidget.cpp
@@ -70,14 +70,14 @@ MoonWidget::MoonWidget(TQWidget *parent, const char *name)
time(&clock);
t = gmtime(&clock);
// kdDebug() << "time " << t->tm_isdst << " " << timezone << " " << daylight << endl ;
- calcStatus(mktime(t));
+ calctqStatus(mktime(t));
}
MoonWidget::~MoonWidget()
{
}
-void MoonWidget::calcStatus( time_t time )
+void MoonWidget::calctqStatus( time_t time )
{
uint lun = 0;
time_t last_new = 0;
@@ -217,14 +217,14 @@ void MoonWidget::calcStatus( time_t time )
}
renderGraphic();
- repaint();
+ tqrepaint();
}
TQImage MoonWidget::loadMoon(int index)
{
if (index == 0) // the new moon has the wrong filename
index = 29;
- TQString filename = TQString("kmoon/pics/moon%1.png").arg(index);
+ TQString filename = TQString("kmoon/pics/moon%1.png").tqarg(index);
TQString path = locate("data", filename);
if (path.isNull())
kdFatal() << "cound't find " << filename << ". Exiting.\n";
@@ -238,21 +238,21 @@ void MoonWidget::setAngle(int value)
{
_angle = value;
renderGraphic();
- repaint();
+ tqrepaint();
}
void MoonWidget::setNorthHemi(bool n)
{
_north = n;
renderGraphic();
- repaint();
+ tqrepaint();
}
void MoonWidget::setMask(bool value)
{
_mask = value;
renderGraphic();
- repaint();
+ tqrepaint();
}
void MoonWidget::paintEvent(TQPaintEvent *)
@@ -263,7 +263,7 @@ void MoonWidget::paintEvent(TQPaintEvent *)
void MoonWidget::resizeEvent(TQResizeEvent *)
{
renderGraphic();
- repaint();
+ tqrepaint();
}
void MoonWidget::renderGraphic()