From 3f58dcfa4dcb0283eeca7a2f0ff53b932f686849 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 3 Oct 2024 11:02:49 +0900 Subject: [PATCH] Fix visibility of public slots in PartBase. This resolves issue #24 Signed-off-by: Michele Calgaro --- src/kmplayerpartbase.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/kmplayerpartbase.cpp b/src/kmplayerpartbase.cpp index feaeca5..af808fc 100644 --- a/src/kmplayerpartbase.cpp +++ b/src/kmplayerpartbase.cpp @@ -149,7 +149,7 @@ void PartBase::showConfigDialog () { m_settings->show ("URLPage"); } -TDE_NO_EXPORT void PartBase::showPlayListWindow () { +void PartBase::showPlayListWindow () { // note, this is also the slot of application's view_playlist action, but // anyhow, actions don't work for the fullscreen out-of-the-box, so ... if (m_view->viewArea ()->isFullScreen ()) @@ -160,7 +160,7 @@ TDE_NO_EXPORT void PartBase::showPlayListWindow () { m_view->toggleShowPlaylist (); } -TDE_NO_EXPORT void PartBase::addBookMark (const TQString & t, const TQString & url) { +void PartBase::addBookMark (const TQString & t, const TQString & url) { KBookmarkGroup b = m_bookmark_manager->root (); b.addBookmark (m_bookmark_manager, t, KURL (url)); m_bookmark_manager->emitChanged (b); @@ -360,7 +360,7 @@ void PartBase::setRecorder (const char * name) { m_recorder = recorder; } -TDE_NO_EXPORT void PartBase::slotPlayerMenu (int id) { +void PartBase::slotPlayerMenu (int id) { bool playing = m_process->playing (); const char * srcname = m_source->name (); TQPopupMenu * menu = m_view->controlPanel ()->playerMenu (); @@ -586,7 +586,7 @@ void PartBase::playingStopped () { m_bPosSliderPressed = false; } -TDE_NO_EXPORT void PartBase::setPosition (int position, int length) { +void PartBase::setPosition (int position, int length) { if (m_view && !m_bPosSliderPressed) emit positioned (position, length); } @@ -821,7 +821,7 @@ TDE_NO_EXPORT void PartBase::posSliderReleased () { m_process->seek (posSlider->value(), true); } -TDE_NO_EXPORT void PartBase::volumeChanged (int val) { +void PartBase::volumeChanged (int val) { if (m_process) { m_settings->volume = val; m_process->volume (val, true); @@ -868,7 +868,7 @@ TDE_NO_EXPORT void PartBase::fullScreen () { m_view->fullScreen (); } -TDE_NO_EXPORT void PartBase::toggleFullScreen () { +void PartBase::toggleFullScreen () { m_view->fullScreen (); } @@ -876,11 +876,11 @@ TDE_NO_EXPORT void PartBase::minimalMode () { emit toggleMinimalMode (); } -TDE_NO_EXPORT bool PartBase::isPlaying () { +bool PartBase::isPlaying () { return playing (); } -TDE_NO_EXPORT bool PartBase::isPaused () { +bool PartBase::isPaused () { NodePtr doc = m_source ? m_source->document () : 0L; return doc && doc->state == Node::state_deferred; }