From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkscan/scansourcedialog.cpp | 50 +++++++++++++++++++++---------------------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'libkscan/scansourcedialog.cpp') diff --git a/libkscan/scansourcedialog.cpp b/libkscan/scansourcedialog.cpp index 01d71dc1..fcb3fc25 100644 --- a/libkscan/scansourcedialog.cpp +++ b/libkscan/scansourcedialog.cpp @@ -23,18 +23,18 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include -#include -#include +#include +#include extern "C"{ @@ -45,21 +45,21 @@ extern "C"{ #endif -ScanSourceDialog::ScanSourceDialog( QWidget *parent, const QStrList list, ADF_BEHAVE adfBehave ) +ScanSourceDialog::ScanSourceDialog( TQWidget *parent, const TQStrList list, ADF_BEHAVE adfBehave ) : KDialogBase( parent, "SOURCE_DIALOG", true, i18n("Scan Source Selection"), Ok|Cancel,Ok, true) { - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - (void) new QLabel( i18n("Source selection

" + (void) new TQLabel( i18n("Source selection

" "Note that you may see more sources than actually exist"), vbox ); /* Combo Box for sources */ - const QStrList xx = list; + const TQStrList xx = list; sources = new KScanCombo( vbox, i18n("Select the Scanner document source:"), xx); - connect( sources, SIGNAL( activated(int)), this, SLOT( slChangeSource(int))); + connect( sources, TQT_SIGNAL( activated(int)), this, TQT_SLOT( slChangeSource(int))); /* Button Group for ADF-Behaviour */ @@ -68,16 +68,16 @@ ScanSourceDialog::ScanSourceDialog( QWidget *parent, const QStrList list, ADF_BE if( sourceAdfEntry() > -1 ) { - bgroup = new QVButtonGroup( i18n("Advanced ADF-Options"), vbox, "ADF_BGROUP" ); + bgroup = new TQVButtonGroup( i18n("Advanced ADF-Options"), vbox, "ADF_BGROUP" ); - connect( bgroup, SIGNAL(clicked(int)), this, SLOT( slNotifyADF(int))); + connect( bgroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT( slNotifyADF(int))); /* Two buttons inside */ - QRadioButton *rbADFTillEnd = new QRadioButton( i18n("Scan until ADF reports out of paper"), + TQRadioButton *rbADFTillEnd = new TQRadioButton( i18n("Scan until ADF reports out of paper"), bgroup ); bgroup->insert( rbADFTillEnd, ADF_SCAN_ALONG ); - QRadioButton *rbADFOnce = new QRadioButton( i18n("Scan only one sheet of ADF per click"), + TQRadioButton *rbADFOnce = new TQRadioButton( i18n("Scan only one sheet of ADF per click"), bgroup ); bgroup->insert( rbADFOnce, ADF_SCAN_ONCE ); @@ -104,7 +104,7 @@ ScanSourceDialog::ScanSourceDialog( QWidget *parent, const QStrList list, ADF_BE } } -QString ScanSourceDialog::getText( void ) const +TQString ScanSourceDialog::getText( void ) const { return( sources->currentText() ); } @@ -115,7 +115,7 @@ void ScanSourceDialog::slNotifyADF( int ) /* this seems to be broken, adf_text is a visible string? * needs rework if SANE 2 comes up which supports i18n */ #if 0 - QString adf_text = getText(); + TQString adf_text = getText(); adf = ADF_OFF; @@ -161,7 +161,7 @@ int ScanSourceDialog::sourceAdfEntry( void ) const for( int i = 0; i < cou; i++ ) { - QString q = sources->text( i ); + TQString q = sources->text( i ); #if 0 if( q == "ADF" || q == SANE_NAME_DOCUMENT_FEEDER ) @@ -174,7 +174,7 @@ int ScanSourceDialog::sourceAdfEntry( void ) const -void ScanSourceDialog::slSetSource( const QString source ) +void ScanSourceDialog::slSetSource( const TQString source ) { if( !sources ) return; kdDebug(29000) << "Setting <" << source << "> as source" << endl; @@ -189,7 +189,7 @@ void ScanSourceDialog::slSetSource( const QString source ) if( sources->text( i ) == source ) { sources->setCurrentItem( i ); - if( source == QString::number(sourceAdfEntry()) ) + if( source == TQString::number(sourceAdfEntry()) ) { if( bgroup ) bgroup->setEnabled( true ); -- cgit v1.2.1