Use tdeApp

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 1 month ago
parent 36d55c8a43
commit 4e6db34b5d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -440,7 +440,7 @@ KPlayer::KPlayer (TQWidget *parent, const char *name) : TDEMainWindow (parent, n
i18n("Hue toolbar has a hue slider that shows the current video hue and allows you to change it. This is the same slider you get from the hue pop-up slider button on the main toolbar, but it will not disappear when you click elsewhere. You can show or hide the toolbar using the Show Hue Toolbar option on the Settings menu. Clicking the Hue button on this toolbar will also hide it."),
i18n("Saturation toolbar has a saturation slider that shows the current video saturation and allows you to change it. This is the same slider you get from the saturation pop-up slider button on the main toolbar, but it will not disappear when you click elsewhere. You can show or hide the toolbar using the Show Saturation Toolbar option on the Settings menu. Clicking the Saturation button on this toolbar will also hide it.")
};
KPlayerEngine::initialize (actionCollection(), this, 0, kapp -> config());
KPlayerEngine::initialize (actionCollection(), this, 0, tdeApp -> config());
connect (engine(), TQ_SIGNAL (windowStateChanged (uint)), TQ_SLOT (windowStateChanged (uint)));
connect (engine(), TQ_SIGNAL (syncronize (bool)), TQ_SLOT (syncronize (bool)));
connect (engine(), TQ_SIGNAL (zoom()), TQ_SLOT (zoom()));
@ -1471,7 +1471,7 @@ void KPlayer::settingsConfigure (void)
void KPlayer::helpReportBug (void)
{
kapp -> invokeHelp ("howto-bug-reporting");
tdeApp -> invokeHelp ("howto-bug-reporting");
}
void KPlayer::playerStateChanged (KPlayerProcess::State state, KPlayerProcess::State previous)

@ -1113,7 +1113,7 @@ void KPlayerEngine::disableScreenSaver (void)
return;
TQByteArray data, reply;
TQCString type;
if ( ! kapp -> dcopClient() -> call ("kdesktop", "KScreensaverIface", "isEnabled()", data, type, reply)
if ( ! tdeApp -> dcopClient() -> call ("kdesktop", "KScreensaverIface", "isEnabled()", data, type, reply)
|| type != "bool" )
{
#ifdef DEBUG_KPLAYER_ENGINE
@ -1134,12 +1134,12 @@ void KPlayerEngine::disableScreenSaver (void)
TQDataStream argStream (data, IO_WriteOnly);
argStream << false;
#ifdef DEBUG_KPLAYER_ENGINE
if ( kapp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data) )
if ( tdeApp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data) )
kdDebugTime() << "Screensaver successfully disabled\n";
else
kdWarning() << "Could not disable screensaver\n";
#else
kapp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data);
tdeApp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data);
#endif
m_enable_screen_saver = true;
}
@ -1152,12 +1152,12 @@ void KPlayerEngine::enableScreenSaver (void)
TQDataStream argStream (data, IO_WriteOnly);
argStream << true;
#ifdef DEBUG_KPLAYER_ENGINE
if ( kapp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data) )
if ( tdeApp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data) )
kdDebugTime() << "Screensaver successfully enabled\n";
else
kdWarning() << "Could not enable screensaver\n";
#else
kapp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data);
tdeApp -> dcopClient() -> send ("kdesktop", "KScreensaverIface", "enable(bool)", data);
#endif
m_enable_screen_saver = false;
}

@ -2149,7 +2149,7 @@ void KPlayerNodeView::goToOrigin (void)
KPlayerPlaylist* KPlayerNodeView::playlist (void)
{
return ((KPlayer*) kapp -> mainWidget()) -> playlist();
return ((KPlayer*) tdeApp -> mainWidget()) -> playlist();
}
KPlayerListView::KPlayerListView (TQWidget* parent, const char* name)

Loading…
Cancel
Save