diff options
author | gregory guy <[email protected]> | 2020-06-13 16:09:24 +0200 |
---|---|---|
committer | gregory guy <[email protected]> | 2020-06-13 16:09:24 +0200 |
commit | 2c9bc9b806f533df7b8f5349467d0f4be95314a4 (patch) | |
tree | 15f82ae94dd430374f3d939958912c4fb2855326 /src/app/fullScreenAction.cpp | |
parent | 38eaf7209a322a622e1b898eaa5477568ca9c6b6 (diff) | |
download | codeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.tar.gz codeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.zip |
Conversion qt3 -> tqt3
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src/app/fullScreenAction.cpp')
-rw-r--r-- | src/app/fullScreenAction.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/app/fullScreenAction.cpp b/src/app/fullScreenAction.cpp index f28da84..62ba4fa 100644 --- a/src/app/fullScreenAction.cpp +++ b/src/app/fullScreenAction.cpp @@ -5,12 +5,12 @@ #include "fullScreenAction.h" #include <klocale.h> #include <kwin.h> -#include <qwidget.h> +#include <ntqwidget.h> #include "xineEngine.h" //videoWindow() -FullScreenAction::FullScreenAction( QWidget* window, KActionCollection *parent ) - : KToggleAction( QString::null, Key_F, 0, 0, parent, "fullscreen" ) +FullScreenAction::FullScreenAction( TQWidget* window, KActionCollection *parent ) + : KToggleAction( TQString::null, Key_F, 0, 0, parent, "fullscreen" ) , m_window( window ) , m_shouldBeDisabled( false ) , m_state( 0 ) @@ -57,7 +57,7 @@ FullScreenAction::setEnabled( bool setEnabled ) //FIXME Codeine specific (because videoWindow isn't the window we control, we control the KMainWindow) //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<QWidget*>(Codeine::videoWindow())->isHidden() ) + if( setEnabled && reinterpret_cast<TQWidget*>(Codeine::videoWindow())->isHidden() ) setEnabled = false; m_shouldBeDisabled = false; @@ -66,17 +66,17 @@ FullScreenAction::setEnabled( bool setEnabled ) } bool -FullScreenAction::eventFilter( QObject *o, QEvent *e ) +FullScreenAction::eventFilter( TQObject *o, TQEvent *e ) { if( o == m_window ) switch( e->type() ) { - #if QT_VERSION >= 0x030300 - case QEvent::WindowStateChange: + #if TQT_VERSION >= 0x030300 + case TQEvent::WindowStateChange: #else - case QEvent::ShowFullScreen: - case QEvent::ShowNormal: - case QEvent::ShowMaximized: - case QEvent::ShowMinimized: + case TQEvent::ShowFullScreen: + case TQEvent::ShowNormal: + case TQEvent::ShowMaximized: + case TQEvent::ShowMinimized: #endif if (m_window->isFullScreen() != isChecked()) slotActivated(); // setChecked( window->isFullScreen()) wouldn't emit signals |