summaryrefslogtreecommitdiffstats
path: root/noatun/modules/kjofol-skin/kjbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/kjofol-skin/kjbutton.cpp')
-rw-r--r--noatun/modules/kjofol-skin/kjbutton.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/noatun/modules/kjofol-skin/kjbutton.cpp b/noatun/modules/kjofol-skin/kjbutton.cpp
index 403ea61e..d051777e 100644
--- a/noatun/modules/kjofol-skin/kjbutton.cpp
+++ b/noatun/modules/kjofol-skin/kjbutton.cpp
@@ -16,7 +16,7 @@
#include <noatun/player.h>
#include <noatun/vequalizer.h>
-#include <qcursor.h>
+#include <tqcursor.h>
#include <kdebug.h>
#include <klocale.h>
#include <kpixmap.h>
@@ -30,8 +30,8 @@
* KJButton
*******************************************/
-KJButton::KJButton(const QStringList &i, KJLoader *parent)
- : QObject(0), KJWidget(parent), mTitle(i[0]), mShowPressed(false)
+KJButton::KJButton(const TQStringList &i, KJLoader *parent)
+ : TQObject(0), KJWidget(parent), mTitle(i[0]), mShowPressed(false)
{
// kdDebug(66666) << k_funcinfo << "new button: " << i[0].latin1() << endl;
mPushedPixmap = (i.count() >= 7);
@@ -44,18 +44,18 @@ KJButton::KJButton(const QStringList &i, KJLoader *parent)
ys=i[4].toInt()-y; // height
setRect ( x, y, xs, ys );
- QStringList temp = i;
+ TQStringList temp = i;
// search for selected button-type
// can be either BMPx where x is a number representing one
// of the background-images
// or darken which means just darken the button on click
bool gotBack = false; // in case any of these keys is duplicated
- for(QStringList::Iterator it = temp.begin(); it != temp.end(); ++it)
+ for(TQStringList::Iterator it = temp.begin(); it != temp.end(); ++it)
{
if((*it).contains("bmp"))
{
- QString pressedTmp = backgroundPressed((*it));
+ TQString pressedTmp = backgroundPressed((*it));
if(!pressedTmp.isEmpty())
{
mPressed = parent->pixmap(pressedTmp);
@@ -68,7 +68,7 @@ KJButton::KJButton(const QStringList &i, KJLoader *parent)
// FIXME: what KPixmapEffect causes the desired effect?
// intensity is the wrong one
KPixmap temp = parent->pixmap(parser()["backgroundimage"][1]);
- mPressed = (QPixmap)KPixmapEffect::intensity ( temp, 1.2f );
+ mPressed = (TQPixmap)KPixmapEffect::intensity ( temp, 1.2f );
gotBack = true;
}
if(gotBack)
@@ -87,24 +87,24 @@ KJButton::KJButton(const QStringList &i, KJLoader *parent)
if (mTitle=="playlistbutton")
{
mShowPressed = napp->playlist()->listVisible();
- connect( napp->player(), SIGNAL(playlistShown()), this, SLOT(slotPlaylistShown()) );
- connect( napp->player(), SIGNAL(playlistHidden()), this, SLOT(slotPlaylistHidden()) );
+ connect( napp->player(), TQT_SIGNAL(playlistShown()), this, TQT_SLOT(slotPlaylistShown()) );
+ connect( napp->player(), TQT_SIGNAL(playlistHidden()), this, TQT_SLOT(slotPlaylistHidden()) );
}
else if ( mTitle=="equalizeroffbutton") // same goes for EQ buttons
{
mShowPressed = (!napp->vequalizer()->isEnabled());
- connect( napp->vequalizer(), SIGNAL(enabled(bool)), SLOT(slotEqEnabled(bool)));
+ connect( napp->vequalizer(), TQT_SIGNAL(enabled(bool)), TQT_SLOT(slotEqEnabled(bool)));
}
else if (mTitle=="equalizeronbutton")
{
mShowPressed = napp->vequalizer()->isEnabled();
- connect( napp->vequalizer(), SIGNAL(enabled(bool)), SLOT(slotEqEnabled(bool)));
+ connect( napp->vequalizer(), TQT_SIGNAL(enabled(bool)), TQT_SLOT(slotEqEnabled(bool)));
}
}
-QString KJButton::tip()
+TQString KJButton::tip()
{
- QString str;
+ TQString str;
if (mTitle=="closebutton")
str=i18n("Close");
else if (mTitle=="minimizebutton")
@@ -149,13 +149,13 @@ QString KJButton::tip()
return str;
}
-void KJButton::paint(QPainter *, const QRect &)
+void KJButton::paint(TQPainter *, const TQRect &)
{
if (mShowPressed)
bitBlt(KJWidget::parent(), rect().topLeft(), &mPressed, rect(), Qt::CopyROP);
}
-bool KJButton::mousePress(const QPoint &)
+bool KJButton::mousePress(const TQPoint &)
{
bitBlt(KJWidget::parent(), rect().topLeft(), &mPressed, rect(), Qt::CopyROP);
return true;
@@ -191,7 +191,7 @@ void KJButton::slotEqEnabled(bool on)
showPressed(!on);
}
-void KJButton::mouseRelease(const QPoint &, bool in)
+void KJButton::mouseRelease(const TQPoint &, bool in)
{
// repaint with default image (player-background)
repaint(false);
@@ -233,7 +233,7 @@ void KJButton::mouseRelease(const QPoint &, bool in)
loopMenu->insertItem(i18n("&Random"), static_cast<int>(Player::Random));
loopMenu->setItemChecked(static_cast<int>(napp->player()->loopStyle()), true); // select current loopstyle in menu
- selectedItem = loopMenu->exec(QCursor::pos());
+ selectedItem = loopMenu->exec(TQCursor::pos());
if (selectedItem != -1)
napp->player()->loop(selectedItem); // set new loopstyle