summaryrefslogtreecommitdiffstats
path: root/src/app/stateChange.cpp
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2020-06-13 16:09:24 +0200
committergregory guy <[email protected]>2020-06-13 16:09:24 +0200
commit2c9bc9b806f533df7b8f5349467d0f4be95314a4 (patch)
tree15f82ae94dd430374f3d939958912c4fb2855326 /src/app/stateChange.cpp
parent38eaf7209a322a622e1b898eaa5477568ca9c6b6 (diff)
downloadcodeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.tar.gz
codeine-2c9bc9b806f533df7b8f5349467d0f4be95314a4.zip
Conversion qt3 -> tqt3
Signed-off-by: gregory guy <[email protected]>
Diffstat (limited to 'src/app/stateChange.cpp')
-rw-r--r--src/app/stateChange.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/app/stateChange.cpp b/src/app/stateChange.cpp
index be15aeb..36d7e42 100644
--- a/src/app/stateChange.cpp
+++ b/src/app/stateChange.cpp
@@ -8,11 +8,11 @@
#include <kconfig.h>
#include <kglobal.h>
#include "mxcl.library.h"
-#include <qapplication.h>
-#include <qevent.h>
-#include <qlabel.h>
-#include <qpopupmenu.h>
-#include <qslider.h>
+#include <ntqapplication.h>
+#include <ntqevent.h>
+#include <ntqlabel.h>
+#include <ntqpopupmenu.h>
+#include <ntqslider.h>
#include "theStream.h"
#include "videoSettings.h" //FIXME unfortunate
#include "xineEngine.h"
@@ -36,7 +36,7 @@ MainWindow::engineStateChanged( Engine::State state )
KURL const &url = TheStream::url();
bool const isFullScreen = toggleAction("fullscreen")->isChecked();
- QWidget *const toolbar = reinterpret_cast<QWidget*>(toolBar());
+ TQWidget *const toolbar = reinterpret_cast<TQWidget*>(toolBar());
Debug::Block block( state == Engine::Empty
? "State: Empty" : state == Engine::Loaded
@@ -62,7 +62,7 @@ MainWindow::engineStateChanged( Engine::State state )
toggleAction( "play" )->setChecked( state == Playing );
//FIXME bad design to do this way
- QSlider *volume = (QSlider*)toolBar()->child( "volume" );
+ TQSlider *volume = (TQSlider*)toolBar()->child( "volume" );
if (volume)
volume->setValue( engine()->volume() );
}
@@ -78,8 +78,8 @@ MainWindow::engineStateChanged( Engine::State state )
// the toolbar play button is always enabled, but the menu item
// is disabled if we are empty, this looks more sensible
- QPopupMenu * const file_menu = menu( "file" );
- QPopupMenu * const settings_menu = menu( "settings" );
+ TQPopupMenu * const file_menu = menu( "file" );
+ TQPopupMenu * const settings_menu = menu( "settings" );
const int play_id = file_menu->idAt( 2 );
file_menu->setItemEnabled( play_id, state != Empty );
@@ -95,7 +95,7 @@ MainWindow::engineStateChanged( Engine::State state )
// set correct aspect ratio
if( state == Loaded )
- static_cast<QPopupMenu*>(child( "aspect_ratio_menu" ))->setItemChecked( TheStream::aspectRatio(), true );
+ static_cast<TQPopupMenu*>(child( "aspect_ratio_menu" ))->setItemChecked( TheStream::aspectRatio(), true );
}
@@ -130,20 +130,20 @@ MainWindow::engineStateChanged( Engine::State state )
#ifndef NO_SKIP_PR0N
// ;-)
- const QString url_string = url.url();
+ const TQString url_string = url.url();
if( !(url_string.contains( "porn", false ) || url_string.contains( "pr0n", false )) )
#endif
if( url.protocol() != "dvd" && url.protocol() != "vcd" ) {
KConfig *config = Codeine::config( "General" );
- const QString prettyUrl = url.prettyURL();
+ const TQString prettyUrl = url.prettyURL();
- QStringList urls = config->readPathListEntry( "Recent Urls" );
+ TQStringList urls = config->readPathListEntry( "Recent Urls" );
urls.remove( prettyUrl );
config->writePathEntry( "Recent Urls", urls << prettyUrl );
}
if( TheStream::hasVideo() && !isFullScreen )
- new AdjustSizeButton( reinterpret_cast<QWidget*>(videoWindow()) );
+ new AdjustSizeButton( reinterpret_cast<TQWidget*>(videoWindow()) );
}
@@ -165,7 +165,7 @@ MainWindow::engineStateChanged( Engine::State state )
/// set toolbar states
- QWidget *dvd_button = (QWidget*)toolBar()->child( "toolbutton_toggle_dvd_menu" );
+ TQWidget *dvd_button = (TQWidget*)toolBar()->child( "toolbutton_toggle_dvd_menu" );
if (dvd_button)
dvd_button->setShown( state != Engine::Empty && url.protocol() == "dvd" );
@@ -176,8 +176,8 @@ MainWindow::engineStateChanged( Engine::State state )
if( videoWindow()->isActiveWindow() ) {
//FIXME dual-screen this seems to still show
- QContextMenuEvent e( QContextMenuEvent::Other, QPoint(), Qt::MetaButton );
- QApplication::sendEvent( videoWindow(), &e );
+ TQContextMenuEvent e( TQContextMenuEvent::Other, TQPoint(), TQt::MetaButton );
+ TQApplication::sendEvent( videoWindow(), &e );
}
break;
case Engine::Empty: