summaryrefslogtreecommitdiffstats
path: root/libkscan
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-21 14:21:13 -0600
committerTimothy Pearson <[email protected]>2011-12-21 14:21:13 -0600
commitebbee358abafa1b5166404c6fe5cc44ae2837a57 (patch)
tree268d36bbf4de9fb4007a1419b132b8b95251b99d /libkscan
parent74c05bbf9d92e43a6cf3799355b5f3598884409e (diff)
downloadtdegraphics-ebbee358abafa1b5166404c6fe5cc44ae2837a57.tar.gz
tdegraphics-ebbee358abafa1b5166404c6fe5cc44ae2837a57.zip
Rename obsolete tq methods to standard names
Diffstat (limited to 'libkscan')
-rw-r--r--libkscan/img_canvas.cpp2
-rw-r--r--libkscan/kscandoc.h2
-rw-r--r--libkscan/kscanslider.cpp2
-rw-r--r--libkscan/previewer.cpp8
-rw-r--r--libkscan/previewer.h2
-rw-r--r--libkscan/scanparams.cpp4
6 files changed, 10 insertions, 10 deletions
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<TQCString> 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"),