summaryrefslogtreecommitdiffstats
path: root/kugar
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-04 10:30:32 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-04 12:36:03 +0900
commitc0332621bc998c9786f4841e86a62b7711fe4abf (patch)
tree38b3ab6688de7a9396a1c5993a8ec265f5f33b64 /kugar
parent6c81ff8d61ec679e735d3fbd875583b12f0ef0a5 (diff)
downloadkoffice-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')
-rw-r--r--kugar/kudesigner/kudesigner_doc.cpp4
-rw-r--r--kugar/kudesigner/kudesigner_view.cpp78
-rw-r--r--kugar/kudesigner_lib/structurewidget.cpp2
-rw-r--r--kugar/kudesigner_lib/view.cpp4
-rw-r--r--kugar/lib/mreportviewer.cpp10
-rw-r--r--kugar/part/kugar_part.cpp4
-rw-r--r--kugar/part/kugar_view.cpp8
7 files changed, 55 insertions, 55 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 );
}
diff --git a/kugar/kudesigner_lib/structurewidget.cpp b/kugar/kudesigner_lib/structurewidget.cpp
index 5c27be45..c8ff3ea8 100644
--- a/kugar/kudesigner_lib/structurewidget.cpp
+++ b/kugar/kudesigner_lib/structurewidget.cpp
@@ -81,7 +81,7 @@ StructureWidget::StructureWidget( TQWidget* parent, const char* name )
setFullWidth( true );
addColumn( tr( "Report Structure" ) );
setSorting( -1 );
- connect( this, TQT_SIGNAL( clicked( TQListViewItem* ) ), this, TQT_SLOT( selectItem( TQListViewItem* ) ) );
+ connect( this, TQ_SIGNAL( clicked( TQListViewItem* ) ), this, TQ_SLOT( selectItem( TQListViewItem* ) ) );
}
void StructureWidget::refresh()
diff --git a/kugar/kudesigner_lib/view.cpp b/kugar/kudesigner_lib/view.cpp
index dc4af262..ff7c249d 100644
--- a/kugar/kudesigner_lib/view.cpp
+++ b/kugar/kudesigner_lib/view.cpp
@@ -104,7 +104,7 @@ View::View( Canvas *canvas, TQWidget *parent, const char *name, WFlags f ) :
selectionRect = new SelectionRect( 0, 0, 0, 0, canvas );
- connect( m_canvas, TQT_SIGNAL( itemSelected() ), this, TQT_SLOT( selectItem() ) );
+ connect( m_canvas, TQ_SIGNAL( itemSelected() ), this, TQ_SLOT( selectItem() ) );
}
void View::deleteItem( TQCanvasItemList &l )
@@ -825,7 +825,7 @@ void View::setCanvas( Canvas *canvas )
TQCanvasView::setCanvas( ( TQCanvas* ) canvas );
m_canvas = canvas;
selectionRect = new SelectionRect( 0, 0, 0, 0, m_canvas );
- connect( m_canvas, TQT_SIGNAL( itemSelected() ), this, TQT_SLOT( selectItem() ) );
+ connect( m_canvas, TQ_SIGNAL( itemSelected() ), this, TQ_SLOT( selectItem() ) );
clearRequest();
}
diff --git a/kugar/lib/mreportviewer.cpp b/kugar/lib/mreportviewer.cpp
index 3619d155..bb8b1135 100644
--- a/kugar/lib/mreportviewer.cpp
+++ b/kugar/lib/mreportviewer.cpp
@@ -38,11 +38,11 @@ void MReportViewer::init()
scroller = new TQScrollView( this );
// Connect the rendering update signal and slot
- connect( rptEngine, TQT_SIGNAL( signalRenderStatus( int ) ),
- TQT_SLOT( slotRenderProgress( int ) ) );
+ connect( rptEngine, TQ_SIGNAL( signalRenderStatus( int ) ),
+ TQ_SLOT( slotRenderProgress( int ) ) );
- connect( rptEngine, TQT_SIGNAL( preferedTemplate( const TQString & ) ),
- TQT_SIGNAL( preferedTemplate( const TQString & ) ) );
+ connect( rptEngine, TQ_SIGNAL( preferedTemplate( const TQString & ) ),
+ TQ_SIGNAL( preferedTemplate( const TQString & ) ) );
// Get the current color palette
TQPalette p = palette();
@@ -324,7 +324,7 @@ void MReportViewer::printReport( KPrinter &printer )
i18n( "Cancel" ),
totalSteps, this, "progress", true );
progress.setMinimumDuration( M_PROGRESS_DELAY );
- TQObject::connect( &progress, TQT_SIGNAL( cancelled() ), this, TQT_SLOT( slotCancelPrinting() ) );
+ TQObject::connect( &progress, TQ_SIGNAL( cancelled() ), this, TQ_SLOT( slotCancelPrinting() ) );
progress.setProgress( 0 );
tqApp->processEvents();
diff --git a/kugar/part/kugar_part.cpp b/kugar/part/kugar_part.cpp
index e3fb36aa..98352e13 100644
--- a/kugar/part/kugar_part.cpp
+++ b/kugar/part/kugar_part.cpp
@@ -37,8 +37,8 @@ KugarPart::KugarPart( TQWidget *parentWidget, const char *widgetName,
{
setInstance( KugarFactory::global(), false );
m_reportEngine = new Kugar::MReportEngine();
- connect( m_reportEngine, TQT_SIGNAL( preferedTemplate( const TQString & ) ),
- TQT_SLOT( slotPreferredTemplate( const TQString & ) ) );
+ connect( m_reportEngine, TQ_SIGNAL( preferedTemplate( const TQString & ) ),
+ TQ_SLOT( slotPreferredTemplate( const TQString & ) ) );
}
KugarPart::~KugarPart()
diff --git a/kugar/part/kugar_view.cpp b/kugar/part/kugar_view.cpp
index 6fa20b8b..2f08cc3e 100644
--- a/kugar/part/kugar_view.cpp
+++ b/kugar/part/kugar_view.cpp
@@ -46,10 +46,10 @@ KugarView::KugarView( KugarPart *part, TQWidget *parent, const char *name )
// Define the actions.
- KStdAction::prior( view, TQT_SLOT( slotPrevPage() ), actionCollection(), "kuPrevPage" );
- KStdAction::next( view, TQT_SLOT( slotNextPage() ), actionCollection(), "kuNextPage" );
- KStdAction::firstPage( view, TQT_SLOT( slotFirstPage() ), actionCollection(), "kuFirstPage" );
- KStdAction::lastPage( view, TQT_SLOT( slotLastPage() ), actionCollection(), "kuLastPage" );
+ KStdAction::prior( view, TQ_SLOT( slotPrevPage() ), actionCollection(), "kuPrevPage" );
+ KStdAction::next( view, TQ_SLOT( slotNextPage() ), actionCollection(), "kuNextPage" );
+ KStdAction::firstPage( view, TQ_SLOT( slotFirstPage() ), actionCollection(), "kuFirstPage" );
+ KStdAction::lastPage( view, TQ_SLOT( slotLastPage() ), actionCollection(), "kuLastPage" );
setXMLFile( "kugarpart.rc" );