summaryrefslogtreecommitdiffstats
path: root/kghostview/kgv_miniwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kghostview/kgv_miniwidget.cpp')
-rw-r--r--kghostview/kgv_miniwidget.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kghostview/kgv_miniwidget.cpp b/kghostview/kgv_miniwidget.cpp
index a6acdd53..115434b9 100644
--- a/kghostview/kgv_miniwidget.cpp
+++ b/kghostview/kgv_miniwidget.cpp
@@ -124,7 +124,7 @@ void KGVMiniWidget::goToPage()
#else
TQString num;
bool b = false;
- num = KLineEditDlg::getText(i18n("Go to Page"), i18n("Page:"), TQString::null, &b, _part->widget(), new TQIntValidator(1, dsc()->page_count(), this));
+ num = KLineEditDlg::getText(i18n("Go to Page"), i18n("Page:"), TQString(), &b, _part->widget(), new TQIntValidator(1, dsc()->page_count(), this));
if (b) goToPage( num.toInt() - 1 );
#endif
}
@@ -384,7 +384,7 @@ void KGVMiniWidget::showPage( int pagenumber )
kdDebug(4500) << "KGVMiniWidget::showPage( " << pagenumber << " )" << endl;
- static_cast< TQWidget* >( _psWidget->parent() )->show();
+ TQT_TQWIDGET( _psWidget->tqparent() )->show();
_psWidget->setFileName(_document->fileName(), dsc()->isStructured() );
_psWidget->clear();
@@ -441,7 +441,7 @@ void KGVMiniWidget::showPage( int pagenumber )
/*
KNotifyClient::userEvent
(i18n("KGhostview cannot load the document, \"%1\".\n"
- "It appears to be broken.").arg( _fileName ),
+ "It appears to be broken.").tqarg( _fileName ),
KNotifyClient::Messagebox);
_psWidget->disableInterpreter();
_psFile=0;
@@ -452,8 +452,8 @@ void KGVMiniWidget::showPage( int pagenumber )
}
}
// Do this after ajusting pagenumber above
- _thumbnailService->cancelRequests( -1 , _part->scrollBox(), TQT_SLOT( setThumbnail( TQPixmap ) ) );
- _thumbnailService->delayedGetThumbnail( pagenumber, _part->scrollBox(), TQT_SLOT( setThumbnail( TQPixmap ) ), true );
+ _thumbnailService->cancelRequests( -1 , TQT_TQOBJECT(_part->scrollBox()), TQT_SLOT( setThumbnail( TQPixmap ) ) );
+ _thumbnailService->delayedGetThumbnail( pagenumber, TQT_TQOBJECT(_part->scrollBox()), TQT_SLOT( setThumbnail( TQPixmap ) ), true );
emit newPageShown( pagenumber );
}
@@ -486,13 +486,13 @@ void KGVMiniWidget::updateStatusBarText( int pageNumber )
else
if( !_usePageLabels || document()->format() == KGVDocument::PDF )
text = i18n( "Page %1 of %2" )
- .arg( pageNumber + 1 )
- .arg( dsc()->page_count() );
+ .tqarg( pageNumber + 1 )
+ .tqarg( dsc()->page_count() );
else
text = i18n( "Page %1 (%2 of %3)" )
- .arg( dsc()->page()[ _options.page() ].label )
- .arg( pageNumber + 1 )
- .arg( dsc()->page_count() );
+ .tqarg( dsc()->page()[ _options.page() ].label )
+ .tqarg( pageNumber + 1 )
+ .tqarg( dsc()->page_count() );
emit setStatusBarText( text );
}
@@ -534,7 +534,7 @@ void KGVMiniWidget::buildTOC()
}
}
else {
- marklist->insertItem( TQString::fromLatin1( "1" ), 0 );
+ marklist->insertItem( TQString::tqfromLatin1( "1" ), 0 );
}
}