From ebbee358abafa1b5166404c6fe5cc44ae2837a57 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Dec 2011 14:21:13 -0600 Subject: Rename obsolete tq methods to standard names --- libkscan/img_canvas.cpp | 2 +- libkscan/kscandoc.h | 2 +- libkscan/kscanslider.cpp | 2 +- libkscan/previewer.cpp | 8 ++++---- libkscan/previewer.h | 2 +- libkscan/scanparams.cpp | 4 ++-- 6 files changed, 10 insertions(+), 10 deletions(-) (limited to 'libkscan') diff --git a/libkscan/img_canvas.cpp b/libkscan/img_canvas.cpp index b807af2f..edd21412 100644 --- a/libkscan/img_canvas.cpp +++ b/libkscan/img_canvas.cpp @@ -675,7 +675,7 @@ void ImageCanvas::update_scaled_pixmap( void ) if( scaleKind() == DYNAMIC ) kdDebug(28000) << "Scaling DYNAMIC" << endl; TQSize noSBSize( visibleWidth(), visibleHeight()); - const int sbWidth = kapp->tqstyle().pixelMetric( TQStyle::PM_ScrollBarExtent ); + const int sbWidth = kapp->style().pixelMetric( TQStyle::PM_ScrollBarExtent ); // if( verticalScrollBar()->visible() ) noSBSize.width()+=sbWidth; // if( horizontalScrollBar()->visible() ) noSBSize.height()+=sbWidth; diff --git a/libkscan/kscandoc.h b/libkscan/kscandoc.h index ca57150a..14f1f2c8 100644 --- a/libkscan/kscandoc.h +++ b/libkscan/kscandoc.h @@ -95,7 +95,7 @@ Small dialog which enables scanning source selection, e.g. Flatbed, automatic do - ScanParams\n The ScanParams class is the actual core of the - KScan Library in terms of interface tqlayout. The ScanParams class provides a ready-to-use interface for the selected scanner.\n + KScan Library in terms of interface layout. The ScanParams class provides a ready-to-use interface for the selected scanner.\n \n The scanner device is analyzed in this class and dynamically generates an interface, according to the device's properties, containing the most important operational elements. These are currently diff --git a/libkscan/kscanslider.cpp b/libkscan/kscanslider.cpp index 720a5593..cc51e05b 100644 --- a/libkscan/kscanslider.cpp +++ b/libkscan/kscanslider.cpp @@ -82,7 +82,7 @@ KScanSlider::KScanSlider( TQWidget *parent, const TQString& text, /* set Value 0 to the widget */ slider->setValue( (int) min -1 ); - /* Add to tqlayout widget and activate */ + /* Add to layout widget and activate */ hb->addWidget( slider, 36 ); hb->addSpacing( 4 ); hb->addWidget( m_spin, 0 ); diff --git a/libkscan/previewer.cpp b/libkscan/previewer.cpp index 0da2140c..93538e34 100644 --- a/libkscan/previewer.cpp +++ b/libkscan/previewer.cpp @@ -119,10 +119,10 @@ Previewer::Previewer(TQWidget *parent, const char *name ) htop->addWidget( frame ); TQVBoxLayout *top = new TQVBoxLayout( frame, KDialog::marginHint(), KDialog::spacingHint() ); - tqlayout = new TQHBoxLayout( KDialog::spacingHint() ); - top->addLayout( tqlayout, 9 ); + layout = new TQHBoxLayout( KDialog::spacingHint() ); + top->addLayout( layout, 9 ); TQVBoxLayout *left = new TQVBoxLayout( KDialog::spacingHint() ); - tqlayout->addLayout( left, 2 ); + layout->addLayout( left, 2 ); /* Load autoselection values from Config file */ KConfig *cfg = KGlobal::config(); @@ -142,7 +142,7 @@ Previewer::Previewer(TQWidget *parent, const char *name ) img_canvas->setDefaultScaleKind( ImageCanvas::DYNAMIC ); img_canvas->enableContextMenu(true); img_canvas->repaint(); - tqlayout->addWidget( img_canvas, 6 ); + layout->addWidget( img_canvas, 6 ); /* Actions for the previewer zoom */ KAction *act; diff --git a/libkscan/previewer.h b/libkscan/previewer.h index b1400e3a..7492604b 100644 --- a/libkscan/previewer.h +++ b/libkscan/previewer.h @@ -89,7 +89,7 @@ private: TQPoint calcPercent( int, int ); - TQHBoxLayout *tqlayout; + TQHBoxLayout *layout; ImageCanvas *img_canvas; TQComboBox *pre_format_combo; TQMemArray format_ids; diff --git a/libkscan/scanparams.cpp b/libkscan/scanparams.cpp index 422eed4a..636b96df 100644 --- a/libkscan/scanparams.cpp +++ b/libkscan/scanparams.cpp @@ -111,7 +111,7 @@ bool ScanParams::connectDevice( KScanDevice *newScanDevice ) /* initialise own widgets */ cb_gray_preview = 0; - /* A top tqlayout box */ + /* A top layout box */ // TQVBoxLayout *top = new TQVBoxLayout(this, 6); TQHBox *hb = new TQHBox( this ); hb->setSpacing( KDialog::spacingHint() ); @@ -160,7 +160,7 @@ bool ScanParams::connectDevice( KScanDevice *newScanDevice ) connect( pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(slStartScan()) ); pb = kbb->addButton( i18n( "&Preview Scan" )); connect( pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(slAcquirePreview()) ); - kbb->tqlayout(); + kbb->layout(); /* Initialise the progress dialog */ progressDialog = new TQProgressDialog( i18n("Scanning in progress"), -- cgit v1.2.1