diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 10:30:32 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 12:36:03 +0900 |
commit | c0332621bc998c9786f4841e86a62b7711fe4abf (patch) | |
tree | 38b3ab6688de7a9396a1c5993a8ec265f5f33b64 /kugar/kudesigner | |
parent | 6c81ff8d61ec679e735d3fbd875583b12f0ef0a5 (diff) | |
download | koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.tar.gz koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kugar/kudesigner')
-rw-r--r-- | kugar/kudesigner/kudesigner_doc.cpp | 4 | ||||
-rw-r--r-- | kugar/kudesigner/kudesigner_view.cpp | 78 |
2 files changed, 41 insertions, 41 deletions
diff --git a/kugar/kudesigner/kudesigner_doc.cpp b/kugar/kudesigner/kudesigner_doc.cpp index bd4d1bef..68d3cdc5 100644 --- a/kugar/kudesigner/kudesigner_doc.cpp +++ b/kugar/kudesigner/kudesigner_doc.cpp @@ -48,8 +48,8 @@ KudesignerDoc::KudesignerDoc( TQWidget *parentWidget, const char *widgetName, TQ setTemplateType("kudesigner_template"); history = new KoCommandHistory( actionCollection() ); - // connect( history, TQT_SIGNAL( documentRestored() ), this, TQT_SLOT( slotDocumentRestored() ) ); - // connect( history, TQT_SIGNAL( commandExecuted() ), this, TQT_SLOT( slotCommandExecuted() ) ); + // connect( history, TQ_SIGNAL( documentRestored() ), this, TQ_SLOT( slotDocumentRestored() ) ); + // connect( history, TQ_SIGNAL( commandExecuted() ), this, TQ_SLOT( slotCommandExecuted() ) ); docCanvas = new Kudesigner::Canvas( 100, 100 ); emit canvasChanged( docCanvas ); } diff --git a/kugar/kudesigner/kudesigner_view.cpp b/kugar/kudesigner/kudesigner_view.cpp index 83d150e1..d38e0da3 100644 --- a/kugar/kudesigner/kudesigner_view.cpp +++ b/kugar/kudesigner/kudesigner_view.cpp @@ -106,8 +106,8 @@ KudesignerView::KudesignerView( KudesignerDoc* part, TQWidget* parent, const cha if ( m_doc->plugin() ) { - // connect( m_propertyEditor, TQT_SIGNAL(createPluggedInEditor(TQWidget*&, Editor *, Property*, Box *)), - // m_doc->plugin(), TQT_SLOT(createPluggedInEditor(TQWidget*&, Editor *, Property*, Box *))); + // connect( m_propertyEditor, TQ_SIGNAL(createPluggedInEditor(TQWidget*&, Editor *, Property*, Box *)), + // m_doc->plugin(), TQ_SLOT(createPluggedInEditor(TQWidget*&, Editor *, Property*, Box *))); kdDebug() << "*************Property and plugin have been connected" << endl; } @@ -117,33 +117,33 @@ KudesignerView::KudesignerView( KudesignerDoc* part, TQWidget* parent, const cha m_structure->setDocument( m_doc->canvas() ); - connect( m_doc, TQT_SIGNAL( canvasChanged( Kudesigner::Canvas * ) ), - m_structure, TQT_SLOT( setDocument( Kudesigner::Canvas * ) ) ); - connect( m_doc->canvas(), TQT_SIGNAL( structureModified() ), - m_structure, TQT_SLOT( refresh() ) ); + connect( m_doc, TQ_SIGNAL( canvasChanged( Kudesigner::Canvas * ) ), + m_structure, TQ_SLOT( setDocument( Kudesigner::Canvas * ) ) ); + connect( m_doc->canvas(), TQ_SIGNAL( structureModified() ), + m_structure, TQ_SLOT( refresh() ) ); - connect( m_view, TQT_SIGNAL( selectionMade( Buffer* ) ), - this, TQT_SLOT( populateProperties( Buffer* ) ) ); + connect( m_view, TQ_SIGNAL( selectionMade( Buffer* ) ), + this, TQ_SLOT( populateProperties( Buffer* ) ) ); - connect( m_view, TQT_SIGNAL( selectionClear() ), - m_propertyEditor, TQT_SLOT( clear() ) ); + connect( m_view, TQ_SIGNAL( selectionClear() ), + m_propertyEditor, TQ_SLOT( clear() ) ); - connect( m_view, TQT_SIGNAL( changed() ), - m_doc, TQT_SLOT( setModified() ) ); + connect( m_view, TQ_SIGNAL( changed() ), + m_doc, TQ_SLOT( setModified() ) ); - connect( m_view, TQT_SIGNAL( selectionMade( Buffer* ) ), - m_structure, TQT_SLOT( selectionMade() ) ); - connect( m_view, TQT_SIGNAL( selectionClear() ), - m_structure, TQT_SLOT( selectionClear() ) ); + connect( m_view, TQ_SIGNAL( selectionMade( Buffer* ) ), + m_structure, TQ_SLOT( selectionMade() ) ); + connect( m_view, TQ_SIGNAL( selectionClear() ), + m_structure, TQ_SLOT( selectionClear() ) ); - connect( m_view, TQT_SIGNAL( selectedActionProcessed() ), this, TQT_SLOT( unselectItemAction() ) ); - connect( m_view, TQT_SIGNAL( modificationPerformed() ), part, TQT_SLOT( setModified() ) ); - connect( m_view, TQT_SIGNAL( itemPlaced( int, int, int, int ) ), this, TQT_SLOT( placeItem( int, int, int, int ) ) ); + connect( m_view, TQ_SIGNAL( selectedActionProcessed() ), this, TQ_SLOT( unselectItemAction() ) ); + connect( m_view, TQ_SIGNAL( modificationPerformed() ), part, TQ_SLOT( setModified() ) ); + connect( m_view, TQ_SIGNAL( itemPlaced( int, int, int, int ) ), this, TQ_SLOT( placeItem( int, int, int, int ) ) ); gridLabel = new TQLabel( i18n( "Grid size:" ), shell() ); gridBox = new TQSpinBox( 1, 100, 1, shell() ); gridBox->setValue( 10 ); - connect( gridBox, TQT_SIGNAL( valueChanged( int ) ), m_view, TQT_SLOT( setGridSize( int ) ) ); + connect( gridBox, TQ_SIGNAL( valueChanged( int ) ), m_view, TQ_SLOT( setGridSize( int ) ) ); initActions(); @@ -178,50 +178,50 @@ void KudesignerView::resizeEvent( TQResizeEvent* /*_ev*/ ) void KudesignerView::initActions() { - cutAction = KStdAction::cut( this, TQT_SLOT( cut() ), actionCollection() ); - copyAction = KStdAction::copy( this, TQT_SLOT( copy() ), actionCollection() ); - pasteAction = KStdAction::paste( this, TQT_SLOT( paste() ), actionCollection() ); - selectAllAction = KStdAction::selectAll( this, TQT_SLOT( selectAll() ), actionCollection() ); + cutAction = KStdAction::cut( this, TQ_SLOT( cut() ), actionCollection() ); + copyAction = KStdAction::copy( this, TQ_SLOT( copy() ), actionCollection() ); + pasteAction = KStdAction::paste( this, TQ_SLOT( paste() ), actionCollection() ); + selectAllAction = KStdAction::selectAll( this, TQ_SLOT( selectAll() ), actionCollection() ); deleteAction = new TDEAction( i18n( "Delete" ), "edit-delete", 0, this, - TQT_SLOT( deleteItems() ), actionCollection(), "edit_delete" ); + TQ_SLOT( deleteItems() ), actionCollection(), "edit_delete" ); cutAction->setEnabled( false ); copyAction->setEnabled( false ); pasteAction->setEnabled( false ); // deleteAction->setEnabled(false); sectionsReportHeader = new TDEAction( i18n( "Report Header" ), "irh", 0, this, - TQT_SLOT( slotAddReportHeader() ), actionCollection(), "rheader" ); + TQ_SLOT( slotAddReportHeader() ), actionCollection(), "rheader" ); sectionsReportFooter = new TDEAction( i18n( "Report Footer" ), "irf", 0, this, - TQT_SLOT( slotAddReportFooter() ), actionCollection(), "rfooter" ); + TQ_SLOT( slotAddReportFooter() ), actionCollection(), "rfooter" ); sectionsPageHeader = new TDEAction( i18n( "Page Header" ), "iph", 0, this, - TQT_SLOT( slotAddPageHeader() ), actionCollection(), "pheader" ); + TQ_SLOT( slotAddPageHeader() ), actionCollection(), "pheader" ); sectionsPageFooter = new TDEAction( i18n( "Page Footer" ), "ipf", 0, this, - TQT_SLOT( slotAddPageFooter() ), actionCollection(), "pfooter" ); + TQ_SLOT( slotAddPageFooter() ), actionCollection(), "pfooter" ); sectionsDetailHeader = new TDEAction( i18n( "Detail Header" ), "idh", 0, this, - TQT_SLOT( slotAddDetailHeader() ), actionCollection(), "dheader" ); + TQ_SLOT( slotAddDetailHeader() ), actionCollection(), "dheader" ); sectionsDetail = new TDEAction( i18n( "Detail" ), "id", 0, this, - TQT_SLOT( slotAddDetail() ), actionCollection(), "detail" ); + TQ_SLOT( slotAddDetail() ), actionCollection(), "detail" ); sectionsDetailFooter = new TDEAction( i18n( "Detail Footer" ), "idf", 0, this, - TQT_SLOT( slotAddDetailFooter() ), actionCollection(), "dfooter" ); + TQ_SLOT( slotAddDetailFooter() ), actionCollection(), "dfooter" ); itemsNothing = new TDERadioAction( i18n( "Clear Selection" ), "frame_edit", 0, this, - TQT_SLOT( slotAddItemNothing() ), actionCollection(), "nothing" ); + TQ_SLOT( slotAddItemNothing() ), actionCollection(), "nothing" ); itemsNothing->setExclusiveGroup( "itemsToolBar" ); itemsNothing->setChecked( true ); itemsLabel = new TDERadioAction( i18n( "Label" ), "frame_text", 0, this, - TQT_SLOT( slotAddItemLabel() ), actionCollection(), "label" ); + TQ_SLOT( slotAddItemLabel() ), actionCollection(), "label" ); itemsLabel->setExclusiveGroup( "itemsToolBar" ); itemsField = new TDERadioAction( i18n( "Field" ), "frame_field", 0, this, - TQT_SLOT( slotAddItemField() ), actionCollection(), "field" ); + TQ_SLOT( slotAddItemField() ), actionCollection(), "field" ); itemsField->setExclusiveGroup( "itemsToolBar" ); itemsSpecial = new TDERadioAction( i18n( "Special Field" ), "frame_query", 0, this, - TQT_SLOT( slotAddItemSpecial() ), actionCollection(), "special" ); + TQ_SLOT( slotAddItemSpecial() ), actionCollection(), "special" ); itemsSpecial->setExclusiveGroup( "itemsToolBar" ); itemsCalculated = new TDERadioAction( i18n( "Calculated Field" ), "frame_formula", 0, this, - TQT_SLOT( slotAddItemCalculated() ), actionCollection(), "calcfield" ); + TQ_SLOT( slotAddItemCalculated() ), actionCollection(), "calcfield" ); itemsCalculated->setExclusiveGroup( "itemsToolBar" ); itemsLine = new TDERadioAction( i18n( "Line" ), "frame_chart", 0, this, - TQT_SLOT( slotAddItemLine() ), actionCollection(), "line" ); + TQ_SLOT( slotAddItemLine() ), actionCollection(), "line" ); itemsLine->setExclusiveGroup( "itemsToolBar" ); gridActionLabel = new KWidgetAction( gridLabel, i18n( "Grid Label" ), 0, this, @@ -246,7 +246,7 @@ void KudesignerView::guiActivateEvent( KParts::GUIActivateEvent *ev ) void KudesignerView::populateProperties( Buffer *buf ) { - connect( buf, TQT_SIGNAL( propertyChanged() ), m_doc->canvas(), TQT_SLOT( changed() ) ); + connect( buf, TQ_SIGNAL( propertyChanged() ), m_doc->canvas(), TQ_SLOT( changed() ) ); m_propertyEditor->changeSet( buf ); } |