From 2c9bc9b806f533df7b8f5349467d0f4be95314a4 Mon Sep 17 00:00:00 2001 From: gregory guy Date: Sat, 13 Jun 2020 16:09:24 +0200 Subject: Conversion qt3 -> tqt3 Signed-off-by: gregory guy --- src/app/adjustSizeButton.cpp | 52 ++++++++++++++++++++++---------------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'src/app/adjustSizeButton.cpp') diff --git a/src/app/adjustSizeButton.cpp b/src/app/adjustSizeButton.cpp index 041b01c..3a5c1dd 100644 --- a/src/app/adjustSizeButton.cpp +++ b/src/app/adjustSizeButton.cpp @@ -4,50 +4,50 @@ #include "adjustSizeButton.h" #include "extern.h" #include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include #include "theStream.h" #include "xineEngine.h" //videoWindow() -QString i18n( const char *text ); +TQString i18n( const char *text ); namespace Codeine { - AdjustSizeButton::AdjustSizeButton( QWidget *parent ) - : QFrame( parent ) + AdjustSizeButton::AdjustSizeButton( TQWidget *parent ) + : TQFrame( parent ) , m_counter( 0 ) , m_stage( 1 ) , m_offset( 0 ) { parent->installEventFilter( this ); - setPalette( QApplication::palette() ); //videoWindow has different palette - setFrameStyle( QFrame::Plain | QFrame::Box ); + setPalette( TQApplication::palette() ); //videoWindow has different palette + setFrameStyle( TQFrame::Plain | TQFrame::Box ); m_preferred = new KPushButton( KGuiItem( i18n("Preferred Scale"), "viewmag" ), this ); - connect( m_preferred, SIGNAL(clicked()), qApp->mainWidget(), SLOT(adjustSize()) ); + connect( m_preferred, SIGNAL(clicked()), tqApp->mainWidget(), SLOT(adjustSize()) ); connect( m_preferred, SIGNAL(clicked()), SLOT(deleteLater()) ); m_oneToOne = new KPushButton( KGuiItem( i18n("Scale 100%"), "viewmag1" ), this ); - connect( m_oneToOne, SIGNAL(clicked()), (QObject*)videoWindow(), SLOT(resetZoom()) ); + connect( m_oneToOne, SIGNAL(clicked()), (TQObject*)videoWindow(), SLOT(resetZoom()) ); connect( m_oneToOne, SIGNAL(clicked()), SLOT(deleteLater()) ); - QBoxLayout *hbox = new QHBoxLayout( this, 8, 6 ); - QBoxLayout *vbox = new QVBoxLayout( hbox ); - vbox->addWidget( new QLabel( i18n( "Adjust video scale?" ), this ) ); + TQBoxLayout *hbox = new TQHBoxLayout( this, 8, 6 ); + TQBoxLayout *vbox = new TQVBoxLayout( hbox ); + vbox->addWidget( new TQLabel( i18n( "Adjust video scale?" ), this ) ); vbox->addWidget( m_preferred ); vbox->addWidget( m_oneToOne ); - hbox->addWidget( m_thingy = new QFrame( this ) ); + hbox->addWidget( m_thingy = new TQFrame( this ) ); m_thingy->setFixedWidth( fontMetrics().width( "X" ) ); - m_thingy->setFrameStyle( QFrame::Plain | QFrame::Box ); + m_thingy->setFrameStyle( TQFrame::Plain | TQFrame::Box ); m_thingy->setPaletteForegroundColor( paletteBackgroundColor().dark() ); - QEvent e( QEvent::Resize ); + TQEvent e( TQEvent::Resize ); eventFilter( 0, &e ); adjustSize(); @@ -57,9 +57,9 @@ namespace Codeine } void - AdjustSizeButton::timerEvent( QTimerEvent* ) + AdjustSizeButton::timerEvent( TQTimerEvent* ) { - QFrame *&h = m_thingy; + TQFrame *&h = m_thingy; switch( m_stage ) { @@ -76,7 +76,7 @@ namespace Codeine case 2: //fill in pause timer bar if( m_counter < h->height() - 3 ) - QPainter( h ).fillRect( 2, 2, h->width() - 4, m_counter, palette().active().highlight() ); + TQPainter( h ).fillRect( 2, 2, h->width() - 4, m_counter, palette().active().highlight() ); if( !hasMouse() ) m_counter++; @@ -104,12 +104,12 @@ namespace Codeine } bool - AdjustSizeButton::eventFilter( QObject *o, QEvent *e ) + AdjustSizeButton::eventFilter( TQObject *o, TQEvent *e ) { - if( e->type() == QEvent::Resize ) { - const QSize preferredSize = TheStream::profile()->readSizeEntry( "Preferred Size" ); - const QSize defaultSize = TheStream::defaultVideoSize(); - const QSize parentSize = parentWidget()->size(); + if( e->type() == TQEvent::Resize ) { + const TQSize preferredSize = TheStream::profile()->readSizeEntry( "Preferred Size" ); + const TQSize defaultSize = TheStream::defaultVideoSize(); + const TQSize parentSize = parentWidget()->size(); m_preferred->setEnabled( preferredSize.isValid() && parentSize != preferredSize && defaultSize != preferredSize ); m_oneToOne->setEnabled( defaultSize != parentSize ); -- cgit v1.2.1