summaryrefslogtreecommitdiffstats
path: root/src/modules/url/libkviurl.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-28 21:15:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-01 18:03:34 +0900
commit209ac1e561619ff446be4b3411ed74e59fff168e (patch)
tree83b384cf0c4dfb918b3a4c39b4333f33e0f2f387 /src/modules/url/libkviurl.cpp
parent44846083311d49d75e8376326d29f7f34e1dae52 (diff)
downloadkvirc-209ac1e561619ff446be4b3411ed74e59fff168e.tar.gz
kvirc-209ac1e561619ff446be4b3411ed74e59fff168e.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/url/libkviurl.cpp')
-rw-r--r--src/modules/url/libkviurl.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/modules/url/libkviurl.cpp b/src/modules/url/libkviurl.cpp
index dfd884e8..522e4fcc 100644
--- a/src/modules/url/libkviurl.cpp
+++ b/src/modules/url/libkviurl.cpp
@@ -117,15 +117,15 @@ UrlDialog::UrlDialog(KviPointerList<KviUrl> *g_pList)
KviTalPopupMenu *pop;
pop = new KviTalPopupMenu(this);
- pop->insertItem(__tr2qs("&Configure"),this,TQT_SLOT(config()));
- pop->insertItem(__tr2qs("&Help"),this,TQT_SLOT(help()));
- pop->insertItem(__tr2qs("Clo&se"),this,TQT_SLOT(close_slot()));
+ pop->insertItem(__tr2qs("&Configure"),this,TQ_SLOT(config()));
+ pop->insertItem(__tr2qs("&Help"),this,TQ_SLOT(help()));
+ pop->insertItem(__tr2qs("Clo&se"),this,TQ_SLOT(close_slot()));
m_pMenuBar->insertItem(__tr2qs("&Module"),pop);
pop = new KviTalPopupMenu(this);
- pop->insertItem(__tr2qs("&Load"),this,TQT_SLOT(loadList()));
- pop->insertItem(__tr2qs("&Save"),this,TQT_SLOT(saveList()));
- pop->insertItem(__tr2qs("&Clear"),this,TQT_SLOT(clear()));
+ pop->insertItem(__tr2qs("&Load"),this,TQ_SLOT(loadList()));
+ pop->insertItem(__tr2qs("&Save"),this,TQ_SLOT(saveList()));
+ pop->insertItem(__tr2qs("&Clear"),this,TQ_SLOT(clear()));
m_pMenuBar->insertItem(__tr2qs("&List"),pop);
m_pUrlList->setShowSortIndicator(true);
@@ -140,8 +140,8 @@ UrlDialog::UrlDialog(KviPointerList<KviUrl> *g_pList)
m_pUrlList->setColumnWidth(2,cfg.readIntEntry("Count",70));
m_pUrlList->setColumnWidth(3,cfg.readIntEntry("Timestamp",70));
- connect(m_pUrlList,TQT_SIGNAL(doubleClicked(KviTalListViewItem *)),TQT_SLOT(dblclk_url(KviTalListViewItem *)));
- connect(m_pUrlList,TQT_SIGNAL(rightButtonPressed(KviTalListViewItem *, const TQPoint &, int)),TQT_SLOT(popup(KviTalListViewItem *, const TQPoint &, int)));
+ connect(m_pUrlList,TQ_SIGNAL(doubleClicked(KviTalListViewItem *)),TQ_SLOT(dblclk_url(KviTalListViewItem *)));
+ connect(m_pUrlList,TQ_SIGNAL(rightButtonPressed(KviTalListViewItem *, const TQPoint &, int)),TQ_SLOT(popup(KviTalListViewItem *, const TQPoint &, int)));
// setFocusHandlerNoChildren(m_pUrlList);
m_pUrlList->setFocusPolicy(TQWidget::StrongFocus);
@@ -257,15 +257,15 @@ void UrlDialog::popup(KviTalListViewItem *item, const TQPoint &point, int col)
if (col == 0) {
m_szUrl = item->text(0);
KviTalPopupMenu p(0,"menu");
- p.insertItem(__tr2qs("&Remove"),this,TQT_SLOT(remove()));
- p.insertItem(__tr2qs("&Find Text"),this,TQT_SLOT(findtext()));
+ p.insertItem(__tr2qs("&Remove"),this,TQ_SLOT(remove()));
+ p.insertItem(__tr2qs("&Find Text"),this,TQ_SLOT(findtext()));
p.insertSeparator();
m_pListPopup = new KviTalPopupMenu(0,"list");
int i=0;
for(KviWindow *w=g_pFrame->windowList()->first();w;w=g_pFrame->windowList()->next()){
if ((w->type() <= 2) || (w->type() == 2) || (w->type() == 6)) { // values defined in kvi_define.h (console,channel,query,chat,uwindow)
m_pListPopup->insertItem(TQString(w->plainTextCaption()),i);
- m_pListPopup->connectItem(i,this,TQT_SLOT(sayToWin(int)));
+ m_pListPopup->connectItem(i,this,TQ_SLOT(sayToWin(int)));
i++;
}
}
@@ -362,11 +362,11 @@ ConfigDialog::ConfigDialog()
TQPushButton *b;
// configure buttons
b = new TQPushButton(__tr2qs("&Cancel"),this,"discard");
- connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(discardbtn()));
+ connect(b,TQ_SIGNAL(clicked()),this,TQ_SLOT(discardbtn()));
g->addWidget(b,4,0);
b = new TQPushButton(__tr2qs("&OK"),this,"accept");
- connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(acceptbtn()));
+ connect(b,TQ_SIGNAL(clicked()),this,TQ_SLOT(acceptbtn()));
g->addWidget(b,4,1);
show();
@@ -413,7 +413,7 @@ BanFrame::BanFrame(TQWidget *parent, const char *name, bool banEnabled)
TQGridLayout *g = new TQGridLayout(this,2,2,10,10);
m_pEnable = new KviStyledCheckBox(__tr2qs("Enable URL ban list"),this);
- connect(m_pEnable,TQT_SIGNAL(clicked()),this,TQT_SLOT(enableClicked()));
+ connect(m_pEnable,TQ_SIGNAL(clicked()),this,TQ_SLOT(enableClicked()));
m_pEnable->setChecked(banEnabled);
g->addMultiCellWidget(m_pEnable,0,0,0,1);
@@ -425,12 +425,12 @@ BanFrame::BanFrame(TQWidget *parent, const char *name, bool banEnabled)
g->addMultiCellWidget(m_pBanList,1,1,0,1);
m_pAddBtn = new TQPushButton(__tr2qs("&Add Ban"),this,"add");
- connect(m_pAddBtn,TQT_SIGNAL(clicked()),this,TQT_SLOT(addBan()));
+ connect(m_pAddBtn,TQ_SIGNAL(clicked()),this,TQ_SLOT(addBan()));
m_pAddBtn->setEnabled(m_pEnable->isChecked());
g->addWidget(m_pAddBtn,2,0);
m_pRemoveBtn = new TQPushButton(__tr2qs("&Remove Selected"),this,"remove");
- connect(m_pRemoveBtn,TQT_SIGNAL(clicked()),this,TQT_SLOT(removeBan()));
+ connect(m_pRemoveBtn,TQ_SIGNAL(clicked()),this,TQ_SLOT(removeBan()));
m_pRemoveBtn->setEnabled(m_pEnable->isChecked());
g->addWidget(m_pRemoveBtn,2,1);
}