diff options
author | Michele Calgaro <[email protected]> | 2024-05-03 12:15:51 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-05-07 12:22:48 +0900 |
commit | c5d77586845f1afdb3869941ed4612de6be566a0 (patch) | |
tree | f0fd879959ef68abe19bc21e9f2e58ed04e9b55a /src/kmplayerview.cpp | |
parent | 2debdf218d21f3e2efc518481f0aea57a46b6539 (diff) | |
download | kmplayer-c5d77586845f1afdb3869941ed4612de6be566a0.tar.gz kmplayer-c5d77586845f1afdb3869941ed4612de6be566a0.zip |
Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 22a46b7525fb4db31bdd603c7a18a9204144ef0f)
Diffstat (limited to 'src/kmplayerview.cpp')
-rw-r--r-- | src/kmplayerview.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/kmplayerview.cpp b/src/kmplayerview.cpp index ecad4bb..92c017a 100644 --- a/src/kmplayerview.cpp +++ b/src/kmplayerview.cpp @@ -97,7 +97,7 @@ protected: } // namespace -KDE_NO_EXPORT void KMPlayerPictureWidget::mousePressEvent (TQMouseEvent *) { +TDE_NO_EXPORT void KMPlayerPictureWidget::mousePressEvent (TQMouseEvent *) { m_view->emitPictureClicked (); } @@ -109,7 +109,7 @@ KDE_NO_CDTOR_EXPORT TextEdit::TextEdit (TQWidget * parent, View * view) : TQText setColor (TQColor (0xB2, 0xB2, 0xB2)); } -KDE_NO_EXPORT void TextEdit::contextMenuEvent (TQContextMenuEvent * e) { +TDE_NO_EXPORT void TextEdit::contextMenuEvent (TQContextMenuEvent * e) { m_view->controlPanel ()->popupMenu ()->exec (e->globalPos ()); } @@ -120,7 +120,7 @@ KDE_NO_CDTOR_EXPORT InfoWindow::InfoWindow (TQWidget * parent, View * view) : TQ setLinkUnderline (false); } -KDE_NO_EXPORT void InfoWindow::contextMenuEvent (TQContextMenuEvent * e) { +TDE_NO_EXPORT void InfoWindow::contextMenuEvent (TQContextMenuEvent * e) { m_view->controlPanel ()->popupMenu ()->exec (e->globalPos ()); } @@ -148,7 +148,7 @@ KDE_NO_CDTOR_EXPORT View::View (TQWidget *parent, const char *name) m_edit_mode (false) {} -KDE_NO_EXPORT void View::dropEvent (TQDropEvent * de) { +TDE_NO_EXPORT void View::dropEvent (TQDropEvent * de) { KURL::List sl; if (KURLDrag::canDecode (de)) { KURLDrag::decode (de, sl); @@ -166,12 +166,12 @@ KDE_NO_EXPORT void View::dropEvent (TQDropEvent * de) { } } -KDE_NO_EXPORT void View::dragEnterEvent (TQDragEnterEvent* dee) { +TDE_NO_EXPORT void View::dragEnterEvent (TQDragEnterEvent* dee) { if (isDragValid (dee)) dee->accept (); } -KDE_NO_EXPORT void View::init (TDEActionCollection * action_collection) { +TDE_NO_EXPORT void View::init (TDEActionCollection * action_collection) { setBackgroundMode(TQt::NoBackground); // prevents flashing //m_dockarea->setEraseColor (TQColor (0, 0, 0)); TQPalette pal (TQColor (64, 64,64), TQColor (32, 32, 32)); @@ -232,7 +232,7 @@ KDE_NO_CDTOR_EXPORT View::~View () { delete m_view_area; } -KDE_NO_EXPORT void View::setEraseColor (const TQColor & color) { +TDE_NO_EXPORT void View::setEraseColor (const TQColor & color) { KMediaPlayer::View::setEraseColor (color); if (statusBar ()) { statusBar ()->setEraseColor (color); @@ -342,7 +342,7 @@ bool View::setPicture (const TQString & path) { return m_image; } -KDE_NO_EXPORT void View::updateVolume () { +TDE_NO_EXPORT void View::updateVolume () { if (m_mixer_init && !m_volume_slider) return; TQByteArray data, replydata; @@ -434,7 +434,7 @@ void View::setStatusBarMode (StatusBarMode m) { m_view_area->resizeEvent (0L); } -KDE_NO_EXPORT void View::delayedShowButtons (bool show) { +TDE_NO_EXPORT void View::delayedShowButtons (bool show) { if ((show && m_control_panel->isVisible ()) || (!show && !m_control_panel->isVisible ())) { if (controlbar_timer) { @@ -452,7 +452,7 @@ KDE_NO_EXPORT void View::delayedShowButtons (bool show) { } } -KDE_NO_EXPORT void View::setVolume (int vol) { +TDE_NO_EXPORT void View::setVolume (int vol) { if (m_inVolumeUpdate) return; TQByteArray data; TQDataStream arg( data, IO_WriteOnly ); @@ -461,7 +461,7 @@ KDE_NO_EXPORT void View::setVolume (int vol) { kdWarning() << "Failed to update volume" << endl; } -KDE_NO_EXPORT void View::updateLayout () { +TDE_NO_EXPORT void View::updateLayout () { if (m_controlpanel_mode == CP_Only) m_control_panel->setMaximumSize (2500, height ()); m_view_area->resizeEvent (0L); @@ -475,7 +475,7 @@ void View::setKeepSizeRatio (bool b) { } } -KDE_NO_EXPORT void View::timerEvent (TQTimerEvent * e) { +TDE_NO_EXPORT void View::timerEvent (TQTimerEvent * e) { if (e->timerId () == controlbar_timer) { controlbar_timer = 0; if (m_playing || @@ -541,7 +541,7 @@ void View::addText (const TQString & str, bool eol) { printpainter.end (); }*/ -KDE_NO_EXPORT void View::videoStart () { +TDE_NO_EXPORT void View::videoStart () { if (m_dockarea->getMainDockWidget () != m_dock_video) { // restore from an info or playlist only setting KDockWidget * dw = m_dockarea->getMainDockWidget (); @@ -557,7 +557,7 @@ KDE_NO_EXPORT void View::videoStart () { } } -KDE_NO_EXPORT void View::playingStart () { +TDE_NO_EXPORT void View::playingStart () { if (m_playing) return; //FIXME: make symetric with playingStop if (m_widgetstack->visibleWidget () == m_widgettypes[WT_Picture]) m_widgetstack->raiseWidget (m_viewer); @@ -566,7 +566,7 @@ KDE_NO_EXPORT void View::playingStart () { setControlPanelMode (m_old_controlpanel_mode); } -KDE_NO_EXPORT void View::playingStop () { +TDE_NO_EXPORT void View::playingStop () { if (m_controlpanel_mode == CP_AutoHide && m_widgetstack->visibleWidget () != m_widgettypes[WT_Picture]) { m_control_panel->show (); @@ -581,11 +581,11 @@ KDE_NO_EXPORT void View::playingStop () { m_view_area->resizeEvent (0L); } -KDE_NO_EXPORT void View::leaveEvent (TQEvent *) { +TDE_NO_EXPORT void View::leaveEvent (TQEvent *) { delayedShowButtons (false); } -KDE_NO_EXPORT void View::reset () { +TDE_NO_EXPORT void View::reset () { if (m_revert_fullscreen && isFullScreen()) m_control_panel->popupMenu ()->activateItemAt (m_control_panel->popupMenu ()->indexOf (ControlPanel::menu_fullscreen)); //m_view_area->fullScreen (); @@ -612,7 +612,7 @@ void View::fullScreen () { emit fullScreenChanged (); } -KDE_NO_EXPORT int View::statusBarHeight () const { +TDE_NO_EXPORT int View::statusBarHeight () const { if (statusBar()->isVisible () && !viewArea()->isFullScreen ()) { if (statusBarMode () == SB_Only) return height (); @@ -690,7 +690,7 @@ KDE_NO_CDTOR_EXPORT Viewer::Viewer (TQWidget *parent, View * view) KDE_NO_CDTOR_EXPORT Viewer::~Viewer () { } -KDE_NO_EXPORT void Viewer::changeProtocol (QXEmbed::Protocol p) { +TDE_NO_EXPORT void Viewer::changeProtocol (QXEmbed::Protocol p) { kdDebug () << "changeProtocol " << (int)protocol () << "->" << p << endl; if (!embeddedWinId () || p != protocol ()) { if (p == QXEmbed::XPLAIN) { @@ -719,7 +719,7 @@ KDE_NO_EXPORT void Viewer::changeProtocol (QXEmbed::Protocol p) { } } -KDE_NO_EXPORT void Viewer::windowChanged (WId w) { +TDE_NO_EXPORT void Viewer::windowChanged (WId w) { kdDebug () << "windowChanged " << (int)w << endl; if (w /*&& m_plain_window*/) XSelectInput (tqt_xdisplay (), w, @@ -732,7 +732,7 @@ KDE_NO_EXPORT void Viewer::windowChanged (WId w) { PointerMotionMask); } -KDE_NO_EXPORT void Viewer::mouseMoveEvent (TQMouseEvent * e) { +TDE_NO_EXPORT void Viewer::mouseMoveEvent (TQMouseEvent * e) { if (e->state () == TQt::NoButton) { int cp_height = m_view->controlPanel ()->maximumSize ().height (); m_view->delayedShowButtons (e->y () > height () - cp_height); @@ -744,17 +744,17 @@ void Viewer::setAspect (float a) { m_aspect = a; } -KDE_NO_EXPORT int Viewer::heightForWidth (int w) const { +TDE_NO_EXPORT int Viewer::heightForWidth (int w) const { if (m_aspect <= 0.01) return 0; return int (w/m_aspect); } -KDE_NO_EXPORT void Viewer::dropEvent (TQDropEvent * de) { +TDE_NO_EXPORT void Viewer::dropEvent (TQDropEvent * de) { m_view->dropEvent (de); } -KDE_NO_EXPORT void Viewer::dragEnterEvent (TQDragEnterEvent* dee) { +TDE_NO_EXPORT void Viewer::dragEnterEvent (TQDragEnterEvent* dee) { m_view->dragEnterEvent (dee); } /* @@ -775,7 +775,7 @@ void Viewer::sendKeyEvent (int key) { } } -KDE_NO_EXPORT void Viewer::sendConfigureEvent () { +TDE_NO_EXPORT void Viewer::sendConfigureEvent () { WId w = embeddedWinId (); if (w) { XConfigureEvent c = { @@ -789,22 +789,22 @@ KDE_NO_EXPORT void Viewer::sendConfigureEvent () { } } -KDE_NO_EXPORT void Viewer::contextMenuEvent (TQContextMenuEvent * e) { +TDE_NO_EXPORT void Viewer::contextMenuEvent (TQContextMenuEvent * e) { m_view->controlPanel ()->popupMenu ()->exec (e->globalPos ()); } -KDE_NO_EXPORT void Viewer::setBackgroundColor (const TQColor & c) { +TDE_NO_EXPORT void Viewer::setBackgroundColor (const TQColor & c) { if (m_bgcolor != c.rgb ()) { m_bgcolor = c.rgb (); setCurrentBackgroundColor (c); } } -KDE_NO_EXPORT void Viewer::resetBackgroundColor () { +TDE_NO_EXPORT void Viewer::resetBackgroundColor () { setCurrentBackgroundColor (m_bgcolor); } -KDE_NO_EXPORT void Viewer::setCurrentBackgroundColor (const TQColor & c) { +TDE_NO_EXPORT void Viewer::setCurrentBackgroundColor (const TQColor & c) { setPaletteBackgroundColor (c); WId w = embeddedWinId (); if (w) { |