From 12b478cefdf1789828dbcd677d409cf8bad654ca Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sat, 13 Jun 2020 16:33:09 +0200 Subject: Conversion KDE -> TDE environment. Signed-off-by: gregory guy --- src/app/fullScreenAction.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/app/fullScreenAction.cpp') diff --git a/src/app/fullScreenAction.cpp b/src/app/fullScreenAction.cpp index 62ba4fa..3787a33 100644 --- a/src/app/fullScreenAction.cpp +++ b/src/app/fullScreenAction.cpp @@ -3,14 +3,14 @@ #include "extern.h" #include "fullScreenAction.h" -#include -#include +#include +#include #include #include "xineEngine.h" //videoWindow() -FullScreenAction::FullScreenAction( TQWidget* window, KActionCollection *parent ) - : KToggleAction( TQString::null, Key_F, 0, 0, parent, "fullscreen" ) +FullScreenAction::FullScreenAction( TQWidget* window, TDEActionCollection *parent ) + : TDEToggleAction( TQString::null, Key_F, 0, 0, parent, "fullscreen" ) , m_window( window ) , m_shouldBeDisabled( false ) , m_state( 0 ) @@ -22,20 +22,20 @@ FullScreenAction::FullScreenAction( TQWidget* window, KActionCollection *parent void FullScreenAction::setChecked( bool setChecked ) { - KToggleAction::setChecked( setChecked ); + TDEToggleAction::setChecked( setChecked ); m_window->raise(); const int id = m_window->winId(); if( setChecked ) { setText( i18n("Exit F&ull Screen Mode") ); - setIcon("window_nofullscreen"); + setIcon("view-restore"); m_state = KWin::windowInfo( id ).state(); KWin::setState( id, NET::FullScreen ); } else { setText(i18n("F&ull Screen Mode")); - setIcon("window_fullscreen"); + setIcon("view-fullscreen"); KWin::clearState( id, NET::FullScreen ); KWin::setState( id, m_state ); // get round bug in KWin where it forgets maximisation state } @@ -54,14 +54,14 @@ FullScreenAction::setEnabled( bool setEnabled ) m_shouldBeDisabled = true; else { - //FIXME Codeine specific (because videoWindow isn't the window we control, we control the KMainWindow) + //FIXME Codeine specific (because videoWindow isn't the window we control, we control the TDEMainWindow) //NOTE also if the videoWindow is hidden at some point, this is broken.. //TODO new type of actionclass that event filters and is always correct state if( setEnabled && reinterpret_cast(Codeine::videoWindow())->isHidden() ) setEnabled = false; m_shouldBeDisabled = false; - KToggleAction::setEnabled( setEnabled ); + TDEToggleAction::setEnabled( setEnabled ); } } -- cgit v1.2.3