diff options
Diffstat (limited to 'libkscan')
-rw-r--r-- | libkscan/TODO | 2 | ||||
-rw-r--r-- | libkscan/devselector.cpp | 2 | ||||
-rw-r--r-- | libkscan/devselector.h | 2 | ||||
-rw-r--r-- | libkscan/dispgamma.h | 2 | ||||
-rw-r--r-- | libkscan/gammadialog.cpp | 10 | ||||
-rw-r--r-- | libkscan/gammadialog.h | 2 | ||||
-rw-r--r-- | libkscan/img_canvas.cpp | 12 | ||||
-rw-r--r-- | libkscan/img_canvas.h | 2 | ||||
-rw-r--r-- | libkscan/imgscaledialog.cpp | 14 | ||||
-rw-r--r-- | libkscan/imgscaledialog.h | 2 | ||||
-rw-r--r-- | libkscan/kgammatable.h | 2 | ||||
-rw-r--r-- | libkscan/kscandevice.cpp | 12 | ||||
-rw-r--r-- | libkscan/kscandevice.h | 2 | ||||
-rw-r--r-- | libkscan/kscanoption.cpp | 20 | ||||
-rw-r--r-- | libkscan/kscanoption.h | 2 | ||||
-rw-r--r-- | libkscan/kscanslider.cpp | 28 | ||||
-rw-r--r-- | libkscan/kscanslider.h | 6 | ||||
-rw-r--r-- | libkscan/massscandialog.cpp | 6 | ||||
-rw-r--r-- | libkscan/massscandialog.h | 2 | ||||
-rw-r--r-- | libkscan/previewer.cpp | 44 | ||||
-rw-r--r-- | libkscan/previewer.h | 2 | ||||
-rw-r--r-- | libkscan/scandialog.cpp | 40 | ||||
-rw-r--r-- | libkscan/scandialog.h | 2 | ||||
-rw-r--r-- | libkscan/scanparams.cpp | 70 | ||||
-rw-r--r-- | libkscan/scanparams.h | 2 | ||||
-rw-r--r-- | libkscan/scansourcedialog.cpp | 4 | ||||
-rw-r--r-- | libkscan/scansourcedialog.h | 2 | ||||
-rw-r--r-- | libkscan/sizeindicator.h | 2 |
28 files changed, 149 insertions, 149 deletions
diff --git a/libkscan/TODO b/libkscan/TODO index 5dd0a652..9ce04461 100644 --- a/libkscan/TODO +++ b/libkscan/TODO @@ -12,7 +12,7 @@ Our TODO List: - the gui functionality KDE 2.x - features. - KDE-features at all ! The whole stuff does not use any KDE-funcitonality, only Qt. What about having a Version which compiles without KDE ? .o0( Good idea to think about ? ) - - attention to drop QString where possible, and I think, its possible where SANE-stuff is + - attention to drop TQString where possible, and I think, its possible where SANE-stuff is used. - I18N-functions. In resource.h, I defined a macro I18N which does not much by now. I tried to place it around strings to prepare for real I18N treatment. How is that done ? diff --git a/libkscan/devselector.cpp b/libkscan/devselector.cpp index 542b975b..cff05d14 100644 --- a/libkscan/devselector.cpp +++ b/libkscan/devselector.cpp @@ -59,7 +59,7 @@ DeviceSelector::DeviceSelector( TQWidget *parent, TQStrList& devList, label->resize( 100, 350 ); topLayout->addWidget( label ); - selectBox = new TQButtonGroup( 1,Qt::Horizontal, i18n( "Select Scan Device" ), + selectBox = new TQButtonGroup( 1,TQt::Horizontal, i18n( "Select Scan Device" ), page, "ButtonBox"); TQ_CHECK_PTR( selectBox ); selectBox->setExclusive( true ); diff --git a/libkscan/devselector.h b/libkscan/devselector.h index 0389cd67..98a0fce9 100644 --- a/libkscan/devselector.h +++ b/libkscan/devselector.h @@ -53,7 +53,7 @@ class TQCheckBox; class DeviceSelector: public KDialogBase { - Q_OBJECT + TQ_OBJECT public: /** diff --git a/libkscan/dispgamma.h b/libkscan/dispgamma.h index e3073697..6f6ca917 100644 --- a/libkscan/dispgamma.h +++ b/libkscan/dispgamma.h @@ -34,7 +34,7 @@ extern "C"{ */ class DispGamma : public TQWidget { - Q_OBJECT + TQ_OBJECT public: DispGamma( TQWidget *parent ); diff --git a/libkscan/gammadialog.cpp b/libkscan/gammadialog.cpp index 2c6c601a..4ff60be9 100644 --- a/libkscan/gammadialog.cpp +++ b/libkscan/gammadialog.cpp @@ -41,13 +41,13 @@ GammaDialog::GammaDialog( TQWidget *parent ) : /* This connect is for recalculating the table every time a new * Bright., Contrast or Gamma-Value is set */ - connect( gt, TQT_SIGNAL(tableChanged()), gt, TQT_SLOT(getTable())); + connect( gt, TQ_SIGNAL(tableChanged()), gt, TQ_SLOT(getTable())); gtDisp = new DispGamma( page ); gtDisp->setValueRef( gt->getArrayPtr() ); gtDisp->resize( 280, 280 ); - connect( gt, TQT_SIGNAL(tableChanged()), gtDisp, TQT_SLOT( repaint())); + connect( gt, TQ_SIGNAL(tableChanged()), gtDisp, TQ_SLOT( repaint())); // setCaption( i18n( "Gamma Table" )); @@ -67,17 +67,17 @@ GammaDialog::GammaDialog( TQWidget *parent ) : wBright = new KScanSlider ( page, i18n("Brightness"), -50.0, 50.0 ); TQ_CHECK_PTR(wBright); wBright->slSetSlider( 0 ); - connect( wBright, TQT_SIGNAL(valueChanged(int)), gt, TQT_SLOT(setBrightness(int))); + connect( wBright, TQ_SIGNAL(valueChanged(int)), gt, TQ_SLOT(setBrightness(int))); wContrast = new KScanSlider ( page, i18n("Contrast") , -50.0, 50.0 ); TQ_CHECK_PTR(wContrast); wContrast->slSetSlider( 0 ); - connect( wContrast, TQT_SIGNAL(valueChanged(int)), gt, TQT_SLOT(setContrast(int))); + connect( wContrast, TQ_SIGNAL(valueChanged(int)), gt, TQ_SLOT(setContrast(int))); wGamma = new KScanSlider ( page, i18n("Gamma"), 30.0, 300.0 ); TQ_CHECK_PTR(wGamma); wGamma->slSetSlider(100); - connect( wGamma, TQT_SIGNAL(valueChanged(int)), gt, TQT_SLOT(setGamma(int))); + connect( wGamma, TQ_SIGNAL(valueChanged(int)), gt, TQ_SLOT(setGamma(int))); /* and add the Sliders */ lvSliders->addWidget( wBright, 1 ); diff --git a/libkscan/gammadialog.h b/libkscan/gammadialog.h index 1d3926d7..a4e6d01c 100644 --- a/libkscan/gammadialog.h +++ b/libkscan/gammadialog.h @@ -40,7 +40,7 @@ class KGammaTable; class GammaDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT // FIXME: Doesn't compile with TQt 3 (malte) // TQ_PROPERTY( KGammaTable *gt READ getGt WRITE setGt ) diff --git a/libkscan/img_canvas.cpp b/libkscan/img_canvas.cpp index d673b284..0003520e 100644 --- a/libkscan/img_canvas.cpp +++ b/libkscan/img_canvas.cpp @@ -114,8 +114,8 @@ ImageCanvas::ImageCanvas(TQWidget *parent, update_scaled_pixmap(); // timer-Start and stop - connect( this, TQT_SIGNAL( newRect()), TQT_SLOT( newRectSlot())); - connect( this, TQT_SIGNAL( noRect()), TQT_SLOT( noRectSlot())); + connect( this, TQ_SIGNAL( newRect()), TQ_SLOT( newRectSlot())); + connect( this, TQ_SIGNAL( noRect()), TQ_SLOT( noRectSlot())); //zoomOut();scrollview/scrollview viewport()->setCursor( crossCursor ); @@ -457,7 +457,7 @@ void ImageCanvas::viewportMousePressEvent(TQMouseEvent *ev) { if( ! acquired || ! image ) return; - if(ev->button()==Qt::LeftButton ) + if(ev->button()==TQt::LeftButton ) { int cx = contentsX(), cy = contentsY(); @@ -486,7 +486,7 @@ void ImageCanvas::viewportMousePressEvent(TQMouseEvent *ev) void ImageCanvas::viewportMouseReleaseEvent(TQMouseEvent *ev) { - if(ev->button()!=Qt::LeftButton || !acquired ) return; + if(ev->button()!=TQt::LeftButton || !acquired ) return; //// debug( "Mouse Release at %d/%d", ev->x(), ev->y()); if(moving!=MOVE_NONE) { @@ -783,7 +783,7 @@ void ImageCanvas::drawHAreaBorder(TQPainter &p,int x1,int x2,int y,int r) } else if(!acquired) p.setPen(TQPen(TQColor(150,150,150))); for(;;) { - if(TQT_TQRECT_OBJECT(rect()).contains(TQPoint(x1,y))) { + if(rect().contains(TQPoint(x1,y))) { if( r && acquired ) { int re_x1, re_y; inv_scale_matrix.map( x1+cx, y+cy, &re_x1, &re_y ); @@ -826,7 +826,7 @@ void ImageCanvas::drawVAreaBorder(TQPainter &p, int x, int y1, int y2, int r ) if( !acquired ) p.setPen( TQPen( TQColor(150,150,150) ) ); for(;;) { - if(TQT_TQRECT_OBJECT(rect()).contains( TQPoint(x,y1) )) { + if(rect().contains( TQPoint(x,y1) )) { if( r && acquired ) { int re_y1, re_x; inv_scale_matrix.map( x+cx, y1+cy, &re_x, &re_y1 ); diff --git a/libkscan/img_canvas.h b/libkscan/img_canvas.h index 86d3ba46..346c1ebf 100644 --- a/libkscan/img_canvas.h +++ b/libkscan/img_canvas.h @@ -73,7 +73,7 @@ extern int max_dpi; class ImageCanvas: public TQScrollView { - Q_OBJECT + TQ_OBJECT TQ_ENUMS( PopupIDs ) TQ_PROPERTY( int brightness READ getBrightness WRITE setBrightness ) diff --git a/libkscan/imgscaledialog.cpp b/libkscan/imgscaledialog.cpp index d7841339..05ccc8ec 100644 --- a/libkscan/imgscaledialog.cpp +++ b/libkscan/imgscaledialog.cpp @@ -40,13 +40,13 @@ ImgScaleDialog::ImgScaleDialog( TQWidget *parent, int curr_sel, // (void) new TQLabel( , main, "Page"); // // makeMainWidget(); - TQButtonGroup *radios = new TQButtonGroup ( 2, Qt::Horizontal, this ); + TQButtonGroup *radios = new TQButtonGroup ( 2, TQt::Horizontal, this ); setMainWidget(radios); TQ_CHECK_PTR(radios); radios->setTitle( i18n("Select Image Zoom") ); - connect( radios, TQT_SIGNAL( clicked( int )), - this, TQT_SLOT( setSelValue( int ))); + connect( radios, TQ_SIGNAL( clicked( int )), + this, TQ_SLOT( setSelValue( int ))); // left gap: smaller Image TQRadioButton *rb25 = new TQRadioButton (i18n ("25 %"), radios); @@ -109,10 +109,10 @@ ImgScaleDialog::ImgScaleDialog( TQWidget *parent, int curr_sel, sn.setNum(curr_sel ); leCust->setValidator( new KIntValidator( leCust ) ); leCust->setText(sn ); - connect( leCust, TQT_SIGNAL( textChanged( const TQString& )), - this, TQT_SLOT( customChanged( const TQString& ))); - connect( rbCust, TQT_SIGNAL( toggled( bool )), - this, TQT_SLOT(enableAndFocus(bool))); + connect( leCust, TQ_SIGNAL( textChanged( const TQString& )), + this, TQ_SLOT( customChanged( const TQString& ))); + connect( rbCust, TQ_SIGNAL( toggled( bool )), + this, TQ_SLOT(enableAndFocus(bool))); leCust->setEnabled( rbCust->isChecked()); diff --git a/libkscan/imgscaledialog.h b/libkscan/imgscaledialog.h index 8bf76c05..142aab2d 100644 --- a/libkscan/imgscaledialog.h +++ b/libkscan/imgscaledialog.h @@ -31,7 +31,7 @@ */ class ImgScaleDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT TQ_PROPERTY( int selected READ getSelected WRITE setSelValue ) diff --git a/libkscan/kgammatable.h b/libkscan/kgammatable.h index 3dd503cc..9166ddb7 100644 --- a/libkscan/kgammatable.h +++ b/libkscan/kgammatable.h @@ -29,7 +29,7 @@ extern "C" { class KGammaTable: public TQObject { - Q_OBJECT + TQ_OBJECT TQ_PROPERTY( int g READ getGamma WRITE setGamma ) diff --git a/libkscan/kscandevice.cpp b/libkscan/kscandevice.cpp index a4d46da5..8dad6e2a 100644 --- a/libkscan/kscandevice.cpp +++ b/libkscan/kscandevice.cpp @@ -135,8 +135,8 @@ KScanOption *KScanDevice::getGuiElement( const TQCString& name, TQWidget *parent w = so->createWidget( parent, desc, tooltip ); if( w ) { - connect( so, TQT_SIGNAL( optionChanged( KScanOption* ) ), - this, TQT_SLOT( slOptChanged( KScanOption* ))); + connect( so, TQ_SIGNAL( optionChanged( KScanOption* ) ), + this, TQ_SLOT( slOptChanged( KScanOption* ))); w->setEnabled( so->active() ); } else @@ -209,7 +209,7 @@ KScanDevice::KScanDevice( TQObject *parent ) } } #if 0 - connect( this, TQT_SIGNAL(sigOptionsChanged()), TQT_SLOT(slReloadAll())); + connect( this, TQ_SIGNAL(sigOptionsChanged()), TQ_SLOT(slReloadAll())); #endif gammaTables = new KScanOptSet( "GammaTables" ); } @@ -218,7 +218,7 @@ KScanDevice::KScanDevice( TQObject *parent ) kdDebug(29000) << "ERROR: sane_init failed -> SANE installed ?" << endl; } - connect( this, TQT_SIGNAL( sigScanFinished( KScanStat )), TQT_SLOT( slScanFinished( KScanStat ))); + connect( this, TQ_SIGNAL( sigScanFinished( KScanStat )), TQ_SLOT( slScanFinished( KScanStat ))); } @@ -1105,8 +1105,8 @@ KScanStat KScanDevice::acquire_data( bool isPreview ) if( sane_get_select_fd( scanner_handle, &fd ) == SANE_STATUS_GOOD ) { sn = new TQSocketNotifier( fd, TQSocketNotifier::Read, this ); - TQObject::connect( sn, TQT_SIGNAL(activated(int)), - this, TQT_SLOT( doProcessABlock() ) ); + TQObject::connect( sn, TQ_SIGNAL(activated(int)), + this, TQ_SLOT( doProcessABlock() ) ); } } diff --git a/libkscan/kscandevice.h b/libkscan/kscandevice.h index bd2610e7..e3c29606 100644 --- a/libkscan/kscandevice.h +++ b/libkscan/kscandevice.h @@ -63,7 +63,7 @@ typedef enum { class KScanDevice : public TQObject { - Q_OBJECT + TQ_OBJECT /* Hmmm - No TQ_PROPS ? */ diff --git a/libkscan/kscanoption.cpp b/libkscan/kscanoption.cpp index 4a820ee9..db116203 100644 --- a/libkscan/kscanoption.cpp +++ b/libkscan/kscanoption.cpp @@ -1085,8 +1085,8 @@ TQWidget *KScanOption::createWidget( TQWidget *parent, const TQString& w_desc, case BOOL: /* Widget Type is ToggleButton */ w = new TQCheckBox( text, parent, "AUTO_TOGGLE_BUTTON" ); - connect( w, TQT_SIGNAL(clicked()), this, - TQT_SLOT(slWidgetChange())); + connect( w, TQ_SIGNAL(clicked()), this, + TQ_SLOT(slWidgetChange())); break; case SINGLE_VAL: /* Widget Type is Entry-Field */ @@ -1120,8 +1120,8 @@ TQWidget *KScanOption::createWidget( TQWidget *parent, const TQString& w_desc, if( w ) { internal_widget = w; - connect( this, TQT_SIGNAL( optionChanged( KScanOption*)), - TQT_SLOT( slRedrawWidget( KScanOption* ))); + connect( this, TQ_SIGNAL( optionChanged( KScanOption*)), + TQ_SLOT( slRedrawWidget( KScanOption* ))); TQString tt = tooltip; if( tt.isEmpty() && desc ) tt = TQString::fromLocal8Bit( desc->desc ); @@ -1143,8 +1143,8 @@ TQWidget *KScanOption::comboBox( TQWidget *parent, const TQString& text ) KScanCombo *cb = new KScanCombo( parent, text, list); - connect( cb, TQT_SIGNAL( valueChanged( const TQCString& )), this, - TQT_SLOT( slWidgetChange( const TQCString& ))); + connect( cb, TQ_SIGNAL( valueChanged( const TQCString& )), this, + TQ_SLOT( slWidgetChange( const TQCString& ))); return( cb ); } @@ -1153,8 +1153,8 @@ TQWidget *KScanOption::comboBox( TQWidget *parent, const TQString& text ) TQWidget *KScanOption::entryField( TQWidget *parent, const TQString& text ) { KScanEntry *ent = new KScanEntry( parent, text ); - connect( ent, TQT_SIGNAL( valueChanged( TQCString )), this, - TQT_SLOT( slWidgetChange( TQCString ))); + connect( ent, TQ_SIGNAL( valueChanged( TQCString )), this, + TQ_SLOT( slWidgetChange( TQCString ))); return( ent ); } @@ -1167,8 +1167,8 @@ TQWidget *KScanOption::KSaneSlider( TQWidget *parent, const TQString& text ) KScanSlider *slider = new KScanSlider( parent, text, min, max ); /* Connect to the options change Slot */ - connect( slider, TQT_SIGNAL( valueChanged(int)), this, - TQT_SLOT( slWidgetChange(int))); + connect( slider, TQ_SIGNAL( valueChanged(int)), this, + TQ_SLOT( slWidgetChange(int))); return( slider ); } diff --git a/libkscan/kscanoption.h b/libkscan/kscanoption.h index d4139c52..6722f2cb 100644 --- a/libkscan/kscanoption.h +++ b/libkscan/kscanoption.h @@ -59,7 +59,7 @@ class KGammaTable; class KScanOption : public TQObject { - Q_OBJECT + TQ_OBJECT public: diff --git a/libkscan/kscanslider.cpp b/libkscan/kscanslider.cpp index 6d64f213..03988072 100644 --- a/libkscan/kscanslider.cpp +++ b/libkscan/kscanslider.cpp @@ -49,8 +49,8 @@ KScanSlider::KScanSlider( TQWidget *parent, const TQString& text, m_stdButt->setPixmap( loader->loadIcon( "edit-undo",TDEIcon::Small )); /* connect the button click to setting the value */ - connect( m_stdButt, TQT_SIGNAL(clicked()), - this, TQT_SLOT(slRevertValue())); + connect( m_stdButt, TQ_SIGNAL(clicked()), + this, TQ_SLOT(slRevertValue())); TQToolTip::add( m_stdButt, i18n( "Revert value back to its standard value %1" ).arg( stdValue )); @@ -58,7 +58,7 @@ KScanSlider::KScanSlider( TQWidget *parent, const TQString& text, hb->addSpacing( 4 ); } - slider = new TQSlider( (int) min, (int)max, 1, (int)min, Qt::Horizontal, this, "AUTO_SLIDER_" ); + slider = new TQSlider( (int) min, (int)max, 1, (int)min, TQt::Horizontal, this, "AUTO_SLIDER_" ); slider->setTickmarks( TQSlider::Below ); slider->setTickInterval( int(TQMAX( (max-min)/10, 1 )) ); slider->setSteps( int(TQMAX( (max-min)/20, 1) ), int(TQMAX( (max-min)/10, 1) ) ); @@ -73,11 +73,11 @@ KScanSlider::KScanSlider( TQWidget *parent, const TQString& text, /* make spin box changes change the slider */ - connect( m_spin, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(slSliderChange(int))); + connect( m_spin, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT(slSliderChange(int))); /* Handle internal number display */ - // connect(slider, TQT_SIGNAL(valueChanged(int)), numdisp, TQT_SLOT( setNum(int) )); - connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT( slSliderChange(int) )); + // connect(slider, TQ_SIGNAL(valueChanged(int)), numdisp, TQ_SLOT( setNum(int) )); + connect(slider, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT( slSliderChange(int) )); /* set Value 0 to the widget */ slider->setValue( (int) min -1 ); @@ -159,10 +159,10 @@ KScanEntry::KScanEntry( TQWidget *parent, const TQString& text ) entry = new TQLineEdit( this, "AUTO_ENTRYFIELD_E" ); l1->setBuddy( entry ); - connect( entry, TQT_SIGNAL( textChanged(const TQString& )), - this, TQT_SLOT( slEntryChange(const TQString&))); - connect( entry, TQT_SIGNAL( returnPressed()), - this, TQT_SLOT( slReturnPressed())); + connect( entry, TQ_SIGNAL( textChanged(const TQString& )), + this, TQ_SLOT( slEntryChange(const TQString&))); + connect( entry, TQ_SIGNAL( returnPressed()), + this, TQ_SLOT( slReturnPressed())); hb->addWidget( entry,3 ); hb->activate(); @@ -249,10 +249,10 @@ void KScanCombo::createCombo( const TQString& text ) combo = new TQComboBox( this, "AUTO_COMBO" ); - connect( combo, TQT_SIGNAL(activated( const TQString &)), this, - TQT_SLOT( slComboChange( const TQString &))); - connect( combo, TQT_SIGNAL(activated( int )), - this, TQT_SLOT(slFireActivated(int))); + connect( combo, TQ_SIGNAL(activated( const TQString &)), this, + TQ_SLOT( slComboChange( const TQString &))); + connect( combo, TQ_SIGNAL(activated( int )), + this, TQ_SLOT(slFireActivated(int))); } diff --git a/libkscan/kscanslider.h b/libkscan/kscanslider.h index 0ecf73af..a1d8be1a 100644 --- a/libkscan/kscanslider.h +++ b/libkscan/kscanslider.h @@ -44,7 +44,7 @@ class TQLabel; */ class KScanSlider : public TQFrame { - Q_OBJECT + TQ_OBJECT TQ_PROPERTY( int slider_val READ value WRITE slSetSlider ) @@ -117,7 +117,7 @@ private: */ class KScanEntry : public TQFrame { - Q_OBJECT + TQ_OBJECT TQ_PROPERTY( TQString text READ text WRITE slSetEntry ) @@ -171,7 +171,7 @@ private: */ class KScanCombo : public TQHBox { - Q_OBJECT + TQ_OBJECT TQ_PROPERTY( TQString cbEntry READ currentText WRITE slSetEntry ) diff --git a/libkscan/massscandialog.cpp b/libkscan/massscandialog.cpp index fb686bab..2a805fe6 100644 --- a/libkscan/massscandialog.cpp +++ b/libkscan/massscandialog.cpp @@ -84,13 +84,13 @@ MassScanDialog::MassScanDialog( TQWidget *parent ) bigdad->addLayout( l_but ); TQPushButton *b_start = new TQPushButton( i18n("Start Scan"), this, "ButtOK" ); - connect( b_start, TQT_SIGNAL(clicked()), this, TQT_SLOT( slStartScan()) ); + connect( b_start, TQ_SIGNAL(clicked()), this, TQ_SLOT( slStartScan()) ); TQPushButton *b_cancel = new TQPushButton( i18n("Stop"), this, "ButtCancel" ); - connect( b_cancel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slStopScan()) ); + connect( b_cancel, TQ_SIGNAL(clicked()), this, TQ_SLOT(slStopScan()) ); TQPushButton *b_finish = new KPushButton( KStdGuiItem::close(), this, "ButtFinish" ); - connect( b_finish, TQT_SIGNAL(clicked()), this, TQT_SLOT(slFinished()) ); + connect( b_finish, TQ_SIGNAL(clicked()), this, TQ_SLOT(slFinished()) ); l_but->addWidget( b_start ); l_but->addWidget( b_cancel ); diff --git a/libkscan/massscandialog.h b/libkscan/massscandialog.h index d17ce7fd..f7b65c09 100644 --- a/libkscan/massscandialog.h +++ b/libkscan/massscandialog.h @@ -32,7 +32,7 @@ class TQLabel; class MassScanDialog : public TQDialog { - Q_OBJECT + TQ_OBJECT public: MassScanDialog( TQWidget *parent); diff --git a/libkscan/previewer.cpp b/libkscan/previewer.cpp index 2925d50f..2409dd08 100644 --- a/libkscan/previewer.cpp +++ b/libkscan/previewer.cpp @@ -147,16 +147,16 @@ Previewer::Previewer(TQWidget *parent, const char *name ) /* Actions for the previewer zoom */ TDEAction *act; act = new TDEAction(i18n("Scale to W&idth"), "scaletowidth", CTRL+Key_I, - TQT_TQOBJECT(this), TQT_SLOT( slScaleToWidth()), TQT_TQOBJECT(this), "preview_scaletowidth" ); + this, TQ_SLOT( slScaleToWidth()), this, "preview_scaletowidth" ); act->plug( img_canvas->contextMenu()); act = new TDEAction(i18n("Scale to &Height"), "scaletoheight", CTRL+Key_H, - TQT_TQOBJECT(this), TQT_SLOT( slScaleToHeight()), TQT_TQOBJECT(this), "preview_scaletoheight" ); + this, TQ_SLOT( slScaleToHeight()), this, "preview_scaletoheight" ); act->plug( img_canvas->contextMenu()); /*Signals: Control the custom-field and show size of selection */ - connect( img_canvas, TQT_SIGNAL(newRect()), this, TQT_SLOT(slCustomChange())); - connect( img_canvas, TQT_SIGNAL(newRect(TQRect)), this, TQT_SLOT(slNewDimen(TQRect))); + connect( img_canvas, TQ_SIGNAL(newRect()), this, TQ_SLOT(slCustomChange())); + connect( img_canvas, TQ_SIGNAL(newRect(TQRect)), this, TQ_SLOT(slNewDimen(TQRect))); /* Stuff for the preview-Notification */ left->addWidget( new TQLabel( i18n("<B>Preview</B>"), frame ), 1); @@ -174,8 +174,8 @@ Previewer::Previewer(TQWidget *parent, const char *name ) pre_format_combo->insertItem( i18n( "10x15 cm" ), ID_10_15 ); pre_format_combo->insertItem( i18n( "Letter" ), ID_LETTER); - connect( pre_format_combo, TQT_SIGNAL(activated (int)), - this, TQT_SLOT( slFormatChange(int))); + connect( pre_format_combo, TQ_SIGNAL(activated (int)), + this, TQ_SLOT( slFormatChange(int))); left->addWidget( pre_format_combo, 1 ); @@ -190,7 +190,7 @@ Previewer::Previewer(TQWidget *parent, const char *name ) portrait_id = bgroup->id( rb2 ); bgroup->setButton( portrait_id ); - connect(bgroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slOrientChange(int))); + connect(bgroup, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slOrientChange(int))); int rblen = 5+w+12; // 12 for the button? rb1->setGeometry( 5, 6, rblen, h ); @@ -200,7 +200,7 @@ Previewer::Previewer(TQWidget *parent, const char *name ) /** Autoselection Box **/ - d->m_autoSelGroup = new TQGroupBox( 1,Qt::Horizontal, i18n("Auto-Selection"), frame); + d->m_autoSelGroup = new TQGroupBox( 1,TQt::Horizontal, i18n("Auto-Selection"), frame); TQHBox *hbox = new TQHBox(d->m_autoSelGroup); d->m_cbAutoSel = new TQCheckBox( i18n("Active on"), hbox ); @@ -211,22 +211,22 @@ Previewer::Previewer(TQWidget *parent, const char *name ) d->m_cbBackground = new TQComboBox( hbox ); d->m_cbBackground->insertItem(i18n("Black"), BG_ITEM_BLACK ); d->m_cbBackground->insertItem(i18n("White"), BG_ITEM_WHITE ); - connect( d->m_cbBackground, TQT_SIGNAL(activated(int) ), - this, TQT_SLOT( slScanBackgroundChanged( int ))); + connect( d->m_cbBackground, TQ_SIGNAL(activated(int) ), + this, TQ_SLOT( slScanBackgroundChanged( int ))); TQToolTip::add( d->m_cbBackground, i18n("Select whether a scan of the empty\n" "scanner glass results in a\n" "black or a white image.")); - connect( d->m_cbAutoSel, TQT_SIGNAL(toggled(bool) ), TQT_SLOT(slAutoSelToggled(bool))); + connect( d->m_cbAutoSel, TQ_SIGNAL(toggled(bool) ), TQ_SLOT(slAutoSelToggled(bool))); (void) new TQLabel( i18n("scanner background"), d->m_autoSelGroup ); TQLabel *l1= new TQLabel( i18n("Thresh&old:"), d->m_autoSelGroup ); - d->m_sliderThresh = new TQSlider( 0, 254, 10, d->m_autoSelThresh, Qt::Horizontal, + d->m_sliderThresh = new TQSlider( 0, 254, 10, d->m_autoSelThresh, TQt::Horizontal, d->m_autoSelGroup ); - connect( d->m_sliderThresh, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slSetAutoSelThresh(int))); + connect( d->m_sliderThresh, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slSetAutoSelThresh(int))); TQToolTip::add( d->m_sliderThresh, i18n("Threshold for autodetection.\n" "All pixels higher (on black background)\n" @@ -236,8 +236,8 @@ Previewer::Previewer(TQWidget *parent, const char *name ) #if 0 /** Dustsize-Slider: No deep impact on result **/ (void) new TQLabel( i18n("Dust size:"), grBox ); - d->m_sliderDust = new TQSlider( 0, 50, 5, d->m_dustsize, Qt::Horizontal, grBox ); - connect( d->m_sliderDust, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slSetAutoSelDustsize(int))); + d->m_sliderDust = new TQSlider( 0, 50, 5, d->m_dustsize, TQt::Horizontal, grBox ); + connect( d->m_sliderDust, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slSetAutoSelDustsize(int))); #endif /* disable Autoselbox as long as no scanner is connected */ @@ -246,15 +246,15 @@ Previewer::Previewer(TQWidget *parent, const char *name ) left->addWidget(d->m_autoSelGroup); /* Labels for the dimension */ - TQGroupBox *gbox = new TQGroupBox( 1,Qt::Horizontal, i18n("Selection"), frame, "GROUPBOX" ); + TQGroupBox *gbox = new TQGroupBox( 1,TQt::Horizontal, i18n("Selection"), frame, "GROUPBOX" ); TQLabel *l2 = new TQLabel( i18n("width - mm" ), gbox ); TQLabel *l3 = new TQLabel( i18n("height - mm" ), gbox ); - connect( this, TQT_SIGNAL(setScanWidth(const TQString&)), - l2, TQT_SLOT(setText(const TQString&))); - connect( this, TQT_SIGNAL(setScanHeight(const TQString&)), - l3, TQT_SLOT(setText(const TQString&))); + connect( this, TQ_SIGNAL(setScanWidth(const TQString&)), + l2, TQ_SLOT(setText(const TQString&))); + connect( this, TQ_SIGNAL(setScanHeight(const TQString&)), + l3, TQ_SLOT(setText(const TQString&))); /* size indicator */ TQHBox *hb = new TQHBox( gbox ); @@ -265,8 +265,8 @@ Previewer::Previewer(TQWidget *parent, const char *name ) "changing its background color." )); indi->setText( i18n("-") ); - connect( this, TQT_SIGNAL( setSelectionSize(long)), - indi, TQT_SLOT( setSizeInByte (long)) ); + connect( this, TQ_SIGNAL( setSelectionSize(long)), + indi, TQ_SLOT( setSizeInByte (long)) ); left->addWidget( gbox, 1 ); diff --git a/libkscan/previewer.h b/libkscan/previewer.h index c1891b7e..7dfe0471 100644 --- a/libkscan/previewer.h +++ b/libkscan/previewer.h @@ -42,7 +42,7 @@ class TQHBoxLayout; class Previewer : public TQWidget { - Q_OBJECT + TQ_OBJECT public: Previewer(TQWidget *parent=0, const char *name=0); diff --git a/libkscan/scandialog.cpp b/libkscan/scandialog.cpp index bd38caa1..8c852bea 100644 --- a/libkscan/scandialog.cpp +++ b/libkscan/scandialog.cpp @@ -74,18 +74,18 @@ ScanDialog::ScanDialog( TQWidget *parent, const char *name, bool modal ) { TQVBox *page = addVBoxPage( i18n("&Scanning") ); - splitter = new TQSplitter(Qt::Horizontal, page, "splitter" ); + splitter = new TQSplitter(TQt::Horizontal, page, "splitter" ); TQ_CHECK_PTR( splitter ); m_scanParams = 0; - m_device = new KScanDevice( TQT_TQOBJECT(this) ); - connect(m_device, TQT_SIGNAL(sigNewImage(TQImage *, ImgScanInfo*)), - this, TQT_SLOT(slotFinalImage(TQImage *, ImgScanInfo *))); - - connect( m_device, TQT_SIGNAL(sigScanStart()), this, TQT_SLOT(slotScanStart())); - connect( m_device, TQT_SIGNAL(sigScanFinished(KScanStat)), - this, TQT_SLOT(slotScanFinished(KScanStat))); - connect( m_device, TQT_SIGNAL(sigAcquireStart()), this, TQT_SLOT(slotAcquireStart())); + m_device = new KScanDevice( this ); + connect(m_device, TQ_SIGNAL(sigNewImage(TQImage *, ImgScanInfo*)), + this, TQ_SLOT(slotFinalImage(TQImage *, ImgScanInfo *))); + + connect( m_device, TQ_SIGNAL(sigScanStart()), this, TQ_SLOT(slotScanStart())); + connect( m_device, TQ_SIGNAL(sigScanFinished(KScanStat)), + this, TQ_SLOT(slotScanFinished(KScanStat))); + connect( m_device, TQ_SIGNAL(sigAcquireStart()), this, TQ_SLOT(slotAcquireStart())); /* Create a preview widget to the right side of the splitter */ m_previewer = new Previewer( splitter ); TQ_CHECK_PTR(m_previewer ); @@ -93,8 +93,8 @@ ScanDialog::ScanDialog( TQWidget *parent, const char *name, bool modal ) /* ... and connect to the selector-slots. They communicate user's * selection to the scanner parameter engine */ /* a new preview signal */ - connect( m_device, TQT_SIGNAL( sigNewPreview( TQImage*, ImgScanInfo* )), - this, TQT_SLOT( slotNewPreview( TQImage* ))); + connect( m_device, TQ_SIGNAL( sigNewPreview( TQImage*, ImgScanInfo* )), + this, TQ_SLOT( slotNewPreview( TQImage* ))); m_previewer->setEnabled( false ); // will be enabled in setup() @@ -110,7 +110,7 @@ void ScanDialog::createOptionsTab( void ) TQVBox *page = addVBoxPage( i18n("&Options")); setMainWidget(page); - TQGroupBox *gb = new TQGroupBox( 1, Qt::Horizontal, i18n("Startup Options"), page, "GB_STARTUP" ); + TQGroupBox *gb = new TQGroupBox( 1, TQt::Horizontal, i18n("Startup Options"), page, "GB_STARTUP" ); TQLabel *label = new TQLabel( i18n( "Note: changing these options will affect the scan plugin on next start." ), gb ); label->setSizePolicy( TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed ) ); @@ -136,10 +136,10 @@ void ScanDialog::createOptionsTab( void ) /* Note: flag must be inverted because of question is 'the other way round' */ cb_askOnStart->setChecked( !skipDialog ); - connect( cb_askOnStart, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotAskOnStartToggle(bool))); + connect( cb_askOnStart, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotAskOnStartToggle(bool))); cb_network->setChecked( !onlyLocal ); - connect( cb_network, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(slotNetworkToggle(bool))); + connect( cb_network, TQ_SIGNAL(toggled(bool)), this, TQ_SLOT(slotNetworkToggle(bool))); TQWidget *spaceEater = new TQWidget( page ); @@ -230,13 +230,13 @@ bool ScanDialog::setup() } m_scanParams = new ScanParams( splitter ); - connect( m_previewer->getImageCanvas(), TQT_SIGNAL( newRect(TQRect)), - m_scanParams, TQT_SLOT(slCustomScanSize(TQRect))); - connect( m_previewer->getImageCanvas(), TQT_SIGNAL( noRect()), - m_scanParams, TQT_SLOT(slMaximalScanSize())); + connect( m_previewer->getImageCanvas(), TQ_SIGNAL( newRect(TQRect)), + m_scanParams, TQ_SLOT(slCustomScanSize(TQRect))); + connect( m_previewer->getImageCanvas(), TQ_SIGNAL( noRect()), + m_scanParams, TQ_SLOT(slMaximalScanSize())); - connect( m_scanParams, TQT_SIGNAL( scanResolutionChanged( int, int )), - m_previewer, TQT_SLOT( slNewScanResolutions( int, int ))); + connect( m_scanParams, TQ_SIGNAL( scanResolutionChanged( int, int )), + m_previewer, TQ_SLOT( slNewScanResolutions( int, int ))); /* continue to attach a real scanner */ diff --git a/libkscan/scandialog.h b/libkscan/scandialog.h index 5457f857..a28f3941 100644 --- a/libkscan/scandialog.h +++ b/libkscan/scandialog.h @@ -31,7 +31,7 @@ class TQSplitter; class ScanDialog : public KScanDialog { - Q_OBJECT + TQ_OBJECT public: diff --git a/libkscan/scanparams.cpp b/libkscan/scanparams.cpp index cd9325d9..99b3f1ff 100644 --- a/libkscan/scanparams.cpp +++ b/libkscan/scanparams.cpp @@ -157,9 +157,9 @@ bool ScanParams::connectDevice( KScanDevice *newScanDevice ) (void) new KSeparator( KSeparator::HLine, this); KButtonBox *kbb = new KButtonBox( this ); TQPushButton* pb = kbb->addButton( KGuiItem( i18n( "Final S&can" ), "scanner" ) ); - connect( pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(slStartScan()) ); + connect( pb, TQ_SIGNAL(clicked()), this, TQ_SLOT(slStartScan()) ); pb = kbb->addButton( i18n( "&Preview Scan" )); - connect( pb, TQT_SIGNAL(clicked()), this, TQT_SLOT(slAcquirePreview()) ); + connect( pb, TQ_SIGNAL(clicked()), this, TQ_SLOT(slAcquirePreview()) ); kbb->layout(); /* Initialise the progress dialog */ @@ -169,12 +169,12 @@ bool ScanParams::connectDevice( KScanDevice *newScanDevice ) progressDialog->setAutoClose( true ); progressDialog->setAutoReset( true ); - connect( sane_device, TQT_SIGNAL(sigScanProgress(int)), - progressDialog, TQT_SLOT(setProgress(int))); + connect( sane_device, TQ_SIGNAL(sigScanProgress(int)), + progressDialog, TQ_SLOT(setProgress(int))); /* Connect the Progress Dialogs cancel-Button */ - connect( progressDialog, TQT_SIGNAL( cancelled() ), sane_device, - TQT_SLOT( slStopScanning() ) ); + connect( progressDialog, TQ_SIGNAL( cancelled() ), sane_device, + TQ_SLOT( slStopScanning() ) ); return( true ); } @@ -260,8 +260,8 @@ TQScrollView *ScanParams::scannerParams( ) hb->setStretchFactor( cb, 5 ); initialise( so ); - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slReloadAllGui( KScanOption* ))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slReloadAllGui( KScanOption* ))); } /* Add a button for Source-Selection */ @@ -277,7 +277,7 @@ TQScrollView *ScanParams::scannerParams( ) if( l.count() > 1 ) { pb_source_sel = new TQPushButton( i18n("Source..."), hb ); - connect( pb_source_sel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slSourceSelect())); + connect( pb_source_sel, TQ_SIGNAL(clicked()), this, TQ_SLOT(slSourceSelect())); initialise( &source ); hb->setStretchFactor( pb_source_sel, 3 ); @@ -302,8 +302,8 @@ TQScrollView *ScanParams::scannerParams( ) if( so ) { initialise(so); - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slReloadAllGui( KScanOption* ))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slReloadAllGui( KScanOption* ))); } } @@ -316,8 +316,8 @@ TQScrollView *ScanParams::scannerParams( ) if( so ) { initialise(so); - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slReloadAllGui( KScanOption* ))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slReloadAllGui( KScanOption* ))); } } @@ -330,8 +330,8 @@ TQScrollView *ScanParams::scannerParams( ) if( so ) { initialise(so); - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slReloadAllGui( KScanOption* ))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slReloadAllGui( KScanOption* ))); } } @@ -349,11 +349,11 @@ TQScrollView *ScanParams::scannerParams( ) so->slRedrawWidget( so ); /* connect to slot that passes the resolution to the previewer */ - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT( slNewXResolution(KScanOption*))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT( slNewXResolution(KScanOption*))); - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slReloadAllGui( KScanOption* ))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slReloadAllGui( KScanOption* ))); xy_resolution_bind = sane_device->getGuiElement(SANE_NAME_RESOLUTION_BIND, pbox, @@ -364,8 +364,8 @@ TQScrollView *ScanParams::scannerParams( ) initialise( xy_resolution_bind ); xy_resolution_bind->slRedrawWidget( xy_resolution_bind ); /* Connect to Gui-change-Slot */ - connect( xy_resolution_bind, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slReloadAllGui( KScanOption* ))); + connect( xy_resolution_bind, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slReloadAllGui( KScanOption* ))); } /* Resolution Setting -> Y-Resolution Setting */ @@ -451,8 +451,8 @@ TQScrollView *ScanParams::scannerParams( ) SANE_TITLE_CUSTOM_GAMMA, SANE_DESC_CUSTOM_GAMMA ); initialise( so ); - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slReloadAllGui( KScanOption* ))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slReloadAllGui( KScanOption* ))); } else { @@ -465,14 +465,14 @@ TQScrollView *ScanParams::scannerParams( ) pb_edit_gtable = new TQPushButton( i18n("Edit..."), hb1 ); TQ_CHECK_PTR(pb_edit_gtable); - connect( pb_edit_gtable, TQT_SIGNAL( clicked () ), - this, TQT_SLOT( slEditCustGamma () ) ); + connect( pb_edit_gtable, TQ_SIGNAL( clicked () ), + this, TQ_SLOT( slEditCustGamma () ) ); setEditCustomGammaTableState(); /* This connection cares for enabling/disabling the edit-Button */ if(so ) - connect( so, TQT_SIGNAL(guiChange(KScanOption*)), - this, TQT_SLOT(slOptionNotify(KScanOption*))); + connect( so, TQ_SIGNAL(guiChange(KScanOption*)), + this, TQ_SLOT(slOptionNotify(KScanOption*))); /* my Epson Perfection backends offer a list of user defined gamma values */ @@ -662,10 +662,10 @@ void ScanParams::virtualScannerParams( void ) TQWidget *w = 0; /* Selection if virt. Scanner or SANE Debug */ - bg_virt_scan_mode = new TQButtonGroup( 2, Qt::Horizontal, + bg_virt_scan_mode = new TQButtonGroup( 2, TQt::Horizontal, this, "GroupBoxVirtScanner" ); - connect( bg_virt_scan_mode, TQT_SIGNAL(clicked(int)), - this, TQT_SLOT( slVirtScanModeSelect(int))); + connect( bg_virt_scan_mode, TQ_SIGNAL(clicked(int)), + this, TQ_SLOT( slVirtScanModeSelect(int))); TQRadioButton *rb1 = new TQRadioButton( i18n("SANE debug (pnm only)"), bg_virt_scan_mode, "VirtScanSANEDebug" ); @@ -696,8 +696,8 @@ void ScanParams::virtualScannerParams( void ) top->addLayout( hb ); w = virt_filename->widget(); w->setMinimumHeight( (w->sizeHint()).height()); - connect( w, TQT_SIGNAL(returnPressed()), this, - TQT_SLOT( slCheckGlob())); + connect( w, TQ_SIGNAL(returnPressed()), this, + TQ_SLOT( slCheckGlob())); hb->addWidget( w, 12 ); @@ -705,7 +705,7 @@ void ScanParams::virtualScannerParams( void ) pb_file_sel->setPixmap(miniFloppyPixmap); //hb->addStretch( 1 ); hb->addWidget( pb_file_sel, 1 ); - connect( pb_file_sel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slFileSelect())); + connect( pb_file_sel, TQ_SIGNAL(clicked()), this, TQ_SLOT(slFileSelect())); } @@ -863,8 +863,8 @@ void ScanParams::slEditCustGamma( void ) kdDebug(29000) << "Old gamma table: " << old_gt.getGamma() << ", " << old_gt.getBrightness() << ", " << old_gt.getContrast() << endl; GammaDialog gdiag( this ); - connect( &gdiag, TQT_SIGNAL( gammaToApply(KGammaTable*) ), - this, TQT_SLOT( slApplyGamma(KGammaTable*) ) ); + connect( &gdiag, TQ_SIGNAL( gammaToApply(KGammaTable*) ), + this, TQ_SLOT( slApplyGamma(KGammaTable*) ) ); gdiag.setGt( old_gt ); diff --git a/libkscan/scanparams.h b/libkscan/scanparams.h index 4269cdcc..082bd027 100644 --- a/libkscan/scanparams.h +++ b/libkscan/scanparams.h @@ -46,7 +46,7 @@ typedef enum { ID_SANE_DEBUG, ID_TQT_IMGIO, ID_SCAN } ScanMode; class ScanParams : public TQVBox { - Q_OBJECT + TQ_OBJECT public: ScanParams( TQWidget *parent, const char *name = 0); diff --git a/libkscan/scansourcedialog.cpp b/libkscan/scansourcedialog.cpp index e0e7a0d4..cf0408ab 100644 --- a/libkscan/scansourcedialog.cpp +++ b/libkscan/scansourcedialog.cpp @@ -59,7 +59,7 @@ ScanSourceDialog::ScanSourceDialog( TQWidget *parent, const TQStrList list, ADF_ sources = new KScanCombo( vbox, i18n("Select the Scanner document source:"), xx); - connect( sources, TQT_SIGNAL( activated(int)), this, TQT_SLOT( slChangeSource(int))); + connect( sources, TQ_SIGNAL( activated(int)), this, TQ_SLOT( slChangeSource(int))); /* Button Group for ADF-Behaviour */ @@ -70,7 +70,7 @@ ScanSourceDialog::ScanSourceDialog( TQWidget *parent, const TQStrList list, ADF_ { bgroup = new TQVButtonGroup( i18n("Advanced ADF-Options"), vbox, "ADF_BGROUP" ); - connect( bgroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT( slNotifyADF(int))); + connect( bgroup, TQ_SIGNAL(clicked(int)), this, TQ_SLOT( slNotifyADF(int))); /* Two buttons inside */ TQRadioButton *rbADFTillEnd = new TQRadioButton( i18n("Scan until ADF reports out of paper"), diff --git a/libkscan/scansourcedialog.h b/libkscan/scansourcedialog.h index 35cc3d5e..ac6f2e31 100644 --- a/libkscan/scansourcedialog.h +++ b/libkscan/scansourcedialog.h @@ -36,7 +36,7 @@ class TQButtonGroup; class ScanSourceDialog : public KDialogBase { - Q_OBJECT + TQ_OBJECT public: ScanSourceDialog( TQWidget *parent, const TQStrList, ADF_BEHAVE ); diff --git a/libkscan/sizeindicator.h b/libkscan/sizeindicator.h index df940b03..98d69edd 100644 --- a/libkscan/sizeindicator.h +++ b/libkscan/sizeindicator.h @@ -39,7 +39,7 @@ class TQPainter; class SizeIndicator: public TQLabel { - Q_OBJECT + TQ_OBJECT // TQ_PROPERTY( KGammaTable *gt READ getGt WRITE setGt ) |