diff options
Diffstat (limited to 'examples/demo')
-rw-r--r-- | examples/demo/display.cpp | 8 | ||||
-rw-r--r-- | examples/demo/dnd/iconview.cpp | 4 | ||||
-rw-r--r-- | examples/demo/dnd/styledbutton.cpp | 2 | ||||
-rw-r--r-- | examples/demo/frame.cpp | 10 | ||||
-rw-r--r-- | examples/demo/graph.cpp | 4 | ||||
-rw-r--r-- | examples/demo/i18n/i18n.cpp | 18 | ||||
-rw-r--r-- | examples/demo/opengl/glcontrolwidget.cpp | 2 | ||||
-rw-r--r-- | examples/demo/opengl/glworkspace.cpp | 20 | ||||
-rw-r--r-- | examples/demo/qasteroids/toplevel.cpp | 8 | ||||
-rw-r--r-- | examples/demo/qasteroids/view.cpp | 2 | ||||
-rw-r--r-- | examples/demo/textdrawing/helpwindow.cpp | 52 | ||||
-rw-r--r-- | examples/demo/textdrawing/textedit.cpp | 60 |
12 files changed, 95 insertions, 95 deletions
diff --git a/examples/demo/display.cpp b/examples/demo/display.cpp index 7ca28c828..7cc6a44af 100644 --- a/examples/demo/display.cpp +++ b/examples/demo/display.cpp @@ -160,8 +160,8 @@ DisplayWidget::DisplayWidget( TQWidget *parent, const char *name ) dial->setRange( -10, 10 ); dial->setValue( 1 ); screen->setStep( dial->value() ); - connect( dial, SIGNAL( valueChanged( int )), - screen, SLOT( setStep( int ))); + connect( dial, TQ_SIGNAL( valueChanged( int )), + screen, TQ_SLOT( setStep( int ))); lcd = new TQLCDNumber( 2, this ); lcd->setSizePolicy( TQSizePolicy::MinimumExpanding, TQSizePolicy::Preferred ); lcdval = 0; @@ -172,7 +172,7 @@ DisplayWidget::DisplayWidget( TQWidget *parent, const char *name ) curve = new Curve( this ); spin = new TQSpinBox( 1, 10, 1, this ); - connect( spin, SIGNAL( valueChanged( int )), curve, SLOT( setFactor( int ))); + connect( spin, TQ_SIGNAL( valueChanged( int )), curve, TQ_SLOT( setFactor( int ))); spin->setValue( 2 ); vb2->addWidget( curve ); vb2->addWidget( spin ); @@ -192,7 +192,7 @@ void DisplayWidget::run() { if ( !timer ) { timer = new TQTimer( this ); - connect( timer, SIGNAL( timeout() ), SLOT( tick() ) ); + connect( timer, TQ_SIGNAL( timeout() ), TQ_SLOT( tick() ) ); } timer->start( 5 ); diff --git a/examples/demo/dnd/iconview.cpp b/examples/demo/dnd/iconview.cpp index fe65c4911..89cac969a 100644 --- a/examples/demo/dnd/iconview.cpp +++ b/examples/demo/dnd/iconview.cpp @@ -7,8 +7,8 @@ IconView::IconView( TQWidget* parent, const char* name ) : TQIconView( parent, name ) { - connect( this, SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), - SLOT(slotNewItem(TQDropEvent*, const TQValueList<TQIconDragItem>&))); + connect( this, TQ_SIGNAL(dropped(TQDropEvent*, const TQValueList<TQIconDragItem>&)), + TQ_SLOT(slotNewItem(TQDropEvent*, const TQValueList<TQIconDragItem>&))); } IconView::~IconView() diff --git a/examples/demo/dnd/styledbutton.cpp b/examples/demo/dnd/styledbutton.cpp index e04be6317..690a1054a 100644 --- a/examples/demo/dnd/styledbutton.cpp +++ b/examples/demo/dnd/styledbutton.cpp @@ -49,7 +49,7 @@ StyledButton::StyledButton(TQWidget* parent, const char* name) setMinimumSize( minimumSizeHint() ); setAcceptDrops( TRUE ); - connect( this, SIGNAL(clicked()), SLOT(onEditor())); + connect( this, TQ_SIGNAL(clicked()), TQ_SLOT(onEditor())); } StyledButton::StyledButton( const TQBrush& b, TQWidget* parent, const char* name, WFlags f ) diff --git a/examples/demo/frame.cpp b/examples/demo/frame.cpp index 0cd5006a3..a263b8b1a 100644 --- a/examples/demo/frame.cpp +++ b/examples/demo/frame.cpp @@ -34,7 +34,7 @@ Frame::Frame( TQWidget *parent, const char *name ) { TQMenuBar *mainMenu = menuBar(); TQPopupMenu *fileMenu = new TQPopupMenu( this, "file" ); - fileMenu->insertItem( tr( "&Exit" ), this, SLOT( close() ), + fileMenu->insertItem( tr( "&Exit" ), this, TQ_SLOT( close() ), TQAccel::stringToKey( tr( "Ctrl+Q" ) ) ); TQPopupMenu *styleMenu = new TQPopupMenu( this, "style" ); @@ -42,8 +42,8 @@ Frame::Frame( TQWidget *parent, const char *name ) TQActionGroup *ag = new TQActionGroup( this, 0 ); ag->setExclusive( TRUE ); TQSignalMapper *styleMapper = new TQSignalMapper( this ); - connect( styleMapper, SIGNAL( mapped( const TQString& ) ), - this, SLOT( setStyle( const TQString& ) ) ); + connect( styleMapper, TQ_SIGNAL( mapped( const TQString& ) ), + this, TQ_SLOT( setStyle( const TQString& ) ) ); TQStringList list = TQStyleFactory::keys(); list.sort(); @@ -65,7 +65,7 @@ Frame::Frame( TQWidget *parent, const char *name ) } TQAction *a = new TQAction( style, TQIconSet(), styleAccel, 0, ag, 0, ag->isExclusive() ); - connect( a, SIGNAL( activated() ), styleMapper, SLOT(map()) ); + connect( a, TQ_SIGNAL( activated() ), styleMapper, TQ_SLOT(map()) ); styleMapper->setMapping( a, a->text() ); } ag->addTo( styleMenu ); @@ -117,7 +117,7 @@ TQWidget *Frame::createCategoryPage( CategoryInterface *c ) b->setTextPosition( TQToolButton::Right ); b->setUsesTextLabel( TRUE ); g->insert( b, i + c->categoryOffset() ); - connect( g, SIGNAL( clicked( int ) ), c, SLOT( setCurrentCategory( int ) ) ); + connect( g, TQ_SIGNAL( clicked( int ) ), c, TQ_SLOT( setCurrentCategory( int ) ) ); } return g; } diff --git a/examples/demo/graph.cpp b/examples/demo/graph.cpp index b99e93aca..257609f13 100644 --- a/examples/demo/graph.cpp +++ b/examples/demo/graph.cpp @@ -346,12 +346,12 @@ GraphWidget::GraphWidget( TQWidget *parent, const char *name) TQHBoxLayout* hb = new TQHBoxLayout( vb ); hb->addWidget( new TQLabel("Slow", this ) ); TQSlider* slider = new TQSlider( 0, 300, 25, d->speed, Horizontal, this ); - connect( slider, SIGNAL( valueChanged(int) ), this, SLOT( setSpeed(int) ) ); + connect( slider, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( setSpeed(int) ) ); hb->addWidget( slider ); hb->addWidget( new TQLabel("Fast", this ) ); hb->addSpacing( 10 ); TQPushButton* btn = new TQPushButton( "Shuffle Nodes", this ); - connect( btn, SIGNAL( clicked() ), this, SLOT( shuffle() ) ); + connect( btn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( shuffle() ) ); hb->addWidget( btn ); } diff --git a/examples/demo/i18n/i18n.cpp b/examples/demo/i18n/i18n.cpp index 925fdf139..4458e18bd 100644 --- a/examples/demo/i18n/i18n.cpp +++ b/examples/demo/i18n/i18n.cpp @@ -34,8 +34,8 @@ I18nDemo::I18nDemo(TQWidget *parent, const char *name) box->setLineWidth( 1 ); workspace = new TQWorkspace(box); - connect(workspace, SIGNAL(windowActivated(TQWidget *)), - SLOT(windowActivated(TQWidget *))); + connect(workspace, TQ_SIGNAL(windowActivated(TQWidget *)), + TQ_SLOT(windowActivated(TQWidget *))); workspace->setBackgroundMode(PaletteMid); setCentralWidget(box); @@ -53,32 +53,32 @@ void I18nDemo::initActions() tr("Close"), CTRL + Key_F4, this); - connect(actionClose, SIGNAL(activated()), SLOT(closeSlot())); + connect(actionClose, TQ_SIGNAL(activated()), TQ_SLOT(closeSlot())); actionCloseAll = new TQAction(tr("Close all opened windows."), tr("Close All"), 0, this); - connect(actionCloseAll, SIGNAL(activated()), SLOT(closeAllSlot())); + connect(actionCloseAll, TQ_SIGNAL(activated()), TQ_SLOT(closeAllSlot())); actionTile = new TQAction(tr("Tile opened windows."), tr("Tile"), 0, this); - connect(actionTile, SIGNAL(activated()), SLOT(tileSlot())); + connect(actionTile, TQ_SIGNAL(activated()), TQ_SLOT(tileSlot())); actionCascade = new TQAction(tr("Cascade opened windows."), tr("Cascade"), 0, this); - connect(actionCascade, SIGNAL(activated()), SLOT(cascadeSlot())); + connect(actionCascade, TQ_SIGNAL(activated()), TQ_SLOT(cascadeSlot())); } void I18nDemo::initMenuBar() { newMenu = new TQPopupMenu(this); - connect(newMenu, SIGNAL(activated(int)), SLOT(newSlot(int))); + connect(newMenu, TQ_SIGNAL(activated(int)), TQ_SLOT(newSlot(int))); newMenu->insertItem("&English", 0); newMenu->insertItem("&Japanese", 1); @@ -86,7 +86,7 @@ void I18nDemo::initMenuBar() newMenu->insertItem("&Norwegian", 3); windowMenu = new TQPopupMenu(this); - connect(windowMenu, SIGNAL(activated(int)), SLOT(windowSlot(int))); + connect(windowMenu, TQ_SIGNAL(activated(int)), TQ_SLOT(windowSlot(int))); windowMenu->setCheckable(TRUE); @@ -123,7 +123,7 @@ void I18nDemo::newSlot(int id) tqApp->installTranslator(&wrapper->translator); - connect(wrapper, SIGNAL(destroyed()), SLOT(wrapperDead())); + connect(wrapper, TQ_SIGNAL(destroyed()), TQ_SLOT(wrapperDead())); wrapper->setCaption(tr("--language--")); TextEdit *te = new TextEdit(wrapper); diff --git a/examples/demo/opengl/glcontrolwidget.cpp b/examples/demo/opengl/glcontrolwidget.cpp index 5c75b9483..b0d490e78 100644 --- a/examples/demo/opengl/glcontrolwidget.cpp +++ b/examples/demo/opengl/glcontrolwidget.cpp @@ -11,7 +11,7 @@ GLControlWidget::GLControlWidget( TQWidget *parent, const char *name, TQGLWidget { setCursor( pointingHandCursor ); timer = new TQTimer( this ); - connect( timer, SIGNAL(timeout()), SLOT(animate()) ); + connect( timer, TQ_SIGNAL(timeout()), TQ_SLOT(animate()) ); timer->start( delay ); } diff --git a/examples/demo/opengl/glworkspace.cpp b/examples/demo/opengl/glworkspace.cpp index 3010d4105..8d7541fcb 100644 --- a/examples/demo/opengl/glworkspace.cpp +++ b/examples/demo/opengl/glworkspace.cpp @@ -50,13 +50,13 @@ void GLWorkspace::setupSceneActions() newGroup->setExclusive( FALSE ); newGroup->setIconSet( TQPixmap( "textdrawing/filenew.png" ) ); a = new TQAction( tr( "Wirebox" ), TQPixmap( "opengl/wirebox.xpm" ), tr( "&Wirebox" ), 0, newGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( newWirebox() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( newWirebox() ) ); a = new TQAction( tr( "Gear" ), TQPixmap( "opengl/gear.xpm" ), tr( "&Gears" ), 0, newGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( newGear() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( newGear() ) ); a = new TQAction( tr( "Texture" ), TQPixmap( "opengl/texture.xpm" ), tr( "&Texture" ), 0, newGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( newTexture() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( newTexture() ) ); /* a = new TQAction( tr( "Nurbs" ), TQPixmap( "opengl/nurbs.xpm" ), tr( "&Nurbs" ), 0, newGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( newNurbs() ) );*/ + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( newNurbs() ) );*/ newGroup->addTo( tb ); newGroup->addTo( menu ); @@ -68,21 +68,21 @@ void GLWorkspace::setupSceneActions() printGroup->setExclusive( FALSE ); printGroup->setIconSet( TQPixmap( "textdrawing/print.png" ) ); TQAction *da = new TQAction( tr( "Window Size" ), TQPixmap( "textdrawing/print.png" ), tr( "&Window Size" ), CTRL + Key_P, printGroup ); - connect( da, SIGNAL( activated() ), this, SLOT( filePrintWindowRes() ) ); + connect( da, TQ_SIGNAL( activated() ), this, TQ_SLOT( filePrintWindowRes() ) ); a = new TQAction( tr( "Low Resolution" ), tr( "&Low Resolution" ), 0, printGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( filePrintLowRes() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( filePrintLowRes() ) ); a = new TQAction( tr( "Medium Resolution" ), tr( "&Medium Resolution" ), 0, printGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( filePrintMedRes() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( filePrintMedRes() ) ); a = new TQAction( tr( "High Resolution" ), tr( "&High Resolution" ), 0, printGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( filePrintHighRes() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( filePrintHighRes() ) ); printGroup->addSeparator(); a = new TQAction( tr( "Setup" ), tr( "&Setup..." ), 0, printGroup ); - connect( a, SIGNAL( activated() ), this, SLOT( filePrintSetup() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( filePrintSetup() ) ); da->addTo( tb ); printGroup->addTo( menu ); a = new TQAction( tr( "Close" ), TQPixmap(), tr( "&Close" ), 0, this ); - connect( a, SIGNAL( activated() ), this, SLOT( fileClose() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileClose() ) ); a->addTo( menu ); } diff --git a/examples/demo/qasteroids/toplevel.cpp b/examples/demo/qasteroids/toplevel.cpp index 973bc6c7c..c2a22ea14 100644 --- a/examples/demo/qasteroids/toplevel.cpp +++ b/examples/demo/qasteroids/toplevel.cpp @@ -80,10 +80,10 @@ KAstTopLevel::KAstTopLevel( TQWidget *parent, const char *name ) view = new KAsteroidsView( mainWin ); view->setFocusPolicy( StrongFocus ); - connect( view, SIGNAL( shipKilled() ), SLOT( slotShipKilled() ) ); - connect( view, SIGNAL( rockHit(int) ), SLOT( slotRockHit(int) ) ); - connect( view, SIGNAL( rocksRemoved() ), SLOT( slotRocksRemoved() ) ); - connect( view, SIGNAL( updateVitals() ), SLOT( slotUpdateVitals() ) ); + connect( view, TQ_SIGNAL( shipKilled() ), TQ_SLOT( slotShipKilled() ) ); + connect( view, TQ_SIGNAL( rockHit(int) ), TQ_SLOT( slotRockHit(int) ) ); + connect( view, TQ_SIGNAL( rocksRemoved() ), TQ_SLOT( slotRocksRemoved() ) ); + connect( view, TQ_SIGNAL( updateVitals() ), TQ_SLOT( slotUpdateVitals() ) ); TQVBoxLayout *vb = new TQVBoxLayout( mainWin ); TQHBoxLayout *hb = new TQHBoxLayout; diff --git a/examples/demo/qasteroids/view.cpp b/examples/demo/qasteroids/view.cpp index 7aa86c4e7..9e673a386 100644 --- a/examples/demo/qasteroids/view.cpp +++ b/examples/demo/qasteroids/view.cpp @@ -93,7 +93,7 @@ KAsteroidsView::KAsteroidsView( TQWidget *parent, const char *name ) initialized = readSprites(); shieldTimer = new TQTimer( this ); - connect( shieldTimer, SIGNAL(timeout()), this, SLOT(hideShield()) ); + connect( shieldTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(hideShield()) ); mTimerId = -1; shipPower = MAX_POWER_LEVEL; diff --git a/examples/demo/textdrawing/helpwindow.cpp b/examples/demo/textdrawing/helpwindow.cpp index 833caa179..01bb90add 100644 --- a/examples/demo/textdrawing/helpwindow.cpp +++ b/examples/demo/textdrawing/helpwindow.cpp @@ -46,23 +46,23 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path, browser = new TQTextBrowser( this ); browser->mimeSourceFactory()->setFilePath( _path ); browser->setFrameStyle( TQFrame::Panel | TQFrame::Sunken ); - connect( browser, SIGNAL( textChanged() ), - this, SLOT( textChanged() ) ); + connect( browser, TQ_SIGNAL( textChanged() ), + this, TQ_SLOT( textChanged() ) ); setCentralWidget( browser ); if ( !home_.isEmpty() ) browser->setSource( home_ ); - connect( browser, SIGNAL( highlighted( const TQString&) ), - statusBar(), SLOT( message( const TQString&)) ); + connect( browser, TQ_SIGNAL( highlighted( const TQString&) ), + statusBar(), TQ_SLOT( message( const TQString&)) ); resize( 640,700 ); TQPopupMenu* file = new TQPopupMenu( this ); - file->insertItem( tr("&New Window"), this, SLOT( newWindow() ), ALT | Key_N ); - file->insertItem( tr("&Open File"), this, SLOT( openFile() ), ALT | Key_O ); - file->insertItem( tr("&Print"), this, SLOT( print() ), ALT | Key_P ); + file->insertItem( tr("&New Window"), this, TQ_SLOT( newWindow() ), ALT | Key_N ); + file->insertItem( tr("&Open File"), this, TQ_SLOT( openFile() ), ALT | Key_O ); + file->insertItem( tr("&Print"), this, TQ_SLOT( print() ), ALT | Key_P ); // The same three icons are used twice each. TQIconSet icon_back( TQPixmap("textdrawing/previous.png") ); @@ -71,29 +71,29 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path, TQPopupMenu* go = new TQPopupMenu( this ); backwardId = go->insertItem( icon_back, - tr("&Backward"), browser, SLOT( backward() ), + tr("&Backward"), browser, TQ_SLOT( backward() ), ALT | Key_Left ); forwardId = go->insertItem( icon_forward, - tr("&Forward"), browser, SLOT( forward() ), + tr("&Forward"), browser, TQ_SLOT( forward() ), ALT | Key_Right ); - go->insertItem( icon_home, tr("&Home"), browser, SLOT( home() ) ); + go->insertItem( icon_home, tr("&Home"), browser, TQ_SLOT( home() ) ); hist = new TQPopupMenu( this ); TQStringList::Iterator it = history.begin(); for ( ; it != history.end(); ++it ) mHistory[ hist->insertItem( *it ) ] = *it; - connect( hist, SIGNAL( activated( int ) ), - this, SLOT( histChosen( int ) ) ); + connect( hist, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( histChosen( int ) ) ); bookm = new TQPopupMenu( this ); - bookm->insertItem( tr( "Add Bookmark" ), this, SLOT( addBookmark() ) ); + bookm->insertItem( tr( "Add Bookmark" ), this, TQ_SLOT( addBookmark() ) ); bookm->insertSeparator(); TQStringList::Iterator it2 = bookmarks.begin(); for ( ; it2 != bookmarks.end(); ++it2 ) mBookmarks[ bookm->insertItem( *it2 ) ] = *it2; - connect( bookm, SIGNAL( activated( int ) ), - this, SLOT( bookmChosen( int ) ) ); + connect( bookm, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( bookmChosen( int ) ) ); menuBar()->insertItem( tr("&File"), file ); menuBar()->insertItem( tr("&Go"), go ); @@ -102,29 +102,29 @@ HelpWindow::HelpWindow( const TQString& home_, const TQString& _path, menuBar()->setItemEnabled( forwardId, FALSE); menuBar()->setItemEnabled( backwardId, FALSE); - connect( browser, SIGNAL( backwardAvailable( bool ) ), - this, SLOT( setBackwardAvailable( bool ) ) ); - connect( browser, SIGNAL( forwardAvailable( bool ) ), - this, SLOT( setForwardAvailable( bool ) ) ); + connect( browser, TQ_SIGNAL( backwardAvailable( bool ) ), + this, TQ_SLOT( setBackwardAvailable( bool ) ) ); + connect( browser, TQ_SIGNAL( forwardAvailable( bool ) ), + this, TQ_SLOT( setForwardAvailable( bool ) ) ); TQToolBar* toolbar = new TQToolBar( this ); addToolBar( toolbar, "Toolbar"); TQToolButton* button; - button = new TQToolButton( icon_back, tr("Backward"), "", browser, SLOT(backward()), toolbar ); - connect( browser, SIGNAL( backwardAvailable(bool) ), button, SLOT( setEnabled(bool) ) ); + button = new TQToolButton( icon_back, tr("Backward"), "", browser, TQ_SLOT(backward()), toolbar ); + connect( browser, TQ_SIGNAL( backwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); button->setEnabled( FALSE ); - button = new TQToolButton( icon_forward, tr("Forward"), "", browser, SLOT(forward()), toolbar ); - connect( browser, SIGNAL( forwardAvailable(bool) ), button, SLOT( setEnabled(bool) ) ); + button = new TQToolButton( icon_forward, tr("Forward"), "", browser, TQ_SLOT(forward()), toolbar ); + connect( browser, TQ_SIGNAL( forwardAvailable(bool) ), button, TQ_SLOT( setEnabled(bool) ) ); button->setEnabled( FALSE ); - button = new TQToolButton( icon_home, tr("Home"), "", browser, SLOT(home()), toolbar ); + button = new TQToolButton( icon_home, tr("Home"), "", browser, TQ_SLOT(home()), toolbar ); toolbar->addSeparator(); pathCombo = new TQComboBox( TRUE, toolbar ); - connect( pathCombo, SIGNAL( activated( const TQString & ) ), - this, SLOT( pathSelected( const TQString & ) ) ); + connect( pathCombo, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( pathSelected( const TQString & ) ) ); toolbar->setStretchableWidget( pathCombo ); setRightJustification( TRUE ); setDockEnabled( DockLeft, FALSE ); diff --git a/examples/demo/textdrawing/textedit.cpp b/examples/demo/textdrawing/textedit.cpp index c564f21b6..5e203ed16 100644 --- a/examples/demo/textdrawing/textedit.cpp +++ b/examples/demo/textdrawing/textedit.cpp @@ -36,8 +36,8 @@ TextEdit::TextEdit( TQWidget *parent, const char *name ) setupTextActions(); tabWidget = new TQTabWidget( this ); - connect( tabWidget, SIGNAL( currentChanged( TQWidget * ) ), - this, SLOT( editorChanged( TQWidget * ) ) ); + connect( tabWidget, TQ_SIGNAL( currentChanged( TQWidget * ) ), + this, TQ_SLOT( editorChanged( TQWidget * ) ) ); setCentralWidget( tabWidget ); } @@ -49,28 +49,28 @@ void TextEdit::setupFileActions() TQAction *a; a = new TQAction( tr( "New" ), TQPixmap( "textdrawing/filenew.png" ), tr( "&New..." ), CTRL + Key_N, this, "fileNew" ); - connect( a, SIGNAL( activated() ), this, SLOT( fileNew() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileNew() ) ); a->addTo( tb ); a->addTo( menu ); a = new TQAction( tr( "Open" ), TQPixmap( "textdrawing/fileopen.png" ), tr( "&Open..." ), CTRL + Key_O, this, "fileOpen" ); - connect( a, SIGNAL( activated() ), this, SLOT( fileOpen() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileOpen() ) ); a->addTo( tb ); a->addTo( menu ); menu->insertSeparator(); a = new TQAction( tr( "Save" ), TQPixmap( "textdrawing/filesave.png" ), tr( "&Save..." ), CTRL + Key_S, this, "fileSave" ); - connect( a, SIGNAL( activated() ), this, SLOT( fileSave() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileSave() ) ); a->addTo( tb ); a->addTo( menu ); a = new TQAction( tr( "Save As" ), TQPixmap(), tr( "Save &As..." ), 0, this, "fileSaveAs" ); - connect( a, SIGNAL( activated() ), this, SLOT( fileSaveAs() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileSaveAs() ) ); a->addTo( menu ); menu->insertSeparator(); a = new TQAction( tr( "Print" ), TQPixmap( "textdrawing/print.png" ), tr( "&Print..." ), CTRL + Key_P, this, "filePrint" ); - connect( a, SIGNAL( activated() ), this, SLOT( filePrint() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( filePrint() ) ); a->addTo( tb ); a->addTo( menu ); a = new TQAction( tr( "Close" ), TQPixmap(), tr( "&Close" ), 0, this, "fileClose" ); - connect( a, SIGNAL( activated() ), this, SLOT( fileClose() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( fileClose() ) ); a->addTo( menu ); } @@ -82,24 +82,24 @@ void TextEdit::setupEditActions() TQAction *a; a = new TQAction( tr( "Undo" ), TQPixmap( "textdrawing/undo.png" ), tr( "&Undo" ), CTRL + Key_Z, this, "editUndo" ); - connect( a, SIGNAL( activated() ), this, SLOT( editUndo() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( editUndo() ) ); a->addTo( tb ); a->addTo( menu ); a = new TQAction( tr( "Redo" ), TQPixmap( "textdrawing/redo.png" ), tr( "&Redo" ), CTRL + Key_Y, this, "editRedo" ); - connect( a, SIGNAL( activated() ), this, SLOT( editRedo() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( editRedo() ) ); a->addTo( tb ); a->addTo( menu ); menu->insertSeparator(); a = new TQAction( tr( "Cut" ), TQPixmap( "textdrawing/editcut.png" ), tr( "&Cut" ), CTRL + Key_X, this, "editCut" ); - connect( a, SIGNAL( activated() ), this, SLOT( editCut() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( editCut() ) ); a->addTo( tb ); a->addTo( menu ); a = new TQAction( tr( "Copy" ), TQPixmap( "textdrawing/editcopy.png" ), tr( "C&opy" ), CTRL + Key_C, this, "editCopy" ); - connect( a, SIGNAL( activated() ), this, SLOT( editCopy() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( editCopy() ) ); a->addTo( tb ); a->addTo( menu ); a = new TQAction( tr( "Paste" ), TQPixmap( "textdrawing/editpaste.png" ), tr( "&Paste" ), CTRL + Key_V, this, "editPaste" ); - connect( a, SIGNAL( activated() ), this, SLOT( editPaste() ) ); + connect( a, TQ_SIGNAL( activated() ), this, TQ_SLOT( editPaste() ) ); a->addTo( tb ); a->addTo( menu ); } @@ -118,14 +118,14 @@ void TextEdit::setupTextActions() comboStyle->insertItem( tr("Ordered List (Decimal)") ); comboStyle->insertItem( tr("Ordered List (Alpha lower)") ); comboStyle->insertItem( tr("Ordered List (Alpha upper)") ); - connect( comboStyle, SIGNAL( activated( int ) ), - this, SLOT( textStyle( int ) ) ); + connect( comboStyle, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( textStyle( int ) ) ); comboFont = new TQComboBox( TRUE, tb ); TQFontDatabase db; comboFont->insertStringList( db.families() ); - connect( comboFont, SIGNAL( activated( const TQString & ) ), - this, SLOT( textFamily( const TQString & ) ) ); + connect( comboFont, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( textFamily( const TQString & ) ) ); comboFont->lineEdit()->setText( TQApplication::font().family() ); comboSize = new TQComboBox( TRUE, tb ); @@ -133,22 +133,22 @@ void TextEdit::setupTextActions() TQValueList<int>::Iterator it = sizes.begin(); for ( ; it != sizes.end(); ++it ) comboSize->insertItem( TQString::number( *it ) ); - connect( comboSize, SIGNAL( activated( const TQString & ) ), - this, SLOT( textSize( const TQString & ) ) ); + connect( comboSize, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( textSize( const TQString & ) ) ); comboSize->lineEdit()->setText( TQString::number( TQApplication::font().pointSize() ) ); actionTextBold = new TQAction( tr( "Bold" ), TQPixmap( "textdrawing/textbold.png" ), tr( "&Bold" ), CTRL + Key_B, this, "textBold" ); - connect( actionTextBold, SIGNAL( activated() ), this, SLOT( textBold() ) ); + connect( actionTextBold, TQ_SIGNAL( activated() ), this, TQ_SLOT( textBold() ) ); actionTextBold->addTo( tb ); actionTextBold->addTo( menu ); actionTextBold->setToggleAction( TRUE ); actionTextItalic = new TQAction( tr( "Italic" ), TQPixmap( "textdrawing/textitalic.png" ), tr( "&Italic" ), CTRL + Key_I, this, "textItalic" ); - connect( actionTextItalic, SIGNAL( activated() ), this, SLOT( textItalic() ) ); + connect( actionTextItalic, TQ_SIGNAL( activated() ), this, TQ_SLOT( textItalic() ) ); actionTextItalic->addTo( tb ); actionTextItalic->addTo( menu ); actionTextItalic->setToggleAction( TRUE ); actionTextUnderline = new TQAction( tr( "Underline" ), TQPixmap( "textdrawing/textunderline.png" ), tr( "&Underline" ), CTRL + Key_U, this, "textUnderline" ); - connect( actionTextUnderline, SIGNAL( activated() ), this, SLOT( textUnderline() ) ); + connect( actionTextUnderline, TQ_SIGNAL( activated() ), this, TQ_SLOT( textUnderline() ) ); actionTextUnderline->addTo( tb ); actionTextUnderline->addTo( menu ); actionTextUnderline->setToggleAction( TRUE ); @@ -156,7 +156,7 @@ void TextEdit::setupTextActions() TQActionGroup *grp = new TQActionGroup( this ); grp->setExclusive( TRUE ); - connect( grp, SIGNAL( selected( TQAction* ) ), this, SLOT( textAlign( TQAction* ) ) ); + connect( grp, TQ_SIGNAL( selected( TQAction* ) ), this, TQ_SLOT( textAlign( TQAction* ) ) ); actionAlignLeft = new TQAction( tr( "Left" ), TQPixmap( "textdrawing/textleft.png" ), tr( "&Left" ), CTRL + Key_L, grp, "textLeft" ); actionAlignLeft->addTo( tb ); @@ -180,7 +180,7 @@ void TextEdit::setupTextActions() TQPixmap pix( 16, 16 ); pix.fill( black ); actionTextColor = new TQAction( tr( "Color" ), pix, tr( "&Color..." ), 0, this, "textColor" ); - connect( actionTextColor, SIGNAL( activated() ), this, SLOT( textColor() ) ); + connect( actionTextColor, TQ_SIGNAL( activated() ), this, TQ_SLOT( textColor() ) ); actionTextColor->addTo( tb ); actionTextColor->addTo( menu ); } @@ -215,12 +215,12 @@ TQTextEdit *TextEdit::currentEditor() const void TextEdit::doConnections( TQTextEdit *e ) { - connect( e, SIGNAL( currentFontChanged( const TQFont & ) ), - this, SLOT( fontChanged( const TQFont & ) ) ); - connect( e, SIGNAL( currentColorChanged( const TQColor & ) ), - this, SLOT( colorChanged( const TQColor & ) ) ); - connect( e, SIGNAL( currentAlignmentChanged( int ) ), - this, SLOT( alignmentChanged( int ) ) ); + connect( e, TQ_SIGNAL( currentFontChanged( const TQFont & ) ), + this, TQ_SLOT( fontChanged( const TQFont & ) ) ); + connect( e, TQ_SIGNAL( currentColorChanged( const TQColor & ) ), + this, TQ_SLOT( colorChanged( const TQColor & ) ) ); + connect( e, TQ_SIGNAL( currentAlignmentChanged( int ) ), + this, TQ_SLOT( alignmentChanged( int ) ) ); } void TextEdit::fileNew() |