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/adjustSizeButton.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/adjustSizeButton.cpp')
-rw-r--r-- | src/app/adjustSizeButton.cpp | 52 |
1 files changed, 26 insertions, 26 deletions
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 <kpushbutton.h> -#include <qapplication.h> -#include <qevent.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qpainter.h> +#include <ntqapplication.h> +#include <ntqevent.h> +#include <ntqlabel.h> +#include <ntqlayout.h> +#include <ntqpainter.h> #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( "<b>Adjust video scale?" ), this ) ); + TQBoxLayout *hbox = new TQHBoxLayout( this, 8, 6 ); + TQBoxLayout *vbox = new TQVBoxLayout( hbox ); + vbox->addWidget( new TQLabel( i18n( "<b>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 ); |