summaryrefslogtreecommitdiffstats
path: root/src/kmplayer_rp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kmplayer_rp.cpp')
-rw-r--r--src/kmplayer_rp.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/kmplayer_rp.cpp b/src/kmplayer_rp.cpp
index c255e39..7b0b44f 100644
--- a/src/kmplayer_rp.cpp
+++ b/src/kmplayer_rp.cpp
@@ -18,9 +18,9 @@
#include <config.h>
-#include <qcolor.h>
-#include <qimage.h>
-#include <qtimer.h>
+#include <tqcolor.h>
+#include <tqimage.h>
+#include <tqtimer.h>
#include <kdebug.h>
@@ -162,7 +162,7 @@ KDE_NO_EXPORT Surface *RP::Imfl::surface () {
return rp_surface.ptr ();
}
-KDE_NO_EXPORT NodePtr RP::Imfl::childFromTag (const QString & tag) {
+KDE_NO_EXPORT NodePtr RP::Imfl::childFromTag (const TQString & tag) {
const char * ctag = tag.latin1 ();
if (!strcmp (ctag, "head"))
return new DarkNode (m_doc, "head", RP::id_node_head);
@@ -183,11 +183,11 @@ KDE_NO_EXPORT NodePtr RP::Imfl::childFromTag (const QString & tag) {
return 0L;
}
-KDE_NO_EXPORT void RP::Imfl::repaint () {
+KDE_NO_EXPORT void RP::Imfl::tqrepaint () {
if (!active ())
- kdWarning () << "Spurious Imfl repaint" << endl;
+ kdWarning () << "Spurious Imfl tqrepaint" << endl;
else if (surface () && width > 0 && height > 0)
- rp_surface->repaint (SRect (0, 0, width, height));
+ rp_surface->tqrepaint (SRect (0, 0, width, height));
}
KDE_NO_CDTOR_EXPORT RP::Image::Image (NodePtr & doc)
@@ -219,7 +219,7 @@ KDE_NO_EXPORT void RP::Image::begin () {
}
KDE_NO_EXPORT void RP::Image::deactivate () {
- cached_img.setUrl (QString ());
+ cached_img.setUrl (TQString ());
if (img_surface) {
img_surface->remove ();
img_surface = NULL;
@@ -229,10 +229,10 @@ KDE_NO_EXPORT void RP::Image::deactivate () {
}
-KDE_NO_EXPORT void RP::Image::remoteReady (QByteArray & data) {
+KDE_NO_EXPORT void RP::Image::remoteReady (TQByteArray & data) {
kdDebug () << "RP::Image::remoteReady" << endl;
if (!data.isEmpty () && cached_img.isEmpty ()) {
- QImage * img = new QImage (data);
+ TQImage * img = new TQImage (data);
if (!img->isNull ()) {
cached_img.data->image = img;
width = img->width ();
@@ -252,7 +252,7 @@ KDE_NO_EXPORT bool RP::Image::isReady (bool postpone_if_not) {
KDE_NO_EXPORT Surface *RP::Image::surface () {
if (!img_surface && !cached_img.isEmpty ()) {
- Node * p = parentNode ().ptr ();
+ Node * p = tqparentNode ().ptr ();
if (p && p->id == RP::id_node_imfl) {
Surface *ps = static_cast <RP::Imfl *> (p)->surface ();
if (ps)
@@ -272,7 +272,7 @@ KDE_NO_EXPORT void RP::TimingsBase::activate () {
srcx = srcy = srcw = srch = 0;
for (Attribute * a= attributes ()->first ().ptr (); a; a = a->nextSibling ().ptr ()) {
if (a->name () == StringPool::attr_target) {
- for (NodePtr n = parentNode()->firstChild(); n; n= n->nextSibling())
+ for (NodePtr n = tqparentNode()->firstChild(); n; n= n->nextSibling())
if (convertNode <Element> (n)->
getAttribute ("handle") == a->value ())
target = n;
@@ -351,9 +351,9 @@ KDE_NO_EXPORT void RP::TimingsBase::begin () {
KDE_NO_EXPORT void RP::TimingsBase::update (int percentage) {
progress = percentage;
- Node * p = parentNode ().ptr ();
+ Node * p = tqparentNode ().ptr ();
if (p->id == RP::id_node_imfl)
- static_cast <RP::Imfl *> (p)->repaint ();
+ static_cast <RP::Imfl *> (p)->tqrepaint ();
}
KDE_NO_EXPORT void RP::TimingsBase::finish () {
@@ -416,7 +416,7 @@ KDE_NO_EXPORT void RP::Fadein::accept (Visitor * v) {
}
KDE_NO_EXPORT void RP::Fadeout::activate () {
- to_color = QColor (getAttribute ("color")).rgb ();
+ to_color = TQColor (getAttribute ("color")).rgb ();
TimingsBase::activate ();
}
@@ -430,7 +430,7 @@ KDE_NO_EXPORT void RP::Fadeout::accept (Visitor * v) {
}
KDE_NO_EXPORT void RP::Fill::activate () {
- color = QColor (getAttribute ("color")).rgb ();
+ color = TQColor (getAttribute ("color")).rgb ();
TimingsBase::activate ();
}
@@ -445,13 +445,13 @@ KDE_NO_EXPORT void RP::Fill::accept (Visitor * v) {
KDE_NO_EXPORT void RP::Wipe::activate () {
//TODO implement 'type="push"'
- QString dir = getAttribute ("direction").lower ();
+ TQString dir = getAttribute ("direction").lower ();
direction = dir_right;
- if (dir == QString::fromLatin1 ("left"))
+ if (dir == TQString::tqfromLatin1 ("left"))
direction = dir_left;
- else if (dir == QString::fromLatin1 ("up"))
+ else if (dir == TQString::tqfromLatin1 ("up"))
direction = dir_up;
- else if (dir == QString::fromLatin1 ("down"))
+ else if (dir == TQString::tqfromLatin1 ("down"))
direction = dir_down;
TimingsBase::activate ();
}
@@ -479,14 +479,14 @@ KDE_NO_EXPORT void RP::ViewChange::activate () {
KDE_NO_EXPORT void RP::ViewChange::begin () {
kdDebug () << "RP::ViewChange::begin" << endl;
setState (state_began);
- Node * p = parentNode ().ptr ();
+ Node * p = tqparentNode ().ptr ();
if (p->id == RP::id_node_imfl)
static_cast <RP::Imfl *> (p)->needs_scene_img++;
update (0);
}
KDE_NO_EXPORT void RP::ViewChange::finish () {
- Node * p = parentNode ().ptr ();
+ Node * p = tqparentNode ().ptr ();
if (p && p->id == RP::id_node_imfl)
static_cast <RP::Imfl *> (p)->needs_scene_img--;
TimingsBase::finish ();