summaryrefslogtreecommitdiffstats
path: root/kgantt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 12:33:20 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 12:43:48 +0900
commit3b3f9ec8f31978030c17309fae48335bea5c1587 (patch)
tree0b493383a1501860371aacd792ec6fc08d595824 /kgantt
parent99e6e1d1f43610c3573e9824a2a8a38f69930cd0 (diff)
downloadtdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.tar.gz
tdepim-3b3f9ec8f31978030c17309fae48335bea5c1587.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kgantt')
-rw-r--r--kgantt/kgantt/KGantt.cpp4
-rw-r--r--kgantt/kgantt/KGanttBarConfig.cpp4
-rw-r--r--kgantt/kgantt/KGanttItem.cpp8
-rw-r--r--kgantt/kgantt/KGanttRelation.cpp8
-rw-r--r--kgantt/kgantt/xQGanttBarView.cpp12
-rw-r--r--kgantt/kgantt/xQGanttBarViewPort.cpp52
-rw-r--r--kgantt/kgantt/xQGanttListViewPort.cpp12
7 files changed, 50 insertions, 50 deletions
diff --git a/kgantt/kgantt/KGantt.cpp b/kgantt/kgantt/KGantt.cpp
index f16d47762..59df77645 100644
--- a/kgantt/kgantt/KGantt.cpp
+++ b/kgantt/kgantt/KGantt.cpp
@@ -58,8 +58,8 @@ KGantt::KGantt(KGanttItem* toplevelitem,
_ganttbar = new xQGanttBarView(_toplevelitem, _splitter);
_ganttbar->setPalette(pal1);
- connect(_ganttbar, TQT_SIGNAL(contentsMoving(int,int)),
- _ganttlist, TQT_SLOT(contentsMoved(int,int)));
+ connect(_ganttbar, TQ_SIGNAL(contentsMoving(int,int)),
+ _ganttlist, TQ_SLOT(contentsMoved(int,int)));
_ganttlist->setBarView(_ganttbar);
diff --git a/kgantt/kgantt/KGanttBarConfig.cpp b/kgantt/kgantt/KGanttBarConfig.cpp
index ff5f4ee8e..547373b13 100644
--- a/kgantt/kgantt/KGanttBarConfig.cpp
+++ b/kgantt/kgantt/KGanttBarConfig.cpp
@@ -20,8 +20,8 @@ KGanttBarConfig::KGanttBarConfig(xQGanttBarView* barview,
_barview = barview;
KColorButton* b = new KColorButton(this);
- connect(b, TQT_SIGNAL(changed(const TQColor&)),
- this, TQT_SLOT(changeBackground(const TQColor&)));
+ connect(b, TQ_SIGNAL(changed(const TQColor&)),
+ this, TQ_SLOT(changeBackground(const TQColor&)));
}
diff --git a/kgantt/kgantt/KGanttItem.cpp b/kgantt/kgantt/KGanttItem.cpp
index f032ede03..c517e767a 100644
--- a/kgantt/kgantt/KGanttItem.cpp
+++ b/kgantt/kgantt/KGanttItem.cpp
@@ -94,8 +94,8 @@ KGanttItem::addRelation(KGanttItem* from, KGanttItem* to,
KGanttRelation* rel = new KGanttRelation(from,to,text);
_relations.append(rel);
- connect(rel, TQT_SIGNAL(destroyed(KGanttRelation*)),
- this, TQT_SLOT(removeRelation(KGanttRelation*)));
+ connect(rel, TQ_SIGNAL(destroyed(KGanttRelation*)),
+ this, TQ_SLOT(removeRelation(KGanttRelation*)));
emit changed(this, RelationAdded);
return rel;
@@ -130,8 +130,8 @@ KGanttItem::registerItem(KGanttItem* item)
{
_subitems.append(item);
- connect(item, TQT_SIGNAL(changed(KGanttItem*, KGanttItem::Change)),
- this, TQT_SLOT(subItemChanged(KGanttItem*, KGanttItem::Change)) );
+ connect(item, TQ_SIGNAL(changed(KGanttItem*, KGanttItem::Change)),
+ this, TQ_SLOT(subItemChanged(KGanttItem*, KGanttItem::Change)) );
bool minChanged = false;
bool maxChanged = false;
diff --git a/kgantt/kgantt/KGanttRelation.cpp b/kgantt/kgantt/KGanttRelation.cpp
index e5eab3b4f..13bba2aa2 100644
--- a/kgantt/kgantt/KGanttRelation.cpp
+++ b/kgantt/kgantt/KGanttRelation.cpp
@@ -23,11 +23,11 @@ KGanttRelation::KGanttRelation(KGanttItem* from, KGanttItem* to,
_text = text;
_pen = TQPen(TQColor(20,20,20),1);
- connect(from, TQT_SIGNAL(destroyed(KGanttItem*)),
- this, TQT_SLOT(itemDestroyed(KGanttItem*)));
+ connect(from, TQ_SIGNAL(destroyed(KGanttItem*)),
+ this, TQ_SLOT(itemDestroyed(KGanttItem*)));
- connect(to, TQT_SIGNAL(destroyed(KGanttItem*)),
- this, TQT_SLOT(itemDestroyed(KGanttItem*)));
+ connect(to, TQ_SIGNAL(destroyed(KGanttItem*)),
+ this, TQ_SLOT(itemDestroyed(KGanttItem*)));
}
diff --git a/kgantt/kgantt/xQGanttBarView.cpp b/kgantt/kgantt/xQGanttBarView.cpp
index 60d25797d..3e691c04b 100644
--- a/kgantt/kgantt/xQGanttBarView.cpp
+++ b/kgantt/kgantt/xQGanttBarView.cpp
@@ -33,14 +33,14 @@ xQGanttBarView::xQGanttBarView(KGanttItem* toplevelitem,
_viewport->setMode(xQGanttBarViewPort::Select);
- connect(_viewport, TQT_SIGNAL(scroll(int,int)),
- this, TQT_SLOT(scrollBy(int,int)) );
+ connect(_viewport, TQ_SIGNAL(scroll(int,int)),
+ this, TQ_SLOT(scrollBy(int,int)) );
- connect(_viewport, TQT_SIGNAL(recalculated()),
- this, TQT_SLOT(drawHeader()) );
+ connect(_viewport, TQ_SIGNAL(recalculated()),
+ this, TQ_SLOT(drawHeader()) );
- connect(horizontalScrollBar(), TQT_SIGNAL(valueChanged(int)),
- this, TQT_SLOT(horizontalScrollBarChanged(int)) );
+ connect(horizontalScrollBar(), TQ_SIGNAL(valueChanged(int)),
+ this, TQ_SLOT(horizontalScrollBarChanged(int)) );
}
diff --git a/kgantt/kgantt/xQGanttBarViewPort.cpp b/kgantt/kgantt/xQGanttBarViewPort.cpp
index 04067f4cd..5aca74c92 100644
--- a/kgantt/kgantt/xQGanttBarViewPort.cpp
+++ b/kgantt/kgantt/xQGanttBarViewPort.cpp
@@ -52,8 +52,8 @@ xQGanttBarViewPort::xQGanttBarViewPort(KGanttItem* toplevelitem,
_itemTextEdit->hide();
_itemTextEdit->setFrame(false);
- connect(_itemTextEdit, TQT_SIGNAL(returnPressed ()),
- this, TQT_SLOT(textEdited()));
+ connect(_itemTextEdit, TQ_SIGNAL(returnPressed ()),
+ this, TQ_SLOT(textEdited()));
_iconloader = new TDEIconLoader();
@@ -83,8 +83,8 @@ xQGanttBarViewPort::xQGanttBarViewPort(KGanttItem* toplevelitem,
_cursor_lupe = new TQCursor( TQPixmap(lupe) );
- connect(_toplevelitem, TQT_SIGNAL(changed(KGanttItem*, KGanttItem::Change)),
- this, TQT_SLOT(toplevelitemChanged(KGanttItem*, KGanttItem::Change)) );
+ connect(_toplevelitem, TQ_SIGNAL(changed(KGanttItem*, KGanttItem::Change)),
+ this, TQ_SLOT(toplevelitemChanged(KGanttItem*, KGanttItem::Change)) );
recalc(); adjustSize();
@@ -116,8 +116,8 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
_toolbar->insertButton("ganttSelect.png", 0,
- TQT_SIGNAL(clicked()),
- this, TQT_SLOT(setSelect()),
+ TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(setSelect()),
true, i18n("Select") );
TDEPopupMenu *selectMenu = new TDEPopupMenu(_toolbar);
@@ -128,7 +128,7 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
*/
TQPixmap pix = _iconloader->loadIcon("ganttSelecttask.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttSelecttask.png not found !\n");
- selectMenu->insertItem(pix, i18n("Select All"), this, TQT_SLOT(selectAll()) );
+ selectMenu->insertItem(pix, i18n("Select All"), this, TQ_SLOT(selectAll()) );
/*
@@ -136,7 +136,7 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
*/
pix = _iconloader->loadIcon("ganttUnselecttask", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttUnselecttask.png not found !\n");
- selectMenu->insertItem(pix, i18n("Unselect All"), this, TQT_SLOT(unselectAll()) );
+ selectMenu->insertItem(pix, i18n("Unselect All"), this, TQ_SLOT(unselectAll()) );
TDEToolBarButton* b = _toolbar->getButton(0);
@@ -144,31 +144,31 @@ xQGanttBarViewPort::toolbar(TQMainWindow* mw)
_toolbar->insertButton("viewmag.png", 1,
- TQT_SIGNAL(clicked()),
- this, TQT_SLOT(setZoom()),
+ TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(setZoom()),
true, i18n("Zoom") );
TDEPopupMenu* zoomMenu = new TDEPopupMenu(_toolbar);
pix = _iconloader->loadIcon("viewmag.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag.png not found !\n");
- zoomMenu->insertItem(pix, i18n("Zoom All"), this, TQT_SLOT(zoomAll()) );
+ zoomMenu->insertItem(pix, i18n("Zoom All"), this, TQ_SLOT(zoomAll()) );
zoomMenu->insertSeparator();
pix = _iconloader->loadIcon("viewmag+.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag+.png not found !\n");
- zoomMenu->insertItem(pix, i18n("Zoom In +"), this, TQT_SLOT(zoomIn()) );
+ zoomMenu->insertItem(pix, i18n("Zoom In +"), this, TQ_SLOT(zoomIn()) );
pix = _iconloader->loadIcon("viewmag-.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag-.png not found !\n");
- zoomMenu->insertItem(pix, i18n("Zoom Out -"), this, TQT_SLOT(zoomOut()) );
+ zoomMenu->insertItem(pix, i18n("Zoom Out -"), this, TQ_SLOT(zoomOut()) );
b = _toolbar->getButton(1);
b->setDelayedPopup(zoomMenu);
_toolbar->insertButton("move.png", 2,
- TQT_SIGNAL(clicked()),
- this, TQT_SLOT(setMove()),
+ TQ_SIGNAL(clicked()),
+ this, TQ_SLOT(setMove()),
true, i18n("Move") );
return _toolbar;
@@ -191,17 +191,17 @@ xQGanttBarViewPort::initMenu()
TQPixmap pix = _iconloader->loadIcon("ganttSelect.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttSelect.png not found !\n");
- _selectMenu->insertItem(pix, i18n("Select Mode"), this, TQT_SLOT(setSelect()));
+ _selectMenu->insertItem(pix, i18n("Select Mode"), this, TQ_SLOT(setSelect()));
_selectMenu->insertSeparator();
pix = _iconloader->loadIcon("ganttSelecttask.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttSelecttask.png not found !\n");
- _selectMenu->insertItem(pix, i18n("Select All"), this, TQT_SLOT(selectAll()) );
+ _selectMenu->insertItem(pix, i18n("Select All"), this, TQ_SLOT(selectAll()) );
pix = _iconloader->loadIcon("ganttUnselecttask", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("ganttUnselecttask.png not found !\n");
- _selectMenu->insertItem(pix, i18n("Unselect All"), this, TQT_SLOT(unselectAll()) );
+ _selectMenu->insertItem(pix, i18n("Unselect All"), this, TQ_SLOT(unselectAll()) );
_menu->insertItem( i18n("Select"), _selectMenu);
@@ -214,32 +214,32 @@ xQGanttBarViewPort::initMenu()
pix = _iconloader->loadIcon("viewmag.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag.png not found !\n");
- _zoomMenu->insertItem(i18n("Zoom Mode"), this, TQT_SLOT(setZoom()) );
+ _zoomMenu->insertItem(i18n("Zoom Mode"), this, TQ_SLOT(setZoom()) );
_zoomMenu->insertSeparator();
- _zoomMenu->insertItem(pix, i18n("Zoom All"), this, TQT_SLOT(zoomAll()) );
+ _zoomMenu->insertItem(pix, i18n("Zoom All"), this, TQ_SLOT(zoomAll()) );
_zoomMenu->insertSeparator();
pix = _iconloader->loadIcon("viewmag+.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag+.png not found !\n");
- _zoomMenu->insertItem(pix, i18n("Zoom In +"), this, TQT_SLOT(zoomIn()) );
+ _zoomMenu->insertItem(pix, i18n("Zoom In +"), this, TQ_SLOT(zoomIn()) );
pix = _iconloader->loadIcon("viewmag-.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("viewmag-.png not found !\n");
- _zoomMenu->insertItem(pix, i18n("Zoom Out -"), this, TQT_SLOT(zoomOut()) );
+ _zoomMenu->insertItem(pix, i18n("Zoom Out -"), this, TQ_SLOT(zoomOut()) );
_menu->insertItem( "Zoom", _zoomMenu);
pix = _iconloader->loadIcon("move.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("move.png not found !\n");
- _menu->insertItem(pix, i18n("Move Mode"), this, TQT_SLOT(setMove()) );
+ _menu->insertItem(pix, i18n("Move Mode"), this, TQ_SLOT(setMove()) );
_menu->insertSeparator();
pix = _iconloader->loadIcon("configure.png", TDEIcon::Toolbar , 16 );
if(pix.isNull()) printf("configure.png not found !\n");
- _menu->insertItem(pix, i18n("Configure Gantt..."), _parent, TQT_SLOT(showConfig()));
+ _menu->insertItem(pix, i18n("Configure Gantt..."), _parent, TQ_SLOT(showConfig()));
}
@@ -1017,8 +1017,8 @@ xQGanttBarViewPort::deleteSelectedItems()
#ifdef _DEBUG_
printf(" : %s \n", subitem->getText().latin1() );
#endif
- connect(subitem, TQT_SIGNAL(destroyed(KGanttItem*)),
- this, TQT_SLOT(itemDestroyed(KGanttItem*)));
+ connect(subitem, TQ_SIGNAL(destroyed(KGanttItem*)),
+ this, TQ_SLOT(itemDestroyed(KGanttItem*)));
}
list.remove(_toplevelitem);
diff --git a/kgantt/kgantt/xQGanttListViewPort.cpp b/kgantt/kgantt/xQGanttListViewPort.cpp
index d643fe8cb..e12534efd 100644
--- a/kgantt/kgantt/xQGanttListViewPort.cpp
+++ b/kgantt/kgantt/xQGanttListViewPort.cpp
@@ -50,16 +50,16 @@ xQGanttListViewPort::setBarViewPort(xQGanttBarViewPort* v)
printf("setBarViewPort()\n");
- connect(_barviewport, TQT_SIGNAL(resized()),
- this, TQT_SLOT(barViewResized()));
+ connect(_barviewport, TQ_SIGNAL(resized()),
+ this, TQ_SLOT(barViewResized()));
- connect(_barviewport, TQT_SIGNAL(recalculated()),
- this, TQT_SLOT(update()));
+ connect(_barviewport, TQ_SIGNAL(recalculated()),
+ this, TQ_SLOT(update()));
/*
- connect(_barviewport, TQT_SIGNAL(contentsRepainted()),
- this, TQT_SLOT(barViewRepainted()));
+ connect(_barviewport, TQ_SIGNAL(contentsRepainted()),
+ this, TQ_SLOT(barViewRepainted()));
*/
}