summaryrefslogtreecommitdiffstats
path: root/kaboodle/player.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:43:15 +0000
commite654398e46e37abf457b2b1122ab898d2c51c49f (patch)
treed39ee6440f3c3663c3ead84a2d4cc2d034667e96 /kaboodle/player.cpp
parente4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff)
downloadtdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz
tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kaboodle/player.cpp')
-rw-r--r--kaboodle/player.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kaboodle/player.cpp b/kaboodle/player.cpp
index 2530c0c5..70517c2d 100644
--- a/kaboodle/player.cpp
+++ b/kaboodle/player.cpp
@@ -32,7 +32,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "player.h"
#include "view.h"
-Kaboodle::Player::Player(QObject *parent, const char *name)
+Kaboodle::Player::Player(TQObject *parent, const char *name)
: KMediaPlayer::Player(parent, name)
, engine(new Engine(this))
, widget(0)
@@ -41,13 +41,13 @@ Kaboodle::Player::Player(QObject *parent, const char *name)
{
setInstance(KaboodleFactory::instance());
- connect(&ticker, SIGNAL(timeout()), SLOT(tickerTimeout()));
+ connect(&ticker, TQT_SIGNAL(timeout()), TQT_SLOT(tickerTimeout()));
ticker.start(500);
setState(Empty);
}
-Kaboodle::Player::Player(QWidget *widgetParent, const char *widgetName,
- QObject *parent, const char *name)
+Kaboodle::Player::Player(TQWidget *widgetParent, const char *widgetName,
+ TQObject *parent, const char *name)
: KMediaPlayer::Player(widgetParent, widgetName, parent, name)
, engine(new Engine(this))
, widget(new View(widgetParent, widgetName, this))
@@ -56,18 +56,18 @@ Kaboodle::Player::Player(QWidget *widgetParent, const char *widgetName,
{
setInstance(KaboodleFactory::instance());
- connect(&ticker, SIGNAL(timeout()), SLOT(tickerTimeout()));
+ connect(&ticker, TQT_SIGNAL(timeout()), TQT_SLOT(tickerTimeout()));
ticker.start(500);
setState(Empty);
- playAction = new KAction(i18n("&Play"), 0, this, SLOT(play()), actionCollection(), "play");
- pauseAction = new KAction(i18n("&Pause"), 0, this, SLOT(pause()), actionCollection(), "pause");
- stopAction = new KAction(i18n("&Stop"), 0, this, SLOT(stop()), actionCollection(), "stop");
- loopAction = new KToggleAction(i18n("&Looping"), 0, this, SLOT(loop()), actionCollection(), "loop");
+ playAction = new KAction(i18n("&Play"), 0, this, TQT_SLOT(play()), actionCollection(), "play");
+ pauseAction = new KAction(i18n("&Pause"), 0, this, TQT_SLOT(pause()), actionCollection(), "pause");
+ stopAction = new KAction(i18n("&Stop"), 0, this, TQT_SLOT(stop()), actionCollection(), "stop");
+ loopAction = new KToggleAction(i18n("&Looping"), 0, this, TQT_SLOT(loop()), actionCollection(), "loop");
stopAction->setEnabled(false);
playAction->setEnabled(false);
pauseAction->setEnabled(false);
- connect(this, SIGNAL(loopingChanged(bool)), loopAction, SLOT(setChecked(bool)));
+ connect(this, TQT_SIGNAL(loopingChanged(bool)), loopAction, TQT_SLOT(setChecked(bool)));
KParts::Part::setWidget(widget);
setXMLFile("kaboodlepartui.rc");
@@ -124,23 +124,23 @@ bool Kaboodle::Player::openFile(void)
return true;
}
-QString Kaboodle::Player::timeString(unsigned long time)
+TQString Kaboodle::Player::timeString(unsigned long time)
{
int posSecs = (int)(time / 1000);
int posSeconds = posSecs % 60;
int posMinutes = (posSecs - posSeconds) / 60;
- QString result;
+ TQString result;
result.sprintf("%.2d:%.2d", posMinutes, posSeconds);
return result;
}
-QString Kaboodle::Player::positionString(void)
+TQString Kaboodle::Player::positionString(void)
{
return timeString(engine->position());
}
-QString Kaboodle::Player::lengthString(void)
+TQString Kaboodle::Player::lengthString(void)
{
return timeString(engine->length());
}