diff options
Diffstat (limited to 'kaboodle/player.cpp')
-rw-r--r-- | kaboodle/player.cpp | 28 |
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()); } |