From ec1fddcd0d6663ad273af85357f04abbc5689468 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:00 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit c2637a0da6d9a1c8626ca39f8451ab3b7cda487a. --- libkscan/previewer.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'libkscan/previewer.cpp') diff --git a/libkscan/previewer.cpp b/libkscan/previewer.cpp index aca235ae..0e6c8804 100644 --- a/libkscan/previewer.cpp +++ b/libkscan/previewer.cpp @@ -24,11 +24,11 @@ #include #include #include -#include +#include #include #include #include -#include +#include #include #include @@ -119,10 +119,10 @@ Previewer::Previewer(TQWidget *parent, const char *name ) htop->addWidget( frame ); TQVBoxLayout *top = new TQVBoxLayout( frame, KDialog::marginHint(), KDialog::spacingHint() ); - layout = new TQHBoxLayout( KDialog::spacingHint() ); - top->addLayout( layout, 9 ); + tqlayout = new TQHBoxLayout( KDialog::spacingHint() ); + top->addLayout( tqlayout, 9 ); TQVBoxLayout *left = new TQVBoxLayout( KDialog::spacingHint() ); - layout->addLayout( left, 2 ); + tqlayout->addLayout( left, 2 ); /* Load autoselection values from Config file */ KConfig *cfg = KGlobal::config(); @@ -141,8 +141,8 @@ Previewer::Previewer(TQWidget *parent, const char *name ) img_canvas->setDefaultScaleKind( ImageCanvas::DYNAMIC ); img_canvas->enableContextMenu(true); - img_canvas->repaint(); - layout->addWidget( img_canvas, 6 ); + img_canvas->tqrepaint(); + tqlayout->addWidget( img_canvas, 6 ); /* Actions for the previewer zoom */ KAction *act; @@ -477,11 +477,11 @@ void Previewer::slNewDimen(TQRect r) selectionHeightMm = (overallHeight / 1000 * r.height()); TQString s; - s = i18n("width %1 mm").arg( int(selectionWidthMm)); + s = i18n("width %1 mm").tqarg( int(selectionWidthMm)); emit(setScanWidth(s)); kdDebug(29000) << "Setting new Dimension " << s << endl; - s = i18n("height %1 mm").arg(int(selectionHeightMm)); + s = i18n("height %1 mm").tqarg(int(selectionHeightMm)); emit(setScanHeight(s)); recalcFileSize( ); -- cgit v1.2.1