summaryrefslogtreecommitdiffstats
path: root/kpdf/ui/minibar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpdf/ui/minibar.cpp')
-rw-r--r--kpdf/ui/minibar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kpdf/ui/minibar.cpp b/kpdf/ui/minibar.cpp
index eaceeed2..f05b8931 100644
--- a/kpdf/ui/minibar.cpp
+++ b/kpdf/ui/minibar.cpp
@@ -121,10 +121,10 @@ MiniBar::MiniBar( TQWidget * parent, KPDFDocument * document )
setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
// connect signals from child widgets to internal handlers / signals bouncers
- connect( m_pagesEdit, TQT_SIGNAL( returnPressed() ), this, TQT_SLOT( slotChangePage() ) );
- connect( m_pagesButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( gotoPage() ) );
- connect( m_prevButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( prevPage() ) );
- connect( m_nextButton, TQT_SIGNAL( clicked() ), this, TQT_SIGNAL( nextPage() ) );
+ connect( m_pagesEdit, TQ_SIGNAL( returnPressed() ), this, TQ_SLOT( slotChangePage() ) );
+ connect( m_pagesButton, TQ_SIGNAL( clicked() ), this, TQ_SIGNAL( gotoPage() ) );
+ connect( m_prevButton, TQ_SIGNAL( clicked() ), this, TQ_SIGNAL( prevPage() ) );
+ connect( m_nextButton, TQ_SIGNAL( clicked() ), this, TQ_SIGNAL( nextPage() ) );
// widget starts hidden (will be shown after opening a document)
parent->hide();
@@ -146,7 +146,7 @@ void MiniBar::notifySetup( const TQValueVector< KPDFPage * > & pageVector, bool
if ( pages < 1 )
{
m_currentPage = -1;
- TQT_TQWIDGET( parent() )->hide();
+ static_cast<TQWidget*>( parent() )->hide();
return;
}
@@ -171,7 +171,7 @@ void MiniBar::notifySetup( const TQValueVector< KPDFPage * > & pageVector, bool
m_pagesButton->setText( TQString::number( pages ) );
m_prevButton->setEnabled( false );
m_nextButton->setEnabled( false );
- TQT_TQWIDGET( parent() )->show();
+ static_cast<TQWidget*>( parent() )->show();
}
void MiniBar::notifyViewportChanged( bool /*smoothMove*/ )
@@ -275,13 +275,13 @@ void ProgressWidget::setProgress( float percentage )
void ProgressWidget::mouseMoveEvent( TQMouseEvent * e )
{
- if ( e->state() == Qt::LeftButton && width() > 0 )
+ if ( e->state() == TQt::LeftButton && width() > 0 )
m_miniBar->slotGotoNormalizedPage( (float)( TQApplication::reverseLayout() ? width() - e->x() : e->x() ) / (float)width() );
}
void ProgressWidget::mousePressEvent( TQMouseEvent * e )
{
- if ( e->button() == Qt::LeftButton && width() > 0 )
+ if ( e->button() == TQt::LeftButton && width() > 0 )
m_miniBar->slotGotoNormalizedPage( (float)( TQApplication::reverseLayout() ? width() - e->x() : e->x() ) / (float)width() );
}
@@ -333,7 +333,7 @@ PagesEdit::PagesEdit( MiniBar * parent )
focusOutEvent( 0 );
// use an integer validator
- m_validator = new TQIntValidator( 1, 1, TQT_TQOBJECT(this) );
+ m_validator = new TQIntValidator( 1, 1, this );
setValidator( m_validator );
// customize text properties