diff options
author | Michele Calgaro <[email protected]> | 2024-01-14 14:09:37 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-18 22:46:01 +0900 |
commit | 278d2f50538b5465caa86fc7608d9cdfddf36cb9 (patch) | |
tree | 4a7510f5edd4198094ddd9ae4d81ca2a90da7990 /tdewallet/kwmapeditor.cpp | |
parent | a8bb8db5a25e70bf9de62c56c15c442883a752dc (diff) | |
download | tdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.tar.gz tdeutils-278d2f50538b5465caa86fc7608d9cdfddf36cb9.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit af0b8f5d1e5e00b1f3b48658d89876c2df28e71c)
Diffstat (limited to 'tdewallet/kwmapeditor.cpp')
-rw-r--r-- | tdewallet/kwmapeditor.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tdewallet/kwmapeditor.cpp b/tdewallet/kwmapeditor.cpp index 87e2f88..3e5c5b5 100644 --- a/tdewallet/kwmapeditor.cpp +++ b/tdewallet/kwmapeditor.cpp @@ -34,10 +34,10 @@ KWMapEditor::KWMapEditor(TQMap<TQString,TQString>& map, TQWidget *parent, const char *name) : TQTable(0, 3, parent, name), _map(map) { _ac = new TDEActionCollection(this); - _copyAct = KStdAction::copy(this, TQT_SLOT(copy()), _ac); - connect(this, TQT_SIGNAL(valueChanged(int,int)), this, TQT_SIGNAL(dirty())); - connect(this, TQT_SIGNAL(contextMenuRequested(int,int,const TQPoint&)), - this, TQT_SLOT(contextMenu(int,int,const TQPoint&))); + _copyAct = KStdAction::copy(this, TQ_SLOT(copy()), _ac); + connect(this, TQ_SIGNAL(valueChanged(int,int)), this, TQ_SIGNAL(dirty())); + connect(this, TQ_SIGNAL(contextMenuRequested(int,int,const TQPoint&)), + this, TQ_SLOT(contextMenu(int,int,const TQPoint&))); setSelectionMode(TQTable::NoSelection); horizontalHeader()->setLabel(0, TQString()); horizontalHeader()->setLabel(1, i18n("Key")); @@ -57,7 +57,7 @@ void KWMapEditor::reload() { insertRows(row, _map.count() - row); for (int x = row; x < numRows(); ++x) { TQPushButton *b = new TQPushButton("X", this); - connect(b, TQT_SIGNAL(clicked()), this, TQT_SLOT(erase())); + connect(b, TQ_SIGNAL(clicked()), this, TQ_SLOT(erase())); setCellWidget(x, 0, b); } } @@ -101,7 +101,7 @@ void KWMapEditor::addEntry() { int x = numRows(); insertRows(x, 1); TQPushButton *b = new TQPushButton("X", this); - connect(b, TQT_SIGNAL(clicked()), this, TQT_SLOT(erase())); + connect(b, TQ_SIGNAL(clicked()), this, TQ_SLOT(erase())); setCellWidget(x, 0, b); ensureCellVisible(x, 1); setCurrentCell(x, 1); @@ -118,7 +118,7 @@ void KWMapEditor::contextMenu(int row, int col, const TQPoint& pos) { _contextRow = row; _contextCol = col; TDEPopupMenu *m = new TDEPopupMenu(this); - m->insertItem(i18n("&New Entry"), this, TQT_SLOT(addEntry())); + m->insertItem(i18n("&New Entry"), this, TQ_SLOT(addEntry())); _copyAct->plug(m); m->popup(pos); } @@ -135,7 +135,7 @@ class InlineEditor : public TQTextEdit { : TQTextEdit(), _p(p), row(row), col(col) { setWFlags(WStyle_NoBorder | WDestructiveClose); KWin::setType(winId(), NET::Override); - connect(p, TQT_SIGNAL(destroyed()), TQT_SLOT(close())); + connect(p, TQ_SIGNAL(destroyed()), TQ_SLOT(close())); } virtual ~InlineEditor() { if (!_p) return; _p->setText(row, col, text()); _p->emitDirty(); } |